-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
120 lines (109 loc) · 2.96 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
[build-system]
build-backend = "hatchling.build"
requires = ["hatchling"]
[dependency-groups]
dev = [
"mypy>=1.14.1",
"orjson>=3.10.15",
"types-pygments>=2.19.0.20250107",
"types-tqdm>=4.67.0.20241221",
]
[project]
authors = [
{name = "STerliakov", email = "[email protected]"},
]
dependencies = [
"githubkit>=0.12.4",
"markdown-it-py[linkify]>=3.0.0",
"pygments>=2.19.1",
"ruff>=0.9.3",
"tqdm>=4.67.1",
]
description = "Add your description here"
name = "mypy-issues"
readme = "README.md"
requires-python = ">=3.11"
version = "0.1.0"
[project.scripts]
diff = "mypy_issues:run_diff"
fetch = "mypy_issues:fetch_issues"
run = "mypy_issues:run_mypy"
[tool.mypy]
allow_redefinition = true
check_untyped_defs = true
disallow_any_generics = true
disallow_any_unimported = false
disallow_subclassing_any = false
disallow_untyped_calls = false
disallow_untyped_decorators = false
enable_error_code = [
"possibly-undefined",
'redundant-expr',
'truthy-bool',
'truthy-iterable',
'ignore-without-code',
'unused-awaitable',
]
strict = true
strict_equality = true
warn_redundant_casts = true
warn_return_any = false
warn_unreachable = true
warn_unused_ignores = true
[tool.ruff]
preview = true
target-version = 'py311'
[tool.ruff.analyze]
detect-string-imports = true
[tool.ruff.format]
docstring-code-format = true
[tool.ruff.lint]
exclude = [
".svn",
"CVS",
".bzr",
".hg",
".git",
"__pycache__",
".tox",
".nox",
".eggs",
"*.egg",
"migrations",
"manage.py",
]
extend-ignore = [
"S101", # Use of `assert` detected
"EM102", # Exception must not use an f-string literal, assign to variable first
"TRY003", # Avoid specifying long messages outside the exception class
"ANN", # Type hints
"D", # Docstrings
"TD", # To-do comment lints
"FIX", # Line contains TODO/FIXME/HACK, consider resolving the issue
"DOC", # Docstrings
"CPY", # copyright
"TC00", # Move ... import `...` into a type-checking block
"EM101", # Exception must not use a string literal, assign to variable first
"PLC0415", # `import` should be at the top-level of a file
"PLR6301", # Method `xxx` could be a function, class method, or static method
"PLR0913", # Too many arguments in function definition (7 > 5)
"E501", # Let ruff care about line width, if not splitable - go on
# conflicts with ruff-fmt
"COM812",
# custom
"S404", # `subprocess` module is possibly insecure
"S603", # `subprocess` call: check for execution of untrusted input
]
extend-safe-fixes = ["F401"]
select = ['ALL']
[tool.ruff.lint.isort]
combine-as-imports = true
force-wrap-aliases = true
required-imports = ["from __future__ import annotations"]
section-order = ["future", "standard-library", "third-party", "first-party", "local-folder"]
split-on-trailing-comma = false
[tool.ruff.lint.per-file-ignores]
"diff.py" = ["T201"]
[tool.uv]
compile-bytecode = true
link-mode = "copy"