diff options
| author | 冯昶 <fengchang@novel-supertv.com> | 2024-09-09 15:10:21 +0800 |
|---|---|---|
| committer | 冯昶 <fengchang@novel-supertv.com> | 2024-09-09 15:10:21 +0800 |
| commit | 90e81fa7a4d4ba2eb482542cde3401f8c166adc7 (patch) | |
| tree | 32574bfed25f9181a5281395f5dc3dd0321e0de4 /challenge-285/ppentchev/python/ruff-base.toml | |
| parent | d7a3db86265e08657df10663e50d63d87d6695d1 (diff) | |
| parent | 3c67a5382758155040d6598a2fa01ca5fd6d25d9 (diff) | |
| download | perlweeklychallenge-club-90e81fa7a4d4ba2eb482542cde3401f8c166adc7.tar.gz perlweeklychallenge-club-90e81fa7a4d4ba2eb482542cde3401f8c166adc7.tar.bz2 perlweeklychallenge-club-90e81fa7a4d4ba2eb482542cde3401f8c166adc7.zip | |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'challenge-285/ppentchev/python/ruff-base.toml')
| -rw-r--r-- | challenge-285/ppentchev/python/ruff-base.toml | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/challenge-285/ppentchev/python/ruff-base.toml b/challenge-285/ppentchev/python/ruff-base.toml new file mode 100644 index 0000000000..a76ef30a2e --- /dev/null +++ b/challenge-285/ppentchev/python/ruff-base.toml @@ -0,0 +1,39 @@ +# SPDX-FileCopyrightText: Peter Pentchev <roam@ringlet.net> +# SPDX-License-Identifier: BSD-2-Clause + +target-version = "py311" +line-length = 100 + +[lint] +select = [] +ignore = [ + # No blank lines before the class docstring, TYVM + "D203", + + # The multi-line docstring summary starts on the same line + "D213", + + # We do not document everything in the docstring + "DOC201", + "DOC402", + "DOC501", + + # The /x regex modifier is common enough in many languages + "FURB167", +] + +[lint.flake8-copyright] +notice-rgx = "(?x) SPDX-FileCopyrightText: \\s \\S" + +[lint.isort] +force-single-line = true +known-first-party = ["perl_weekly_285"] +lines-after-imports = 2 +single-line-exclusions = ["collections.abc", "typing"] + +[lint.per-file-ignores] +# This is a command-line tool; console output is part of its job. +"src/perl_weekly_285/__main__.py" = ["T201"] + +# This is a test suite +"tests/unit/**.py" = ["S101", "T201"] |
