-
Notifications
You must be signed in to change notification settings - Fork 97
Expand file tree
/
Copy pathtox.ini
More file actions
71 lines (58 loc) · 1.38 KB
/
Copy pathtox.ini
File metadata and controls
71 lines (58 loc) · 1.38 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
[tox]
isolated_build = true
envlist = py310, py311, py312, py313
[testenv]
usedevelop = true
extras = test
allowlist_externals = uv, sphinx-build
install_command = uv pip install
[testenv:test-all]
commands =
python -m pip list
pytest ./test/
[testenv:test-capology]
commands =
pip list
pytest ./test/test_capology.py
[testenv:test-clubelo]
commands =
pip list
pytest ./test/test_clubelo.py
[testenv:test-fbref]
commands =
pip list
pytest ./test/test_fbref.py
[testenv:test-sofascore]
commands =
pip list
pytest ./test/test_sofascore.py
[testenv:test-transfermarkt]
commands =
pip list
pytest ./test/test_transfermarkt.py
[testenv:test-understat]
commands =
pip list
pytest ./test/test_understat.py
[testenv:docs]
extras = docs
commands = sphinx-build -nWEa --keep-going -b html ./docs/source/ ./docs/build/
[testenv:build]
skip_install = true
extras = build
commands = uv build
[testenv:lint]
extras = lint
commands =
ruff check --select W291 --fix --unsafe-fixes # fix trailing whitespace
ruff check --select W292 --fix # fix missing new line at end of file
ruff check --select W293 --fix --unsafe-fixes # fix blank line with whitespace
ruff check
[testenv:doclint]
extras = lint
commands =
pydoclint --config=.\pydoclint.toml .\src
sphinx-lint ./docs/source
[testenv:typecheck]
extras = typecheck
commands = mypy ./src