-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
70 lines (59 loc) · 1.34 KB
/
pyproject.toml
File metadata and controls
70 lines (59 loc) · 1.34 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
[project]
name = "siiway-python-template"
version = "0.1.0"
description = "A template for Python projects, including a basic structure and setup files."
readme = "README.md"
requires-python = ">=3.13"
[project.optional-dependencies]
dev = [
"poethepoet>=0.42.1",
"pre-commit>=4.5.1",
"pytest>=9.0.2",
"ruff>=0.15.8",
"ty>=0.0.26",
]
[project.scripts]
siiway = "main:main"
[tool.ruff]
line-length = 100
target-version = "py313"
exclude = [".git", ".venv", "dist", "build"]
[tool.ruff.lint]
select = [
"E", # pycodestyle (Errors)
"F", # Pyflakes
"I", # isort (Import sorting)
"B", # flake8-bugbear
"UP", # pyupgrade
"N", # pep8-naming
]
ignore = [
"E741", # Ambiguous variable name: l / O / I
"E501", # Line too long (100 > 79 characters)
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "lf"
[tool.ty.environment]
python-version = "3.13"
[tool.ty.src]
include = ["src", "tests"]
exclude = ["build", "dist"]
[tool.ty.rules]
all = "error"
[tool.ty.terminal]
output-format = "full"
error-on-warning = false
[tool.pytest.ini_options]
minversion = "7.0"
addopts = "-q"
testpaths = ["tests"]
[tool.poe.tasks]
lint = "ruff check ."
format = "ruff format ."
test = "pytest"
typecheck = "ty check"
run = "python -m main"
precommit-install = "pre-commit install"
precommit-run = "pre-commit run --all-files"