forked from mikhail-robinson/wagtail-tagmanager
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
91 lines (80 loc) · 2.13 KB
/
Copy pathpyproject.toml
File metadata and controls
91 lines (80 loc) · 2.13 KB
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
[project]
name = "wagtail-tags"
version = "1.0.1"
description = "A Wagtail add-on for managing tags"
readme = "README.md"
requires-python = ">=3.8"
classifiers = [
"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 :: 3.13",
"Operating System :: OS Independent",
]
license = "MIT"
license-files = ["LICEN[CS]E*"]
authors = [
{ name = "Mikhail Robinson" },
{ name = "The Interaction Consortium"},
]
maintainers = [
{ name = "Mikhail Robinson" },
{ name = "The Interaction Consortium"},
]
dependencies = [
"wagtail>=5.2",
"django>=4.2",
]
[build-system]
requires = ["setuptools >= 77.0.3"]
build-backend = "setuptools.build_meta"
[project.urls]
Homepage = "https://github.com/mikhail-robinson/wagtail-tagmanager"
Issues = "https://github.com/mikhail-robinson/wagtail-tagmanager/issues"
[tool.ruff]
# Python 3.10.5
target-version = "py310"
exclude = ["migrations", ".venv", "node_modules", "dist"]
[tool.ruff.lint.mccabe]
# Flag errors (`C901`) whenever the complexity level exceeds 6.
max-complexity = 6
[tool.ruff.lint]
select = [
# pycodestyle
"E",
# pycodestyle warnings
"W",
# Pyflakes
"F",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# flake8-comprehensions
"C",
# flake8-django
"DJ",
# flake8-bandit
"S",
# flake8-simplify
"SIM",
# isort
"I",
# McCabe complexity
"C901",
]
ignore = [
"E501",
"F405", # undefined-local-with-import-star-usage
"W291", # Trailing whitespace -- mostly used in default values...
"S311", # N/A Standard pseudo-random generators are not suitable for cryptographic purposes
"DJ012", # Django models method, fields, etc. order
"S113", # requests without timeout
"B017", # the error: `assertRaises(Exception)` should be considered evil"
"S308", # Use of `mark_safe` may expose cross-site scripting vulnerabilities
"E722", # Do not use bare `except`
]
[tool.ruff.lint.pycodestyle]
max-doc-length = 88