-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
37 lines (35 loc) · 956 Bytes
/
tox.ini
File metadata and controls
37 lines (35 loc) · 956 Bytes
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
[tox]
env_list =
format
py311
minversion = 4.14.2
[testenv]
description = run the tests with pytest
package = wheel
wheel_build_env = .pkg
ignore_errors = True
deps =
pytest>=6
allowlist_externals = rm
commands =
pytest {tty:--color=yes} {posargs}
rm -rf build bem_scripts_generator.egg-info
[testenv:format]
deps =
black>=22.3.0
isort>=5.13.2
flake8>=7.0.0
mypy>=1.9.0
pylint>=3.1.0
allowlist_externals = mypy
setenv =
BLACK_ARGS = --check --line-length 79 --target-version py311
ISORT_ARGS = -c --profile black --line-length 79 --lines-after-imports 2
FLAKE_ARGS = --max-line-length 79
MYPY_ARGS = --exclude build
commands =
black {env:BLACK_ARGS:} bem_scripts_generator ./tests
isort {env:ISORT_ARGS:} bem_scripts_generator ./tests
flake8 {env:FLAKE_ARGS:} bem_scripts_generator ./tests
mypy {env:MYPY_ARGS} bem_scripts_generator ./tests
pylint bem_scripts_generator ./tests