mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-12 08:00:54 +00:00
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:
22
tox.ini
22
tox.ini
@ -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}
|
||||
|
||||
Reference in New Issue
Block a user