-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
107 lines (94 loc) · 2.06 KB
/
setup.cfg
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
#
# Django App Project
#
# Each of the tools used in the project have their configuration options
# defined here. The exception is bump-my-version black where the configuration
# is in pyproject.toml. The remaining options will be moved over to the
# pyproject.toml file, where possible, over time.
#
# All the various tools have their options synced to the values
# recommended for black since it's the most unforgiving of them all:
# https://github.com/psf/black/blob/master/docs/compatible_configs.md
#
[flake8]
# Excluded by default: .git, __pycache__, .tox
extend_exclude =
*/migrations,
build,
docs,
venv
max-line-length = 88
statistics = True
count=True
[isort]
multi_line_output = 3
include_trailing_comma = True
force_grid_wrap = 0
use_parentheses = True
ensure_newline_before_comments = True
line_length = 88
default_section = THIRDPARTY
known_django = django
known_first_party = app_project
sections =
FUTURE,
STDLIB,
DJANGO,
THIRDPARTY,
FIRSTPARTY,
LOCALFOLDER
skip =
migrations,
venv
[tool:pytest]
DJANGO_SETTINGS_MODULE = demo.settings
testpaths =
src
[coverage:run]
branch = true
data_file = .coverage
omit =
*/tests/*
demo/*
venv/*
[coverage:report]
show_missing = True
skip_covered = True
fail_under = 30
exclude_lines =
raise AssertionError
raise NotImplementedError
[coverage:html]
directory = coverage
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312
[tox:tox]
envlist =
{py38,py39,py310}-django32
{py38,py39,py310,py311,py312}-django42
{py310,py311,py312}-django50
[testenv:docs]
basepython = python
changedir = docs
deps = -r requirements/docs.txt
commands =
sphinx-build -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
[testenv]
commands = pytest
deps = -r requirements/test.in
setenv =
DJANGO_DEBUG = False
PYTHONPATH = src
VIRTUALENV_DISCOVERY=pyenv
# Use the latest (on 2023-12-22) version of pip to fix an issues
# with setuptools and python 3.12.
VIRTUALENV_PIP=23.3.2
[wheel]
universal = 1
[bdist_wheel]
universal = 1