-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
43 lines (40 loc) · 1.14 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
43
[tox]
min_version = 4.0
env_list =
py{311,310,39,38}
skipsdist = true
skip_install = true
; [testenv]
; description = run unittests
; commands_pre = python -m pip install -e ".[dev]"
; commands =
; pytest -c pyproject.toml -x --cov-append tests
; coverage report -m --rcfile pyproject.toml
; rm .coverage
[testenv:format]
description = run formatting
commands_pre = python -m pip install -e ".[dev]"
allowlist_externals =
isort
black
commands =
python scripts/copyright_header.py src/fmo tests scripts
isort --settings-path pyproject.toml src/fmo tests scripts
black --config pyproject.toml src/fmo scripts
[testenv:lint]
description = run linters
commands_pre =
python -m pip install -e ".[dev]"
python -m pip install types-tqdm types-PyYAML
allowlist_externals =
isort
black
mypy
pylint
pydocstyle
commands =
isort --settings-path pyproject.toml --check src/fmo tests scripts
black --config pyproject.toml --check src/fmo scripts
mypy --config-file pyproject.toml --show-traceback src/fmo
pylint -j 4 --rcfile pyproject.toml src/fmo
pydocstyle --config pyproject.toml src/fmo