aboutsummaryrefslogtreecommitdiff
path: root/challenge-285/ppentchev/python/ruff-base.toml
diff options
context:
space:
mode:
authorMohammad Sajid Anwar <Mohammad.Anwar@yahoo.com>2024-09-08 11:04:11 +0100
committerGitHub <noreply@github.com>2024-09-08 11:04:11 +0100
commit7cc7c2044811d44820194e9b8e4ef92a0a80a497 (patch)
treefce71a8f9cf696b32d0d584eeb6a97f704d8c386 /challenge-285/ppentchev/python/ruff-base.toml
parentf914ae6a3f7212cd2083677a8134d9009960a5b0 (diff)
parent50445dbe3f83551244d858e5d2a0a0e1a90adf75 (diff)
downloadperlweeklychallenge-club-7cc7c2044811d44820194e9b8e4ef92a0a80a497.tar.gz
perlweeklychallenge-club-7cc7c2044811d44820194e9b8e4ef92a0a80a497.tar.bz2
perlweeklychallenge-club-7cc7c2044811d44820194e9b8e4ef92a0a80a497.zip
Merge pull request #10788 from ppentchev/pp-285-python
Add Peter Pentchev's Python solution to 285.
Diffstat (limited to 'challenge-285/ppentchev/python/ruff-base.toml')
-rw-r--r--challenge-285/ppentchev/python/ruff-base.toml39
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"]