Various template default updates (#74)

* bump versions in dependencies and ci builds

* move tox to [dev] per issue #34

* move RTD deps pointer into .readthedocs.yml

* unpin flake8 add flake8-bugbear to lint deps
This commit is contained in:
Paul Robinson
2023-04-10 11:10:15 -06:00
committed by pacrob
parent 180777d7db
commit ffd6ad8b9f
5 changed files with 57 additions and 26 deletions

22
tox.ini
View File

@ -1,7 +1,7 @@
[tox]
envlist=
py{37,38,39,310,311,py3}-core
lint
py{37,38,39,310,311}-core
py{37,38,39,310,311}-lint
docs
[isort]
@ -14,7 +14,7 @@ multi_line_output=3
profile=black
[flake8]
max-line-length= 100
max-line-length= 88
exclude= venv*,.tox,docs,build
extend-ignore= E203
@ -30,19 +30,27 @@ basepython =
py39: python3.9
py310: python3.10
py311: python3.11
pypy3: pypy3
extras=
test
docs: doc
whitelist_externals=make
allowlist_externals=make
[testenv:lint]
[common-lint]
basepython=python
extras=lint
whitelist_externals=black
allowlist_externals=black
commands=
mypy -p <MODULE_NAME> --config-file {toxinidir}/mypy.ini
flake8 {toxinidir}/<MODULE_NAME> {toxinidir}/tests
isort --check-only --diff {toxinidir}/<MODULE_NAME> {toxinidir}/tests
pydocstyle --explain {toxinidir}/<MODULE_NAME> {toxinidir}/tests
black --check {toxinidir}/<MODULE_NAME> {toxinidir}/docs {toxinidir}/tests {toxinidir}/setup.py
[testenv:lint]
basepython: python
extras: {[common-lint]extras}
commands: {[common-lint]commands}
[testenv:py{37,38,39,310,311}-lint]
extras: {[common-lint]extras}
commands: {[common-lint]commands}