-
Notifications
You must be signed in to change notification settings - Fork 31
/
pyproject.toml
102 lines (92 loc) · 1.9 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
[build-system]
requires = ["setuptools>=63", "setuptools_scm[toml]>=8"]
build-backend = "setuptools.build_meta"
[project]
name = "django-flags"
dynamic = ["version"]
description = "TreeModelAdmin for Wagtail"
readme = "README.md"
requires-python = ">=3.8"
license = {text = "CC0"}
authors = [
{name = "CFPB", email = "[email protected]" }
]
dependencies = [
"django>=4.2",
]
classifiers = [
"Framework :: Django",
"Framework :: Django :: 2.2",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.2",
"License :: CC0 1.0 Universal (CC0 1.0) Public Domain Dedication",
"License :: Public Domain",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
]
[project.optional-dependencies]
testing = [
"coverage[toml]",
"django-debug-toolbar",
"jinja2",
]
docs = [
"mkdocs>=0.17",
"mkdocs-rtd-dropdown>=0.0.11",
"pymdown-extensions>=4.11",
]
[project.urls]
"Homepage" = "https://cfpb.github.io/django-flags/"
"Bug Reports" = "https://github.com/cfpb/django-flags/issues"
"Source" = "https://github.com/cfpb/django-flags"
[tool.setuptools_scm]
[tool.ruff]
# Use PEP8 line-length
line-length = 79
# Exclude common paths
exclude = [
".git",
".tox",
"__pycache__",
"**/migrations/*.py",
]
[tool.ruff.lint]
ignore = ["E731", ]
# Select specific rulesets to use
select = [
# pycodestyle
"E",
# pyflakes
"F",
# flake8-bugbear
"B",
# pyupgrade
"UP",
# flake8-simplify
"SIM",
# isort
"I",
]
[tool.ruff.lint.isort.sections]
"django" = ["django"]
"wagtail" = ["wagtail"]
[tool.ruff.lint.isort]
lines-after-imports = 2
known-third-party = ["jinja2"]
section-order = [
"future",
"standard-library",
"django",
"wagtail",
"third-party",
"first-party",
"local-folder",
]
[tool.coverage.run]
omit = [
"treemodeladmin/tests/*",
]
[tool.bandit]
exclude_dirs = [
"*/tests/*",
]