-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.cfg
119 lines (100 loc) · 2.26 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
#
# Django App Project
#
# Each of the tools used in the project have their configuration options
# defined here. The exception is black where the configuration is in
# pyproject.toml. There is a plugin for black,
# https://github.com/danie1k/python-black-configparser, that would allow
# the configuration to be located in setup.cfg. Since these are unlikely
# to change much it is not worth the extra dependency.
#
# 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
#
[bumpversion]
parse = (?P<major>\d+)\.(?P<minor>\d+)(\.(?P<patch>\d+))?
current_version = 0.0.0
commit = True
commit_args = -S
message = New version: {new_version}
tag = True
tag_name = v{new_version}
sign_tags = True
[bumpversion:file:src/feeds/__init__.py]
search = __version__ = "{current_version}"
replace = __version__ = "{new_version}"
[bumpversion:file:CHANGELOG.md]
search =
# Latest
replace =
# Latest
# {new_version} ({now:%%Y-%%m-%%d})
[bumpversion:file:setup.py]
search = version="{current_version}"
replace = version="{new_version}"
[flake8]
# Excluded by default: .git, __pycache__, .tox
extend-exclude =
.data,
.mypy_cache,
.pytest_cache,
build,
dist,
logs,
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 = feeds
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
[tox:tox]
envlist =
{py38,py310}-django{32,40}
[testenv]
commands = pytest
deps = -r requirements/tests.txt
setenv =
PYTHONPATH = src
[wheel]
universal = 1
[bdist_wheel]
universal = 1