-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
76 lines (68 loc) · 1.44 KB
/
pyproject.toml
File metadata and controls
76 lines (68 loc) · 1.44 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
71
72
73
74
75
76
[project]
name = "python-package-template"
version = "0.0.0"
authors = [
{ name="Mark", email="mark@remarkablemark.org" },
]
description = "Python Package Template"
readme = "README.md"
requires-python = ">=3.10"
classifiers = [
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
]
license = "MIT"
license-files = ["LICENSE"]
dependencies = []
[project.optional-dependencies]
docs = [
"pdoc==16.0.0",
]
lint = [
"mypy==1.19.1",
"pre-commit==4.5.1",
"ruff==0.15.4",
]
test = [
"coverage==7.13.4",
"pytest==9.0.2",
]
[project.urls]
Homepage = "https://github.com/remarkablemark/python-package-template"
Issues = "https://github.com/remarkablemark/python-package-template/issues"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort (import sorting)
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"ARG001", # unused arguments in functions
"T201", # no print statements
]
ignore = [
"E501", # line too long (handled by ruff)
]
[tool.mypy]
strict = true
ignore_missing_imports = true
exclude = [
'^tests/.*'
]
[tool.coverage.run]
omit = [
"*/tests/*",
"/opt/*",
"/tmp/*",
]
[tool.coverage.report]
show_missing = true
sort = "-Cover"
fail_under = 100
[tool.coverage.html]
show_contexts = true