diff options
| author | Conor Hoekstra <codereport@outlook.com> | 2024-09-09 16:34:38 -0400 |
|---|---|---|
| committer | Conor Hoekstra <codereport@outlook.com> | 2024-09-09 16:34:38 -0400 |
| commit | 2f3cf4f7cfa808d89e183b77f61dac80db4ab751 (patch) | |
| tree | 9dcefb9d7860406bce98f0666cd99d7b608dd758 /challenge-285/ppentchev/python/ruff-base.toml | |
| parent | 156e3186ef5b8f929e3589f8469463132e0fa996 (diff) | |
| parent | 148ad068f27ef5bbdcac38b14685b2273b0d02ec (diff) | |
| download | perlweeklychallenge-club-2f3cf4f7cfa808d89e183b77f61dac80db4ab751.tar.gz perlweeklychallenge-club-2f3cf4f7cfa808d89e183b77f61dac80db4ab751.tar.bz2 perlweeklychallenge-club-2f3cf4f7cfa808d89e183b77f61dac80db4ab751.zip | |
Merge branch 'master' of https://github.com/manwar/perlweeklychallenge-club
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"] |
