-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
107 lines (95 loc) · 2.59 KB
/
Copy pathpyproject.toml
File metadata and controls
107 lines (95 loc) · 2.59 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "packagename"
dynamic = ["version"]
description = "Short package description"
readme = "README.md"
requires-python = ">=3.10"
license = "0BSD"
authors = [{ name = "Quad4" }]
keywords = []
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Typing :: Typed",
]
dependencies = []
[project.urls]
Homepage = "https://quad4.io"
Repository = "https://github.com/Quad4-Software/python-library-template"
Issues = "https://github.com/Quad4-Software/python-library-template/issues"
Changelog = "https://github.com/Quad4-Software/python-library-template/blob/master/CHANGELOG.md"
[tool.hatch.version]
path = "src/packagename/__init__.py"
[dependency-groups]
dev = [
"pytest>=9.1.1",
"pytest-cov>=7.1.0",
"ruff>=0.16.8",
"bandit>=1.9.4",
"mypy>=2.3.1",
]
[tool.ruff]
target-version = "py310"
src = ["src", "tests"]
[tool.ruff.lint]
select = [
"E", "W", # pycodestyle
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"YTT", # sys.version misuse
"FA", # future annotations
"A", # builtins shadowing
"B", # flake8-bugbear
"BLE", # blind except
"C4", # comprehensions
"C90", # mccabe complexity
"DTZ", # timezone-aware datetimes
"ERA", # commented-out code
"FURB", # refurb
"G", # logging format
"ICN", # import conventions
"ISC", # implicit string concat
"LOG", # logging
"PERF", # perflint
"PGH", # pygrep hooks
"PIE", # misc lints
"PT", # pytest style
"PTH", # pathlib
"RET", # return
"RSE", # raise/return
"S", # bandit rules
"SIM", # simplify
"SLOT", # __slots__
"T20", # print
"TRY", # exception handling
"RUF", # ruff-specific
]
ignore = [
"ISC001", # single-line implicit concat conflicts with the formatter
"TRY003", # long messages in raise calls are fine
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["S101", "S603"]
[tool.mypy]
strict = true
files = ["src", "tests"]
[tool.bandit]
exclude_dirs = ["tests"]
[tool.coverage.run]
branch = true
source = ["src/packagename"]
[tool.coverage.report]
show_missing = true
fail_under = 80
[tool.pytest.ini_options]
testpaths = ["tests"]
xfail_strict = true
filterwarnings = ["error"]