diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e8186b8..01764ef 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,9 +13,11 @@ jobs: - {runs-on: ubuntu-20.04, python-version: "3.9"} - {runs-on: ubuntu-22.04, python-version: "3.10"} - {runs-on: ubuntu-22.04, python-version: "3.11"} + - {runs-on: ubuntu-22.04, python-version: "3.12"} - {runs-on: macos-11, python-version: "3.9"} - {runs-on: macos-11, python-version: "3.10"} - {runs-on: macos-11, python-version: "3.11"} + - {runs-on: macos-11, python-version: "3.12"} steps: - name: Check out repository uses: actions/checkout@v3 diff --git a/doc/contributing.rst b/doc/contributing.rst index c5d1748..44aab66 100644 --- a/doc/contributing.rst +++ b/doc/contributing.rst @@ -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 =============== diff --git a/pyproject.toml b/pyproject.toml index 6482ff2..d057b6d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "pystan" -version = "3.9.0" +version = "3.9.1" description = "Python interface to Stan, a package for Bayesian inference" authors = [ "Allen Riddell ", @@ -33,13 +33,11 @@ setuptools = "*" [tool.poetry.dev-dependencies] pytest = "^6.2" pytest-asyncio = "^0.18.3" -pandas = "^1.0" -autoflake = "^1.4" +pandas = ">=1.0,<3" 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" diff --git a/scripts/check b/scripts/check index b638fa3..105f3d7 100755 --- a/scripts/check +++ b/scripts/check @@ -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 diff --git a/scripts/lint b/scripts/lint index fb9dab2..bd43373 100755 --- a/scripts/lint +++ b/scripts/lint @@ -5,6 +5,5 @@ SOURCE_FILES="stan tests" set -x -autoflake --in-place --recursive $SOURCE_FILES isort $SOURCE_FILES black $SOURCE_FILES scripts doc diff --git a/setup.cfg b/setup.cfg index 2b2eaae..976ba02 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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