-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
153 lines (141 loc) · 4.1 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
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "fmf-jinja"
authors = [
{ name = "Cristian Le", email = "[email protected]" },
]
maintainers = [
{ name = "Cristian Le", email = "[email protected]" },
]
description = "Jinja-style templater using fmf metadata"
readme = "README.md"
license = "GPL-3.0-or-later"
requires-python = ">=3.9"
classifiers = [
"Development Status :: 3 - Alpha",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Utilities",
]
keywords = [
"metadata",
"template",
]
dependencies = [
"fmf",
"attrs>=23.2.0", # cached_property is broken otherwise
"Jinja2",
"click",
]
dynamic = ["version"]
[project.urls]
Homepage = "https://github.com/LecrisUT/fmf-jinja"
[project.optional-dependencies]
test = [
"pytest",
]
test-cov = [
"fmf-jinja[test]",
"pytest-cov",
]
docs = [
"sphinx",
"furo",
"myst-parser",
"sphinx-tippy",
"sphinx-autodoc-typehints",
"sphinx-click",
]
[project.scripts]
fmf-jinja = "fmf_jinja.cli:main"
[tool.hatch]
version.source = "vcs"
version.raw-options.version_scheme = "post-release"
build.hooks.vcs.version-file = "src/fmf_jinja/_version.py"
metadata.allow-direct-references = true
[tool.pytest.ini_options]
testpaths = [
"test",
]
[tool.ruff]
src = ["src"]
[tool.ruff.lint]
extend-select = [
"F", # pyflakes
"W", # pycodestyle-warnings
"E", # pycodestyle-errors
"I", # isort
"N", # pep8-naming
"D", # pydocstyle
"UP", # pyupgrade
"YTT", # flake8-2020
"ANN", # flake8-annotations
"S", # flake8-banditF
"FBT", # flake8-boolean-trap
"B", # flake8-bugbear
"A", # flake8-builtins
"COM", # flake8-comma
"C4", # flake8-comprehensions
"EM", # flake8-errmsg
"FA", # flake8-future-annotations
"ISC", # flake8-implicit-str-concat
"ICN", # flake8-import-conventions
"G", # flake8-logging-format
"PIE", # flake8-pie
"T20", # flake8-print
"PYI", # flake8-pyi
"PT", # flake8-pytest-style
"Q", # flake8-quotes
"RSE", # flake8-raise
"RET", # flake8-return
"SLF", # flake8-self
"SIM", # flake8-simplify
"TID", # flake8-tidy-imports
"TCH", # flake8-type-checking
"ARG", # flake8-unused-arguments
"PTH", # flake8-use-pathlib
"TD", # flake8-todos
"ERA", # eradicate
"PGH", # pygrep-hooks
"PL", # pylint
"TRY", # tryceratops
"FLY", # flynt
"PERF", # perflint
"FURB", # refurb
"RUF", # Ruff-specific
]
ignore = [
"ANN101", # Missing type annotation for `self` in method
"ANN102", # Missing type annotation for `cls` in classmethod
"D203", # 1 blank line required before class docstring
"D212", # Multi-line docstring summary should start at the first line
"S101", # Use of assert detected
"TD002", # Missing author in TODO
"TD003", # Missing issue link on the line following this TODO
"D200", # One-line docstring should fit on one line
"TID252", # Prefer absolute imports over relative imports from parent modules
]
[tool.ruff.lint.per-file-ignores]
"test/**" = ["D", "ANN"]
[tool.mypy]
files = ["src", "test"]
mypy_path = ["$MYPY_CONFIG_FILE_DIR/src"]
python_version = "3.12"
warn_unused_configs = true
show_error_codes = true
enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
strict = true
disallow_untyped_defs = false
disallow_incomplete_defs = false
[[tool.mypy.overrides]]
module = ["fmf_jinja.*"]
disallow_untyped_defs = true
disallow_incomplete_defs = true
[[tool.mypy.overrides]]
module = ["fmf.*"]
ignore_missing_imports = true