diff --git a/scripts/validate_docstrings.py b/scripts/validate_docstrings.py index c9eb476ab65fa..61a03937f8ec6 100755 --- a/scripts/validate_docstrings.py +++ b/scripts/validate_docstrings.py @@ -217,6 +217,8 @@ def validate_pep8(self): "-m", "flake8", "--format=%(row)d\t%(col)d\t%(code)s\t%(text)s", + "--max-line-length=88", + "--ignore=E203,E3,W503,W504,E402,E731", file.name, ] response = subprocess.run(cmd, capture_output=True, check=False, text=True) diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index c4f16dadea825..0000000000000 --- a/setup.cfg +++ /dev/null @@ -1,25 +0,0 @@ -[flake8] -max-line-length = 88 -# Although ruff is now the main linter for style checks, this section -# is still needed for validate_docstrings.py -ignore = - # space before : (needed for how black formats slicing) - E203, - # expected n blank lines - E3, - # line break before binary operator - W503, - # line break after binary operator - W504, - # module level import not at top of file - E402, - # do not assign a lambda expression, use a def - E731 -exclude = - doc/sphinxext/*.py, - doc/build/*.py, - doc/temp/*.py, - .eggs/*.py, - versioneer.py, - # exclude asv benchmark environments from linting - env