-
Notifications
You must be signed in to change notification settings - Fork 9
/
setup.cfg
135 lines (117 loc) · 2.59 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
[bumpversion]
parse = (?P<major>\d+)\.(?P<minor>\d+)(\.(?P<patch>\d+))?
current_version = 0.3.1
commit = True
commit_args = -S
message = New version: {new_version}
tag = True
tag_name = v{new_version}
sign_tags = True
[bumpversion:file:src/crispy_forms_gds/__init__.py]
search = __version__ = "{current_version}"
replace = __version__ = "{new_version}"
[bumpversion:file:docs/conf.py]
search = release = "{current_version}"
replace = release = "{new_version}"
[bumpversion:file:./docs/conf.py]
parse = (?P<major>\d+)\.(?P<minor>\d+)
serialize = {major}.{minor}
search = version = "{current_version}"
replace = version = "{new_version}"
[bumpversion:file:CHANGELOG.rst]
search =
Latest
------
replace =
Latest
------
{new_version} ({now:%%Y-%%m-%%d})
------------------
[bumpversion:file:setup.py]
search = version="{current_version}"
replace = version="{new_version}"
[flake8]
extend_exclude =
*/migrations/*,
build/,
docs/,
venv/
ignore =
E123, ; closing bracket does not match indentation of opening bracket’s line
W503 ; line break before binary operator
max-line-length = 88
statistics = 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 = crispy_forms_gds
sections =
FUTURE,
STDLIB,
DJANGO,
THIRDPARTY,
FIRSTPARTY,
LOCALFOLDER
skip =
migrations,
venv
[tool:pytest]
testpaths =
tests
[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 = reports/coverage
[tox:tox]
envlist =
python3.10-django32-crispy{109,114}
python3.10-django40-crispy{114,20}
python3.11-django41-crispy{114,20}
{python3.11,python3.12}-django42-crispy{114,20,21}
{python3.11,python3.12}-django50-crispy{21}
[gh-actions]
python =
3.10: python3.10
3.11: python3.11
[testenv:docs]
basepython = python
changedir = docs
deps = -r requirements/docs.txt
commands =
sphinx-build -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
[testenv]
commands = pytest {posargs}
deps =
pytest
django32: Django>=3.2,<4.0
django40: Django>=4.0,<4.1
django41: Django>=4.1,<4.2
django42: Django>=4.2,<4.3
crispy109: django-crispy-forms>=1.09,<1.10
crispy114: django-crispy-forms>=1.14,<2.0
crispy20: django-crispy-forms>=2.0,<2.1
crispy21: django-crispy-forms>=2.1,<2.2
setenv =
PYTHONPATH = src
[wheel]
universal = 1
[bdist_wheel]
universal = 1