-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
60 lines (52 loc) · 1.24 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
[project]
name = "vpython"
version = "0.1.0"
dependencies = []
requires-python = ">=3.10.0"
license = { text = "MIT" }
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[project.scripts]
vpython = "vpython:main"
[tool.pdm]
distribution = true
[tool.pdm.dev-dependencies]
lint = [
"pre-commit>=3.7.1",
]
[tool.pdm.scripts.post_install]
cmd = ["pre-commit", "install"]
help = "install pre-commit hooks"
[tool.pdm.scripts.lint]
cmd = ["pre-commit", "run", "--all-files"]
env = { PYTHONUTF8 = "1" }
help = "execute linters"
[tool.ruff]
cache-dir = ".cache/ruff"
target-version = "py312"
[tool.ruff.lint]
select = [
"F", # Pyflakes
"E", # pycodestyle errors
"W", # pycodestyle warnings
"I", # isort
"UP", # pyupgrade
"S", # flake8-bandit
"B", # flake8-bugbear
"C", # flake8-comprehensions
"DJ", # flake8-django
"T20", # flake8-print
"SIM", # flake8-simplify
"ARG", # flake8-unused-arguments
"PTH", # flake8-use-pathlib
"FURB", # refurb
"RUF", # Ruff-specific rules
]
ignore = [
# Suppressed by ruff formatter.
"W191", # tab-indentation
"E111", # indentation-with-invalid-multiple
"E114", # indentation-with-invalid-multiple-comment
"E117", # over-indented
]