-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpyproject.toml
71 lines (65 loc) · 1.41 KB
/
pyproject.toml
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
[tool.tox]
legacy_tox_ini = """
[tox]
requires =
tox>=4.5
env_list =
lint
py312-django{50, 42}
py311-django{50, 42, 41}
py310-django{50, 42, 41, 40, 32}
py39-django{42, 41, 40, 32}
py38-django{42, 41, 40, 32}
[testenv]
deps =
pytest>=7
pytest-django
django32: Django>=3.2,<3.3
django40: Django>=4.0,<4.1
django41: Django>=4.1,<4.2
django42: Django>=4.2,<5.0
django50: Django>=5.0,<5.1
set_env =
PYTHONDEVMODE = 1
commands = pytest -Wa -r {posargs:.}
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312
[gh-actions:env]
DJANGO =
3.2: dj32
4.0: dj40
4.1: dj41
4.2: dj42
5.0: dj50
[testenv:lint]
description = run linters
skip_install = true
deps =
ruff==0.1.13
commands = ruff {posargs:query_counter}
"""
[tool.ruff]
line-length = 80
fix = false
ignore-init-module-imports = true
select = [
"E", # pycodestyle
"F", # pyflakes
"I", # isort
"A", # flake8-builtins
"COM", # flake8-commas
"T20", # flake8-print
"Q", # flake8-quotes
"BLE", # flake8-blind-except
"N", # pep8-naming
]
[tool.ruff.flake8-quotes]
inline-quotes = "single"
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "settings"
pythonpath = "tests"