forked from Kitware/batai
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
77 lines (70 loc) · 1.3 KB
/
tox.ini
File metadata and controls
77 lines (70 loc) · 1.3 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
72
73
74
75
76
77
[tox]
min_version = 4.22
requires =
tox-uv
env_list =
lint
test
check-migrations
[testenv]
runner = uv-venv-lock-runner
pass_env =
DJANGO_*
extras =
development
[testenv:lint]
package = skip
dependency_groups =
lint
commands =
flake8 .
[testenv:format]
package = skip
dependency_groups =
format
commands =
isort .
black .
[testenv:type]
dependency_groups =
type
test
commands =
mypy {posargs}
[testenv:test]
dependency_groups =
test
commands =
pytest {posargs}
[testenv:check-migrations]
set_env =
DJANGO_SETTINGS_MODULE = bats_ai.settings.testing
commands =
{envpython} ./manage.py makemigrations --check --dry-run
[flake8]
max-line-length = 100
show-source = True
extend-exclude =
.venv/,
client/node_modules/,
ignore =
# closing bracket does not match indentation of opening bracket's line
E123
# whitespace before ':'
E203,
# line break before binary operator
W503,
# Missing docstring in *
D10,
# mixedCase Names, used for JSON responses
N815,
# importing lowercase as non-lowercase
N812,
# general casing issues
# TODO: should we refactor to use more consistent/standard casing?
N801,
N802,
N803,
N806,
per-file-ignores =
bats_ai/settings/*:E402,F401,F403,F405