commit 36de28a868a18167600a0affa78e6947de9b89a7 Author: Moritz Gmeiner Date: Fri Aug 11 23:34:24 2023 +0200 init commit diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..081cf55 --- /dev/null +++ b/.clang-format @@ -0,0 +1,8 @@ +--- +BasedOnStyle: Google +IndentWidth: 4 +--- +Language: Cpp + +DerivePointerAlignment: false +PointerAlignment: Left \ No newline at end of file diff --git a/.clang-tidy b/.clang-tidy new file mode 100644 index 0000000..6da9da2 --- /dev/null +++ b/.clang-tidy @@ -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-*, + ' +... + diff --git a/pyproject.toml b/pyproject.toml new file mode 100755 index 0000000..bb825dd --- /dev/null +++ b/pyproject.toml @@ -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"]