tox-ini-fmt
This commit is contained in:
parent
3a4ad741bd
commit
6da916e78d
|
@ -15,12 +15,12 @@ repos:
|
||||||
types: []
|
types: []
|
||||||
|
|
||||||
- repo: https://github.com/PyCQA/isort
|
- repo: https://github.com/PyCQA/isort
|
||||||
rev: 5.5.2
|
rev: 5.5.4
|
||||||
hooks:
|
hooks:
|
||||||
- id: isort
|
- id: isort
|
||||||
|
|
||||||
- repo: https://gitlab.com/pycqa/flake8
|
- repo: https://gitlab.com/pycqa/flake8
|
||||||
rev: 3.8.3
|
rev: 3.8.4
|
||||||
hooks:
|
hooks:
|
||||||
- id: flake8
|
- id: flake8
|
||||||
additional_dependencies: [flake8-2020, flake8-implicit-str-concat]
|
additional_dependencies: [flake8-2020, flake8-implicit-str-concat]
|
||||||
|
@ -35,3 +35,8 @@ repos:
|
||||||
hooks:
|
hooks:
|
||||||
- id: check-merge-conflict
|
- id: check-merge-conflict
|
||||||
- id: check-yaml
|
- id: check-yaml
|
||||||
|
|
||||||
|
- repo: https://github.com/tox-dev/tox-ini-fmt
|
||||||
|
rev: 0.5.0
|
||||||
|
hooks:
|
||||||
|
- id: tox-ini-fmt
|
||||||
|
|
28
tox.ini
28
tox.ini
|
@ -1,21 +1,29 @@
|
||||||
[tox]
|
[tox]
|
||||||
envlist = py{36, 37, 38, 39, 310, py3}
|
envlist =
|
||||||
|
py{py3, 310, 39, 38, 37, 36}
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
extras = tests
|
|
||||||
setenv =
|
setenv =
|
||||||
PYLAST_USERNAME={env:PYLAST_USERNAME:}
|
|
||||||
PYLAST_PASSWORD_HASH={env:PYLAST_PASSWORD_HASH:}
|
|
||||||
PYLAST_API_KEY = {env:PYLAST_API_KEY:}
|
PYLAST_API_KEY = {env:PYLAST_API_KEY:}
|
||||||
PYLAST_API_SECRET = {env:PYLAST_API_SECRET:}
|
PYLAST_API_SECRET = {env:PYLAST_API_SECRET:}
|
||||||
commands = pytest -v -s -W all --cov pylast --cov tests --cov-report term-missing --random-order {posargs}
|
PYLAST_PASSWORD_HASH = {env:PYLAST_PASSWORD_HASH:}
|
||||||
|
PYLAST_USERNAME = {env:PYLAST_USERNAME:}
|
||||||
|
extras =
|
||||||
|
tests
|
||||||
|
commands =
|
||||||
|
pytest -v -s -W all --cov pylast --cov tests --cov-report term-missing --random-order {posargs}
|
||||||
|
|
||||||
[testenv:venv]
|
[testenv:venv]
|
||||||
deps = ipdb
|
deps =
|
||||||
commands = {posargs}
|
ipdb
|
||||||
|
commands =
|
||||||
|
{posargs}
|
||||||
|
|
||||||
[testenv:lint]
|
[testenv:lint]
|
||||||
deps = pre-commit
|
passenv =
|
||||||
commands = pre-commit run --all-files --show-diff-on-failure
|
PRE_COMMIT_COLOR
|
||||||
skip_install = true
|
skip_install = true
|
||||||
passenv = PRE_COMMIT_COLOR
|
deps =
|
||||||
|
pre-commit
|
||||||
|
commands =
|
||||||
|
pre-commit run --all-files --show-diff-on-failure
|
||||||
|
|
Loading…
Reference in a new issue