From 6da916e78db26c7fdcd451d94c7dcf33a3a0ca9b Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Wed, 7 Oct 2020 20:55:58 +0300 Subject: [PATCH] tox-ini-fmt --- .pre-commit-config.yaml | 9 +++++++-- tox.ini | 32 ++++++++++++++++++++------------ 2 files changed, 27 insertions(+), 14 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8f833d2..c8a441a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,12 +15,12 @@ repos: types: [] - repo: https://github.com/PyCQA/isort - rev: 5.5.2 + rev: 5.5.4 hooks: - id: isort - repo: https://gitlab.com/pycqa/flake8 - rev: 3.8.3 + rev: 3.8.4 hooks: - id: flake8 additional_dependencies: [flake8-2020, flake8-implicit-str-concat] @@ -35,3 +35,8 @@ repos: hooks: - id: check-merge-conflict - id: check-yaml + + - repo: https://github.com/tox-dev/tox-ini-fmt + rev: 0.5.0 + hooks: + - id: tox-ini-fmt diff --git a/tox.ini b/tox.ini index 0a61ca1..331d4ef 100644 --- a/tox.ini +++ b/tox.ini @@ -1,21 +1,29 @@ [tox] -envlist = py{36, 37, 38, 39, 310, py3} +envlist = + py{py3, 310, 39, 38, 37, 36} [testenv] -extras = tests setenv = - PYLAST_USERNAME={env:PYLAST_USERNAME:} - PYLAST_PASSWORD_HASH={env:PYLAST_PASSWORD_HASH:} - PYLAST_API_KEY={env:PYLAST_API_KEY:} - 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_API_KEY = {env:PYLAST_API_KEY:} + PYLAST_API_SECRET = {env:PYLAST_API_SECRET:} + 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] -deps = ipdb -commands = {posargs} +deps = + ipdb +commands = + {posargs} [testenv:lint] -deps = pre-commit -commands = pre-commit run --all-files --show-diff-on-failure +passenv = + PRE_COMMIT_COLOR skip_install = true -passenv = PRE_COMMIT_COLOR +deps = + pre-commit +commands = + pre-commit run --all-files --show-diff-on-failure