forked from RockefellerArchiveCenter/rac_schemas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
34 lines (31 loc) · 943 Bytes
/
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
[tox]
envlist = py39, py310, linting
skipsdist = True
[testenv]
deps =
pytest
coverage
-rrequirements.txt
skip_install = True
commands =
coverage run -m --source=./rac_schemas pytest -s
coverage report -m
[testenv:linting]
basepython = python3
skip_install = true
deps = pre-commit
commands =
pre-commit run --all-files --show-diff-on-failure
[flake8]
application-import-names = flake8
select = B, C, E, F, W, B950
import-order-style = pep8
max-complexity = 10
ignore =
E501 # Line too long (82 > 79 characters). Linter enforcement is not necessary, as longer lines can improve code quality
W391 # Blank line at end of file
# Other common exceptions to consider:
# E203 Ignores Whitespace before ':'
# E266 Too many leading '#' for block comment
# W503 Line break occurred before a binary operator, or W504 Line break occurred after a binary operator
# F403 'from module import *' used; unable to detect undefined names