mirror of
https://github.com/MorizzG/tool-default-configs.git
synced 2025-12-06 01:22:41 +00:00
init commit
This commit is contained in:
commit
36de28a868
3 changed files with 52 additions and 0 deletions
8
.clang-format
Normal file
8
.clang-format
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
---
|
||||||
|
BasedOnStyle: Google
|
||||||
|
IndentWidth: 4
|
||||||
|
---
|
||||||
|
Language: Cpp
|
||||||
|
|
||||||
|
DerivePointerAlignment: false
|
||||||
|
PointerAlignment: Left
|
||||||
18
.clang-tidy
Normal file
18
.clang-tidy
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
---
|
||||||
|
Checks: '
|
||||||
|
clang-diagnostic-*,
|
||||||
|
clang-analyzer-*,
|
||||||
|
bugprone-use-after-move,
|
||||||
|
cppcoreguidelines-*,
|
||||||
|
google-explicit-constructor,
|
||||||
|
llvm-header-guard,
|
||||||
|
llvm-namespace-comment,
|
||||||
|
misc-header-include-cycle,
|
||||||
|
misc-include-cleaner,
|
||||||
|
misc-unused-using-decls,
|
||||||
|
misc-use-anonymous-namespace,
|
||||||
|
modernize-*,-modernize-use-nodiscard,-modernize-use-trailing-return-type,
|
||||||
|
readability-*,
|
||||||
|
'
|
||||||
|
...
|
||||||
|
|
||||||
26
pyproject.toml
Executable file
26
pyproject.toml
Executable file
|
|
@ -0,0 +1,26 @@
|
||||||
|
[tool.black]
|
||||||
|
line-length = 100
|
||||||
|
# exclude-extend = '''
|
||||||
|
# '''
|
||||||
|
|
||||||
|
[tool.isort]
|
||||||
|
line_length = 100
|
||||||
|
profile = "black"
|
||||||
|
known_typing = "typing" # types,typing_extensions,mypy,mypy_extensions
|
||||||
|
# default: "FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER"
|
||||||
|
sections = "FUTURE,TYPING,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER"
|
||||||
|
# skip_glob = [""] # files/folders/... to skip
|
||||||
|
# known_first_party = [""] # packages that are forced as first party
|
||||||
|
# src_paths = [""] # files inside these paths are treated as first party
|
||||||
|
multi_line_output = 5
|
||||||
|
float_to_top = true
|
||||||
|
group_by_package = true
|
||||||
|
combine_as_imports = true
|
||||||
|
|
||||||
|
[tool.ruff]
|
||||||
|
line-length = 120
|
||||||
|
select = ["E", "F"]
|
||||||
|
target-version = "py311"
|
||||||
|
|
||||||
|
[tool.ruff.per-file-ignores]
|
||||||
|
"__init__.py" = ["F401"]
|
||||||
Loading…
Add table
Add a link
Reference in a new issue