init commit

This commit is contained in:
Moritz Gmeiner 2023-08-11 23:34:24 +02:00
commit 36de28a868
3 changed files with 52 additions and 0 deletions

8
.clang-format Normal file
View file

@ -0,0 +1,8 @@
---
BasedOnStyle: Google
IndentWidth: 4
---
Language: Cpp
DerivePointerAlignment: false
PointerAlignment: Left

18
.clang-tidy Normal file
View 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
View 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"]