summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/development_guide/contributor_guide/contribute.rst5
-rw-r--r--requirements_test_pre_commit.txt2
-rw-r--r--setup.cfg9
3 files changed, 11 insertions, 5 deletions
diff --git a/doc/development_guide/contributor_guide/contribute.rst b/doc/development_guide/contributor_guide/contribute.rst
index 492f8966b..0aaf2f8ed 100644
--- a/doc/development_guide/contributor_guide/contribute.rst
+++ b/doc/development_guide/contributor_guide/contribute.rst
@@ -57,8 +57,9 @@ Creating a pull request
Got a change for Pylint? Below are a few steps you should take to make sure
your patch gets accepted:
-- We recommend using Python 3.8 or higher for development of Pylint as it gives
- you access to the latest ``ast`` parser.
+- You must use at least Python 3.8 for development of Pylint as it gives
+ you access to the latest ``ast`` parser and some pre-commit hooks do not
+ support python 3.7.
- Install the dev dependencies, see :ref:`contributor_install`.
diff --git a/requirements_test_pre_commit.txt b/requirements_test_pre_commit.txt
index 14daa70da..74eec8d62 100644
--- a/requirements_test_pre_commit.txt
+++ b/requirements_test_pre_commit.txt
@@ -1,7 +1,7 @@
# Everything in this file should reflect the pre-commit configuration
# in .pre-commit-config.yaml
black==22.10.0
-flake8==5.0.4
+flake8==6.0.0
flake8-bugbear==22.10.27
flake8-typing-imports==1.14.0
isort==5.10.1
diff --git a/setup.cfg b/setup.cfg
index 43de692ae..cf7545717 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -9,9 +9,14 @@ license_files =
CONTRIBUTORS.txt
[flake8]
+# Incompatible with black see https://github.com/ambv/black/issues/315
+# E203: Whitespace before ':'
+# W503: Line break occurred before a binary operator
+# E501: Line too long
ignore =
- E203, W503, # Incompatible with black see https://github.com/ambv/black/issues/315
- E501, # Lot of lines too long right now
+ E203,
+ W503,
+ E501
max-line-length=88
max-complexity=39
# Required for flake8-typing-imports (v1.12.0)