-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
48 lines (42 loc) · 1.02 KB
/
pyproject.toml
File metadata and controls
48 lines (42 loc) · 1.02 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
[project]
name = "spacegame"
version = "0.1.0"
description = "2D Space Shooter"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"pygame-ce>=2.5.3",
]
[tool.ruff]
line-length = 120
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"S311", # suspicious-non-cryptographic-random-usage
"D203", # incorrect-blank-line-before-class
"D213", # multi-line-summary-second-line
"COM812", # missing-trailing-comma, see https://docs.astral.sh/ruff/rules/missing-trailing-comma/
"TD002", # TODO-missing-author-name
"TD003", # TODO-missing-issue-link
]
[tool.ruff.lint.extend-per-file-ignores]
"tests/**/*.py" = [
"S101", # Allow asserts in tests
"D", # Disable all doc in tests
"PLR2004", # Allow magic values
"SLF001", # Allow accessing protected attributes
]
[dependency-groups]
dev = [
"pygbag",
"pytest>=8.3.4",
"mypy>=1.15.0",
"pytest-xdist>=3.5.0",
]
lint = [
"ruff"
]
[tool.pytest.ini_options]
addopts = "--doctest-modules -n auto"
[tool.black]
line-length = 120