Skip to content

Commit

Permalink
Run black/flake8/mypy in tox
Browse files Browse the repository at this point in the history
  • Loading branch information
borntyping committed Aug 29, 2022
1 parent 6909c8a commit 5937ebc
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
3 changes: 2 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
universal = 1

[flake8]
exclude = .tox,colorlog/tests,venv
exclude = .tox,.venv
ignore = W503
max-line-length = 88

[tool:pytest]
addopts = -p no:logging

[mypy]
files = colorlog,doc
ignore_missing_imports = True
19 changes: 18 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,23 @@
[tox]
envlist = py36,py37,py38,py39,py310
envlist = black,flake8,mypy,py36,py37,py38,py39,py310

[testenv]
deps = pytest
commands = pytest -v

[testenv:black]
deps = black
commands = black --check colorlog doc
skip_install = true

[testenv:flake8]
deps = flake8
commands = flake8 colorlog doc
skip_install = true

[testenv:mypy]
deps =
mypy
types-PyYAML
commands = mypy colorlog doc
skip_install = true

0 comments on commit 5937ebc

Please sign in to comment.