From 63e1e42a49528044ffa0ad6558e30b0cb34f833a Mon Sep 17 00:00:00 2001 From: Bouwe Andela Date: Wed, 25 Sep 2024 20:08:59 +0200 Subject: [PATCH] Add links with explanations why certain rules are ignored (cherry picked from commit 7b0f8cdf1d7373ded9cbcb4b40bd140fcf97446d) --- .prospector.yml | 3 +++ setup.cfg | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.prospector.yml b/.prospector.yml index 8c141202d3..51508847c2 100644 --- a/.prospector.yml +++ b/.prospector.yml @@ -15,6 +15,9 @@ pyroma: pep8: full: true # ignore rules that conflict with ruff formatter + # E203: https://black.readthedocs.io/en/stable/the_black_code_style/current_style.html#slices + # E501: https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules + # W503: https://pycodestyle.pycqa.org/en/latest/intro.html#error-codes disable: ['E203', 'E501', 'W503'] mypy: diff --git a/setup.cfg b/setup.cfg index 10e8d8d09c..15d02392d7 100644 --- a/setup.cfg +++ b/setup.cfg @@ -23,6 +23,9 @@ exclude_lines = [pycodestyle] # ignore rules that conflict with ruff formatter +# E203: https://black.readthedocs.io/en/stable/the_black_code_style/current_style.html#slices +# E501: https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules +# W503: https://pycodestyle.pycqa.org/en/latest/intro.html#error-codes ignore = E203,E501,W503 [pydocstyle]