• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1[tox]
2requires =
3    tox>=4
4envlist = py{38,39,310,311,312},pytest,flake8,type,pylint
5
6[testenv]
7description = Test all the stuff
8
9[testenv:pytest]
10deps =
11    pytest: pytest
12commands = pytest -v ./tests/
13
14[testenv:type]
15deps =
16    mypy>=0.991
17commands =
18    mypy {posargs:src}
19
20[flake8]
21extend-ignore = D100,D101,D102,D103,D105,D106,D107
22exclude =
23    .git,
24    __pycache__,
25    dist,
26    extra-plugins,
27    benches
28max-complexity = 20
29max-line-length = 120
30
31[testenv:flake8]
32skip_install = true
33deps =
34    flake8
35    flake8-bugbear
36    flake8-docstrings>=1.3.1
37    flake8-typing-imports>=1.1
38    pep8-naming
39commands =
40    flake8 src/
41
42[testenv:pylint]
43skip_install = true
44max-line-length = 120
45deps =
46    pyflakes
47    pylint==3.1.0
48commands =
49    pylint --max-line-length=120 src/
50