-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
81 lines (69 loc) · 2.38 KB
/
pyproject.toml
File metadata and controls
81 lines (69 loc) · 2.38 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
[project]
name = "ziptie"
version = "0.1.0"
description = "Build C/C++/Zig extension modules for CPython using Zig Compiler"
authors = [{ name = "Yoshikage Kira", email = "8bit_yoshikage_kira@proton.me" }]
license = { text = "MIT" }
readme = "README.md"
requires-python = ">=3.10,<4.0"
dependencies = []
[tool.poetry.group.typing.dependencies]
pyright = "^1.1.402"
mypy = "^1.16.1"
[tool.poetry.group.linting.dependencies]
ruff = "^0.12.1"
docstrfmt = "^1.10.0"
[build-system]
requires = ["poetry-core>=2.0.0,<3.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.mypy]
# Enable strict mode, which includes several strictness flags
strict = true
# Disallow dynamic typing
disallow_any_decorated = false
disallow_any_explicit = false
disallow_any_expr = false
disallow_any_generics = true
disallow_any_unimported = true
disallow_subclassing_any = true
# Additional strictness settings
check_untyped_defs = true
disallow_incomplete_defs = true
disallow_untyped_calls = true
disallow_untyped_decorators = true
disallow_untyped_defs = true
no_implicit_optional = true
no_implicit_reexport = true
show_error_codes = true
strict_equality = true
warn_redundant_casts = true
warn_return_any = true
warn_unreachable = true
warn_unused_configs = true
warn_unused_ignores = true
[tool.pyright]
exclude = [".venv", "venv"]
pythonVersion = "3.10"
typeCheckingMode = "strict"
reportPrivateUsage = false
[tool.ruff]
line-length = 160
[tool.ruff.format]
docstring-code-format = true
docstring-code-line-length = 88
[tool.ruff.lint]
ignore = [
"COM812", # Allow missing trailing comma. (handled by ruff format)
"D203", # Allow class doc strings without requiring a blank line before them (conflicts with D211).
"D213", # Allow multi-line docstring summaries to end on the first line (conflicts with D212).
"D401", # Allow docstring summaries that are not in imperative mood.
"EM", # Allow exception messages that do not follow specific formatting rules.
"FBT", # Allow functions to take boolean positional arguments.
"S311", # Allow use of Standard pseudo-random generators.
"S603", # Allow `subprocess` calls without enforcing `shell=False` (potential security risk).
"T201", # Allow usage of `print()` instead of enforcing logging.
"TRY003", # Allow specifying long error messages inside the exception class instead of outside.
]
select = ["ALL"]
[tool.docstrfmt]
line-length = 120