Skip to content

Commit 5937ebc

Browse files
committed
Run black/flake8/mypy in tox
1 parent 6909c8a commit 5937ebc

2 files changed

Lines changed: 20 additions & 2 deletions

File tree

setup.cfg

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22
universal = 1
33

44
[flake8]
5-
exclude = .tox,colorlog/tests,venv
5+
exclude = .tox,.venv
66
ignore = W503
77
max-line-length = 88
88

99
[tool:pytest]
1010
addopts = -p no:logging
1111

1212
[mypy]
13+
files = colorlog,doc
1314
ignore_missing_imports = True

tox.ini

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,23 @@
11
[tox]
2-
envlist = py36,py37,py38,py39,py310
2+
envlist = black,flake8,mypy,py36,py37,py38,py39,py310
33

44
[testenv]
55
deps = pytest
66
commands = pytest -v
7+
8+
[testenv:black]
9+
deps = black
10+
commands = black --check colorlog doc
11+
skip_install = true
12+
13+
[testenv:flake8]
14+
deps = flake8
15+
commands = flake8 colorlog doc
16+
skip_install = true
17+
18+
[testenv:mypy]
19+
deps =
20+
mypy
21+
types-PyYAML
22+
commands = mypy colorlog doc
23+
skip_install = true

0 commit comments

Comments
 (0)