-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpyproject.toml
139 lines (124 loc) · 2.9 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
[build-system]
requires = ["hatchling>=1.12.2"]
build-backend = "hatchling.build"
[project]
name = "hatch-mypyc"
description = "Hatch build hook plugin for Mypyc"
readme = "README.md"
requires-python = ">=3.8"
license = "MIT"
keywords = [
"build",
"hatch",
"mypy",
"mypyc",
"plugin",
"typing",
]
authors = [
{ name = "Ofek Lev", email = "oss@ofek.dev" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Framework :: Hatch",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Software Development :: Build Tools",
]
dependencies = [
"hatchling>=1.12.2",
"mypy>=0.971",
"pathspec",
"setuptools",
]
dynamic = ["version"]
[project.urls]
Funding = "https://github.com/sponsors/ofek"
History = "https://github.com/ofek/hatch-mypyc/blob/master/HISTORY.md"
Issues = "https://github.com/ofek/hatch-mypyc/issues"
Source = "https://github.com/ofek/hatch-mypyc"
[project.entry-points.hatch]
mypyc = "hatch_mypyc.hooks"
[tool.hatch.version]
path = "hatch_mypyc/__about__.py"
[tool.black]
target-version = ["py37"]
line-length = 120
skip-string-normalization = true
[tool.ruff]
target-version = "py37"
line-length = 120
[tool.ruff.lint]
select = [
"A",
"B",
"C",
"E",
"F",
"FBT",
"I",
"N",
"Q",
"RUF",
"S",
"T",
"UP",
"W",
"YTT",
]
ignore = [
# Allow non-abstract empty methods in abstract base classes
"B027",
# Ignore McCabe complexity
"C901",
# Allow boolean positional values in function calls, like `dict.get(... True)`
"FBT003",
# Ignore checks for possible passwords
"S105", "S106", "S107",
# Ignore false-positive subprocess check (https://github.com/astral-sh/ruff/issues/4045)
"S603",
]
unfixable = [
# Don't touch unused imports
"F401",
]
[tool.ruff.lint.isort]
known-first-party = ["hatch_mypyc"]
[tool.ruff.lint.flake8-quotes]
inline-quotes = "single"
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff.lint.per-file-ignores]
# Tests can use relative imports and assertions
"tests/**/*" = ["TID252", "S101"]
[tool.mypy]
disallow_untyped_defs = false
follow_imports = "normal"
ignore_missing_imports = true
pretty = true
show_column_numbers = true
warn_no_return = false
warn_unused_ignores = true
[tool.coverage.run]
source_pkgs = ["hatch_mypyc", "tests"]
branch = true
parallel = true
omit = [
"hatch_mypyc/__about__.py",
]
[tool.coverage.paths]
hatch_mypyc = ["hatch_mypyc", "*/hatch-mypyc/hatch_mypyc"]
tests = ["tests", "*/hatch-mypyc/tests"]
[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]