-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
48 lines (42 loc) · 1.1 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
[project]
name = "prelude-runner"
dynamic = ["version"]
requires-python = ">=3.11"
dependencies = ["nbclient"]
[project.scripts]
prelude-runner = "prelude_runner.cli:main"
[project.optional-dependencies]
test = [
"pytest",
"coverage",
"ipykernel",
# Seed resets
"numpy",
]
[tool.hatch.version]
source = "vcs"
[tool.hatch.envs.test]
python = "3.11"
features = ["test"]
[tool.hatch.envs.test.scripts]
run = "pytest -vv {args}"
[tool.ruff.lint]
select = ["ALL"]
extend-ignore = [
"COM812", "ISC001", # Incompatible with formatter
"D203", # Use no blank line before class
"D213", # Use multiline summary on first line
"FIX002", # Comments with “TODO” are OK
"TD002", # No need for TODO authors
]
allowed-confusables = ["’", "×"]
[tool.ruff.lint.extend-per-file-ignores]
"tests/**/*.py" = [
"D100", # No module docstrings necessary for tests
"D103", # No function docstrings necessary for tests
"INP001", # Pytest directories are not packages
"S101", # Pytest rewrites asserts
]
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"