-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
117 lines (105 loc) · 2.83 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
[build-system]
requires = ["setuptools~=75.1"]
build-backend = "setuptools.build_meta"
[project]
name = "python-typing-update"
version = "0.7.1.dev0" # template: x.x.x[.dev0]
license = {text = "MIT"}
description = "Update Python typing syntax"
readme = "README.md"
authors = [{name = "Marc Mueller"}]
keywords = ["typing", "pep585", "pep604"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"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 :: Software Development",
]
requires-python = ">=3.9"
dependencies = [
"aiofiles==24.1.0",
"autoflake==2.3.1",
"isort==5.13.2",
"pyupgrade==3.19.1",
"reorder-python-imports==3.14.0",
]
[project.urls]
"Source Code" = "https://github.com/cdce8p/python-typing-update"
[project.optional-dependencies]
black = [
"black==24.10.0",
]
ruff = [
"ruff==0.8.6",
]
[project.scripts]
python-typing-update = "python_typing_update.__main__:main"
[tool.setuptools]
license-files = ["LICENSE", "AUTHORS"]
[tool.setuptools.package-data]
"*" = ["py.typed", "*.pyi"]
[tool.setuptools.packages.find]
include = ["python_typing_update*"]
[tool.isort]
# https://pycqa.github.io/isort/docs/configuration/options.html
multi_line_output = 4
line_length = 72
combine_as_imports = true
force_sort_within_sections = true
known_first_party = [
"python_typing_update",
"tests",
]
forced_separate = ["tests"]
[tool.pytest.ini_options]
testpaths = ["tests"]
norecursedirs = ["fixtures"]
console_output_style = "count"
log_level = "NOTSET"
# https://pytest-asyncio.readthedocs.io/en/latest/reference/configuration.html
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
[tool.mypy]
# https://mypy.readthedocs.io/en/stable/config_file.html
python_version = "3.9"
show_error_codes = true
ignore_missing_imports = true
strict = true
follow_imports = "normal"
exclude = "tests/fixtures/.+\\.py"
# Untyped definitions and calls
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
# None and optional handeling
no_implicit_optional = true
strict_optional = true
# Configure warnings
warn_redundant_casts = true
warn_unused_ignores = true
warn_unused_configs = true
# Misc
implicit_reexport = false
strict_equality = true
enable_error_code = ["ignore-without-code"]
# TODO
allow_any_generics = true
# [[tool.mypy.overrides]]
# module = "tests.*"
# # Untyped definitions and calls
# disallow_untyped_calls = false
# disallow_untyped_defs = false
# disallow_incomplete_defs = false
[tool.flake8]
max_line_length = 119
extend_exclude = [
".github",
".vscode",
"tests/fixtures",
"venv*",
]