-
Notifications
You must be signed in to change notification settings - Fork 13
/
pyproject.toml
114 lines (92 loc) · 2.23 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
102
103
104
105
106
107
108
109
110
111
112
113
114
[project]
name = "django-classy-settings"
description = "Simple class-based settings for Django"
readme = "README.md"
authors = [
{name = "Curtis Maloney", email = "[email protected]" },
]
license.text = "BSD-2-Clause"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Framework :: Django",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: PyPy",
"Intended Audience :: Developers",
]
requires-python = ">= 3.7"
dependencies = [
"django",
]
dynamic = ["version"]
[project.urls]
"Source Code" = "https://github.com/funkybob/django-classy-settings"
"Documentation" = "https://django-classy-settings.readthedocs.io/en/latest/"
[tool.setuptools.dynamic]
version.attr = "cbs.version.__version__"
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project.optional-dependencies]
dev = [
"pytest",
"coverage",
"ruff",
"Sphinx",
"build",
]
[tool.poetry]
packages = [
{ include = "cbs" },
]
[tool.coverage.run]
command_line = "-m pytest"
branch = true
[tool.ruff]
line-length = 119
[tool.ruff.lint]
select = [
'E',
'F',
'W',
'I', # isort
'N',
'UP',
'S', # bandit (security)
'A', # builtins
'C', # commas
'C4', # comprehensions
'DTZ', # datetimez
'ISC', # implicit string concat
'PIE',
'ARG', # unused arguments
'PL', # pylint
'FLY', # f-string usages
'PERF',
'RUF', # ruff specific
]
ignore = [
"ISC001", # conflicts with ruff formatter
]
fixable = ["ALL"]
[tool.ruff.format]
quote-style = "double" # Lower chance of needing to escape; ' appears in strings more often than "
docstring-code-format = false
[tool.ruff.lint.isort]
section-order = [
'future',
'standard-library',
'third-party',
'first-party',
'local-folder',
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = [
"N802", "N806", # lots of Setttings.NAMES
]