-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
134 lines (114 loc) · 3.67 KB
/
Copy pathpyproject.toml
File metadata and controls
134 lines (114 loc) · 3.67 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
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
[project]
name = "pretalx-exporter-schedule2"
dynamic = ["version"]
description = "pretalx plugin providing a schedule2 compatible export"
readme = "README.rst"
license = {text = "Apache Software License"}
keywords = ["pretalx"]
authors = [
{name = "Tobias Kunze", email = "r@rixx.de"},
]
maintainers = [
{name = "Tobias Kunze", email = "r@rixx.de"},
]
requires-python = ">=3.11"
dependencies = []
[project.optional-dependencies]
dev = [
"djangofmt",
"jsonschema",
"pytest",
"pytest-cov",
"pytest-django",
"ruff",
]
[project.urls]
homepage = "https://github.com/pretalx/pretalx-exporter-schedule2"
repository = "https://github.com/pretalx/pretalx-exporter-schedule2"
[project.entry-points."pretalx.plugin"]
pretalx_exporter_schedule2 = "pretalx_exporter_schedule2:PretalxPluginMeta"
[build-system]
build-backend = "setuptools.build_meta"
requires = ["setuptools"]
[tool.setuptools]
include-package-data = true
[tool.setuptools.dynamic]
version = {attr = "pretalx_exporter_schedule2.__version__"}
[tool.setuptools.packages.find]
include = ["pretalx*"]
[tool.check-manifest]
ignore = [".*", "tests/*", "justfile"]
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "pretalx.common.settings.test_settings"
django_find_project = false
testpaths = "tests"
addopts = "--cov=pretalx_exporter_schedule2 --cov-report=term-missing:skip-covered --cov-config=pyproject.toml"
[tool.coverage.run]
branch = true
relative_files = true
source = ["pretalx_exporter_schedule2"]
omit = ["*/migrations/*", "*/urls.py", "*/tests/*"]
[tool.coverage.report]
exclude_also = [
"def __repr__",
"def __str__",
"if settings.DEBUG",
"NOQA",
"noqa",
"NotImplementedError",
]
[tool.ruff.format]
skip-magic-trailing-comma = true
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"ANN", # We do not do annotations
"ARG", # Unused method arguments are often ok
"C901", # We do do complexity
"COM812", # Trailing commas are formatter territory
"CPY", # We do not use copyright header notices
"D", # We do not enforce docstyles
"DJ001", # We live in a state of sin
"E501", # Long lines are formatter territory
"EM", # Formatting strings is fine, actually
"FBT", # Booleans are fine, actually
"FIX", # TODO comments are fine, actually
"PLR", # Refactoring: Too many branches, arguments, statements, etc
"RET502", # Just returning is fine, actually
"RET503", # Just not returning is fine, actually
"RUF012", # Mutable default in class attribute is just how django rolls
"RUF100", # Unused noqa; problematic when run in isolation
"TRY003", # Error messages are fine, actually
]
allowed-confusables = ["–", "'", "×"]
[tool.ruff.lint.per-file-ignores]
"tests/**.py" = [
"DTZ", # TODO: do not use naive datetimes in tests
"INP001", # Tests don't need __init__.py
"RUF", # Ignore ambiguous characters in tests, may be security tests
"S", # Tests do not need cryptographic randomness and other security features
"S101", # Ignore `assert` rules in tests
"SLF001", # TODO: remove SLF001, fix private access
"TRY", # Exception handling is special in tests
]
[tool.ruff.lint.flake8-pytest-style]
parametrize-values-type = "tuple"
[tool.ruff.lint.flake8-self]
extend-ignore-names = ["_base_manager", "_default_manager", "_meta"]
[tool.ruff.lint.isort]
split-on-trailing-comma = false
section-order = ["future", "standard-library", "third-party", "pretalx", "first-party", "local-folder"]
[tool.ruff.lint.isort.sections]
pretalx = ["pretalx"]
[tool.ruff.lint.pep8-naming]
extend-ignore-names = [
"allDay",
"api_urls",
"EventSettings",
"extendMarkdown",
"get_allDay",
"orga_urls",
"SendMailException",
"setUpTestData",
"urls",
]