-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtox.ini
42 lines (38 loc) · 1.32 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
[tox]
envlist = linter,py3.11
[testenv]
deps =
-e .[dev]
commands =
pytest --cov=./nitric --cov-report=xml
[testenv:linter]
deps =
flake8
flake8-bugbear
flake8-comprehensions
flake8-string-format
black
pydocstyle
pip-licenses
commands =
flake8 nitric
black nitric tests tools
pydocstyle nitric
pip-licenses --allow-only="MIT License;BSD License;Zope Public License;Python Software Foundation License;Apache License 2.0;Apache Software License;MIT License, Mozilla Public License 2.0 (MPL 2.0);MIT;BSD License, Apache Software License;3-Clause BSD License;Historical Permission Notice and Disclaimer (HPND);Mozilla Public License 2.0 (MPL 2.0);Apache Software License, BSD License;BSD;Python Software Foundation License, MIT License;Public Domain;Public Domain, Python Software Foundation License, BSD License, GNU General Public License (GPL);GNU Library or Lesser General Public License (LGPL);LGPL;Apache Software License, MIT License" --ignore-packages nitric nitric-api asyncio
[flake8]
exclude =
venv
tests
build
dist
.git
.tox
nitric/proto
examples
testproj
ignore = F821, W503, F723
max-line-length = 120
[pydocstyle]
ignore = D100, D105, D203, D212, D415
match = (?!(test_|setup)).*\.py
match_dir = (?!(venv|build|examples|dist|tests|.git|.tox|proto)).*