Skip to content

Commit

Permalink
ci: Remove flake8 checks
Browse files Browse the repository at this point in the history
Existing version of flake8 breaks on Python 3.12.

In the future, ruff should be used in the place of flake8 and autoflake.
  • Loading branch information
riddell-stan committed Apr 12, 2024
1 parent f696460 commit c431a5f
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 11 deletions.
2 changes: 1 addition & 1 deletion doc/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ line-length of 119 characters. Documentation, comments, and docstrings should be
.. _PEP 8: https://www.python.org/dev/peps/pep-0008/
.. _black: https://pypi.org/project/black/

PyStan code is also checked by ``flake8`` and ``mypy``.
PyStan code is also checked by ``mypy``.

Commit Messages
===============
Expand Down
2 changes: 0 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,10 @@ setuptools = "*"
pytest = "^6.2"
pytest-asyncio = "^0.18.3"
pandas = "^1.0"
autoflake = "^1.4"
black = "22.6.0"
isort = "^5.9"
mypy = "0.982"
types-setuptools = "^57.4"
flake8 = "^4.0"
# documentation
# NOTE: when changing these, update docs-requirements.txt
sphinx = "^7.2"
Expand Down
1 change: 0 additions & 1 deletion scripts/check
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ set -x

isort --check --diff $SOURCE_FILES
black --check --diff $SOURCE_FILES
flake8 $SOURCE_FILES
mypy $SOURCE_FILES

# verify building documentation succeeds
Expand Down
1 change: 0 additions & 1 deletion scripts/lint
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ SOURCE_FILES="stan tests"

set -x

autoflake --in-place --recursive $SOURCE_FILES
isort $SOURCE_FILES
black $SOURCE_FILES scripts doc
6 changes: 0 additions & 6 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,8 +1,2 @@
# flake8 cannot be configured using pyproject.toml
[flake8]
max-line-length = 119
extend-ignore = E203, E501, W503
exclude = .venv,.git,dist,doc,*lib/python*,*egg,build

[mypy]
ignore_missing_imports = True

0 comments on commit c431a5f

Please sign in to comment.