-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
126 lines (113 loc) · 2.69 KB
/
pyproject.toml
File metadata and controls
126 lines (113 loc) · 2.69 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
[project]
name = "hatch-pinned-extra"
dynamic = [ "version" ]
description = "Add a packaging extra with pinned dependencies from a lock file"
readme = "README.md"
authors = [
{ name = "Edgar Ramírez Mondragón", email = "edgarrm358@gmail.com" }
]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3.15",
]
license = "MIT"
requires-python = ">=3.10"
dependencies = [
"hatchling>=1.27.0",
"packaging>=24.2",
"tomli>=1.2.2; python_version < '3.11'",
]
[project.entry-points.hatch]
pinned_extra = "hatch_pinned_extra._plugin"
[dependency-groups]
dev = [
{ include-group = "testing" },
{ include-group = "typing" },
]
testing = [
"coverage>=7",
"packaging>=26.0",
"pytest>=8",
"syrupy>=4",
]
typing = [
{ include-group = "testing" },
"mypy>=1.19.1",
"tomli",
"ty>=0.0.15",
]
[build-system]
requires = [
"hatchling",
"hatch-vcs",
]
build-backend = "hatchling.build"
[tool.hatch.version]
fallback-version = "0.0.0.dev0"
source = "vcs"
[tool.pytest.ini_options]
addopts = ["-ra", "--strict-config", "--strict-markers"]
filterwarnings = ["error"]
log_level = "INFO"
minversion = "8"
testpaths = ["tests"]
xfail_strict = true
[tool.coverage.run]
branch = true
core = "sysmon"
source = ["hatch_pinned_extra", "tests"]
relative_files = true # This allows coverage to be measured in Windows
[tool.coverage.report]
show_missing = true
[tool.ruff]
line-length = 100
preview = true
[tool.ruff.lint]
select = [
"F", # Pyflakes
"E", # pycodestyle (error)
"W", # pycodestyle (warning)
"C90", # mccabe
"FLY", # flynt
"I", # isort
"UP", # pyupgrade
"YTT", # flake8-2020
"ANN", # flake8-annotations
"S", # flake8-bandit
"BLE", # flake8-blind-except
"FBT", # flake8-boolean-trap
"B", # flake8-bugbear
"CPY", # flake8-copyright
"FA", # flake8-future-annotations
"ISC", # flake8-implicit-str-concat
"PT", # flake8-pytest-style
"SIM", # flake8-simplify
"TID", # flake8-tidy-imports
"TC", # flake8-type-checking
"ARG", # flake8-unused-arguments
"FURB", # refurb
"RUF", # ruff
"TRY", # tryceratops
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = [
"S101", # assert
]
[tool.ty.src]
exclude = [
"noxfile.py",
]
[tool.mypy]
enable_error_code = [
"ignore-without-code",
"redundant-expr",
"truthy-bool",
]
follow_untyped_imports = true
strict = true
warn_unreachable = true