mirror of
https://github.com/kp2pml30/dotfiles.git
synced 2026-02-16 23:34:42 +04:00
try to migrate to nix
This commit is contained in:
parent
f2f4ead62f
commit
94da1ce936
26 changed files with 830 additions and 181 deletions
12
default-configurations/.clang-format
Normal file
12
default-configurations/.clang-format
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
BasedOnStyle: Mozilla
|
||||
|
||||
IndentWidth: 2
|
||||
TabWidth: 2
|
||||
UseTab: ForContinuationAndIndentation
|
||||
AllowShortIfStatementsOnASingleLine: false
|
||||
IndentCaseLabels: false
|
||||
AlignAfterOpenBracket: BlockIndent
|
||||
AlignArrayOfStructures: Right
|
||||
AlignConsecutiveAssignments: Consecutive
|
||||
AlignConsecutiveMacros: Consecutive
|
||||
IndentExternBlock: NoIndent
|
||||
17
default-configurations/.editorconfig
Normal file
17
default-configurations/.editorconfig
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
root = true
|
||||
|
||||
[*]
|
||||
end_of_line = lf
|
||||
insert_final_newline = true
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = true
|
||||
indent_style = tab
|
||||
tab_width = 2
|
||||
|
||||
[*.{json,yml}]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
|
||||
[*.{toml,rs,zig}]
|
||||
indent_style = space
|
||||
indent_size = 4
|
||||
40
default-configurations/.pre-commit-config.yaml
Normal file
40
default-configurations/.pre-commit-config.yaml
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v4.6.0
|
||||
hooks:
|
||||
- id: trailing-whitespace
|
||||
- id: end-of-file-fixer
|
||||
- id: check-added-large-files
|
||||
- id: check-json
|
||||
- id: check-yaml
|
||||
- id: check-toml
|
||||
- id: check-merge-conflict
|
||||
|
||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||
rev: v0.6.9
|
||||
hooks:
|
||||
- id: ruff-format
|
||||
|
||||
- repo: https://github.com/pryorda/dockerfilelint-precommit-hooks
|
||||
rev: v0.1.0
|
||||
hooks:
|
||||
- id: dockerfilelint
|
||||
|
||||
- repo: https://github.com/sirosen/check-jsonschema
|
||||
rev: 0.28.2
|
||||
hooks:
|
||||
- id: check-github-actions
|
||||
- id: check-github-workflows
|
||||
|
||||
- repo: https://github.com/pre-commit/mirrors-clang-format
|
||||
rev: v19.1.0
|
||||
hooks:
|
||||
- id: clang-format
|
||||
types_or: [c++, c]
|
||||
exclude: ^runners/py-libs
|
||||
|
||||
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
|
||||
rev: 3.0.3
|
||||
hooks:
|
||||
- id: editorconfig-checker
|
||||
# exclude: <regex>
|
||||
25
default-configurations/gitignore
Normal file
25
default-configurations/gitignore
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
# editors
|
||||
.vscode/
|
||||
.idea/
|
||||
.godot/
|
||||
|
||||
# apple
|
||||
.DS_Store
|
||||
.AppleDouble
|
||||
.LSOverride
|
||||
|
||||
# build related directories
|
||||
/build
|
||||
target
|
||||
zig-out
|
||||
zig-build
|
||||
|
||||
# secrets
|
||||
.env
|
||||
|
||||
# py
|
||||
__pycache__/
|
||||
.pytest_cache
|
||||
.mypy_cache
|
||||
.ruff_cache
|
||||
.coverage*
|
||||
11
default-configurations/ruff.toml
Normal file
11
default-configurations/ruff.toml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
exclude = [
|
||||
]
|
||||
indent-width = 2
|
||||
|
||||
[format]
|
||||
indent-style = "tab"
|
||||
quote-style = "single"
|
||||
line-ending = "lf"
|
||||
|
||||
skip-magic-trailing-comma = false
|
||||
docstring-code-format = true
|
||||
Loading…
Add table
Add a link
Reference in a new issue