-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
66 lines (60 loc) · 1.74 KB
/
pyproject.toml
File metadata and controls
66 lines (60 loc) · 1.74 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
# SPDX-FileCopyrightText: 2025 Free Software Foundation Europe e.V.
#
# SPDX-License-Identifier: GPL-3.0-or-later
[project]
name = "fsfe-forms"
description = "FSFE Form Server"
authors = [ {name = "Free Software Foundation Europe", email = "techsupport@fsfe.org"} ]
license = "GPL-3.0-or-later"
version = "1.0.0-dev"
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
packages = [
"fsfe_forms",
"fsfe_forms.static.css",
"fsfe_forms.static.img",
"fsfe_forms.templates",
"fsfe_forms.templates.pages"
]
[tool.ruff.lint]
# See https://docs.astral.sh/ruff/rules/ for information
select = [
# "ANN", # Flake 8 type annotations
# "A", # prevent using keywords that clobber python builtins
"ARG", # Unused arguments
"ASYNC", # Flake 8 aysnc
"B", # bugbear: security warnings
"C4", # Comprehensions
"E", # pycodestyle
"ERA", # Commented out code
"F", # pyflakes
"FURB", # More upgrades to newer styles
"G", # Logging Formatting
"I", # ordered import
"ISC", # implicit string concatenation
"LOG", # Logging stuff
"N", # pep 8 naming
"PERF", # SOme performance stuff
"PIE", # Some extra checks
# "PL", # Pylint
# "PTH", # Use pathlib
"PT", # Pytest style
"Q", # flake 8 quotes
"RET", # Return types
"RSE", # Unneeded exception parentheses
# "RUF", # the ruff developer's own rules
"SIM", # Simplify
"T20", # Warn about prints
"TC", # Type checking
# "TRY", # Error handling stuff
"UP", # Update syntax to newer versions
"W", # pycodestyle warnings
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = [
"ANN", "ARG001", "D",
]
[tool.ruff.lint.isort]
lines-after-imports = 2