From 61064c3aa3a102b0b71048d743ae9e637c8c5100 Mon Sep 17 00:00:00 2001 From: Moritz Gmeiner Date: Sun, 20 Oct 2024 02:09:59 +0200 Subject: [PATCH] some updates --- .clang-tidy | 7 +++++-- pyproject.toml | 4 ++-- rustfmt.toml | 11 +++++++++++ 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/.clang-tidy b/.clang-tidy index 0908ccb..b7cfcc3 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -1,5 +1,5 @@ --- -Checks: ' +Checks: [ bugprone-*, clang-analyzer-*, clang-diagnostic-*, @@ -18,6 +18,8 @@ Checks: ' -google-objc-function-naming, -google-readability-todo, + + -llvm-header-guard, -misc-no-recursion, -modernize-use-nodiscard, @@ -28,7 +30,8 @@ Checks: ' -readability-else-after-return, -readability-identifier-length, -readability-magic-numbers, -' + -readability-math-missing-parentheses, +] WarningsAsErrors: '*' ... diff --git a/pyproject.toml b/pyproject.toml index 66ac9b4..1689c69 100755 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,13 +6,13 @@ line-length = 100 [tool.isort] line_length = 100 profile = "black" -known_typing = "typing" # types,typing_extensions,mypy,mypy_extensions +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 +# multi_line_output = 5 float_to_top = true group_by_package = true combine_as_imports = true diff --git a/rustfmt.toml b/rustfmt.toml index 3a3f3f1..e3b2313 100644 --- a/rustfmt.toml +++ b/rustfmt.toml @@ -1,2 +1,13 @@ imports_granularity = "Module" group_imports = "StdExternalCrate" + +# Activation of features, almost objectively better ;) +use_try_shorthand = true +use_field_init_shorthand = true + +# Nightly only. Will not run in CI, but please format with these locally +wrap_comments = true +normalize_comments = true +comment_width = 100 + +condense_wildcard_suffixes = true