-
Notifications
You must be signed in to change notification settings - Fork 19
/
pyproject.toml
101 lines (93 loc) · 2.29 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
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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "django-cal"
version = "0.4.2"
authors = [
{ name = "Maik Hoepfel", email = "[email protected]" },
]
description = "Django app to enable exporting of events to iCalendar files."
readme = "README.md"
license = { file = "LICENSE" }
requires-python = ">=3.7"
classifiers = [
"Development Status :: 5 - Production/Stable",
'License :: OSI Approved :: BSD License',
'Framework :: Django',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
"Programming Language :: Python",
"Programming Language :: Python :: 3",
]
dependencies = [
'python-dateutil',
'vobject',
]
[project.optional-dependencies]
tests = [
"pytest", "pytest-django",
"pre-commit", "isort", "black", "flake8", "pyupgrade",
"bumpver"
]
[project.urls]
"Homepage" = "https://github.com/statesofpop/django-cal/"
"Bug Tracker" = "https://github.com/statesofpop/django-cal/issues"
[tool.pytest.ini_options]
pythonpath = [".", "src"]
# Declaring DJANGO_SETTINGS_MODULE here doesn't work because env variables have precedence.
# https://pytest-django.readthedocs.io/en/latest/configuring_django.html#order-of-choosing-settings
addopts = "--ds=tests.settings"
django_find_project = false
[tool.flake8]
max-line-length = 88
statistics = true
show-source = true
# following https://github.com/psf/black/issues/429
# These rules do not need to be checked as black fixes them automatically
ignore = [
"E101",
"E111",
"E114",
"E115",
"E116",
"E117",
"E121",
"E122",
"E123",
"E124",
"E125",
"E126",
"E127",
"E128",
"E129",
"E131",
"E133",
"E2",
"E3",
"E5",
"E701",
"E702",
"E703",
"E704",
"W1",
"W2",
"W3",
"W503",
"W504"]
# Be careful with changing, config is engineered to be compatible with black code formatter.
# https://black.readthedocs.io/en/stable/the_black_code_style.html
[tool.isort]
profile = "black"
[tool.bumpver]
current_version = "0.4.2"
version_pattern = "MAJOR.MINOR.PATCH"
commit_message = "Bump version {old_version} -> {new_version}"
commit = true
tag = true
push = false
[tool.bumpver.file_patterns]
"pyproject.toml" = [
'current_version = "{version}"',
'version = "{version}"',
]