-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
58 lines (51 loc) · 1.19 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
[project]
name = "mymodule"
authors = [
{ name = "Alice Wonderland", email = "[email protected]" },
{ name = "Bob Wonderland", email = "[email protected]" },
]
description = "This a repository from a repository template."
readme = "README.md"
requires-python = ">=3.13"
version = "0.0.1"
dependencies = [
"pydantic>=2.10.6",
]
[dependency-groups]
dev = [
"notebook>=7.3.2",
]
[project.scripts]
cli = 'mymodule.cli:main'
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build]
exclude = [
".direnv",
".devenv",
".output",
]
[tool.ruff]
extend-include = ["*.ipynb"]
target-version = "py313"
line-length = 88
[tool.ruff.lint]
extend-select = [
"W605", # pycodestyle: invalid-escape-sequence
"S102", # flake8-bandit: exec-builtin
"INP", # flake8-no-pep420
"PYI", # flake8-pyi
"PT", # flake8-pytest-style
"PGH", # pygrep-hooks
"PL", # Pylint
"NPY", # NumPy-specific rules
"RUF", # Ruff-specific rules
]
ignore = [
"NPY002", # numpy-legacy-random
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
"tests/**" = ["INP001"]
"[!t][!e][!s][!t][!s]*/**" = ["PT"]