try to migrate to nix

This commit is contained in:
kp2pml30 2025-01-11 20:48:22 +04:00
parent f2f4ead62f
commit 94da1ce936
26 changed files with 830 additions and 181 deletions

View 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

View 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

View 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>

View 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*

View 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