-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
51 lines (43 loc) · 1.2 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
[project]
name = "pdm-python-project-template"
version = "0.1.7"
description = "A template for python projects in PDM"
authors = [{ name = "Daniel Tan", email = "[email protected]" }]
dependencies = ["pre-commit>=3.7.1"]
requires-python = ">=3.12"
readme = "README.md"
license = { text = "MIT" }
[project.optional-dependencies]
test = ["ruff>=0.4.3", "pytest>=8.2.0", "pyright>=1.1.361"]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.pdm]
distribution = true
[tool.ruff]
line-length = 88
lint.select = [
"E", # pycodestyle
"F", # pyflakes
"I",
]
exclude = ["third_party", ".venv"]
lint.ignore = ["F841", "E501", "E741", "I001", "E731"]
[tool.ruff.lint.extend-per-file-ignores]
"__init__.py" = ["F401", "F403", "E402"]
[tool.ruff.lint.isort]
known-first-party = ["pdm-python-project-template"]
force-single-line = true
single-line-exclusions = ["typing"]
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.pyright]
venvPath = "."
venv = ".venv"
include = ["pdm-python-project-template"]
[tool.semantic_release]
version_variables = [
"pdm_python_project_template/__init__.py:__version__",
"pyproject.toml:version",
]
branch = "main"