forked from PyCQA/flake8-pyi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
111 lines (99 loc) · 2.95 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
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "flake8-pyi"
dynamic = ["version"]
authors = [
{ name="Łukasz Langa", email="[email protected]" },
]
maintainers = [
{ name="Jelle Zijlstra", email="[email protected]" },
{ name="Alex Waygood", email="[email protected]" },
{ name="Sebastian Rittau", email="[email protected]" },
{ name="Akuli" },
{ name="Shantanu" },
]
description = "A plugin for flake8 to enable linting .pyi stub files."
license = { text = "MIT" }
readme = "README.md"
requires-python = ">=3.9"
keywords = [
"flake8",
"pyi",
"bugs",
"pyflakes",
"linter",
"qa",
"stubs",
"typing",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Framework :: Flake8",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"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 :: Libraries :: Python Modules",
"Topic :: Software Development :: Quality Assurance",
]
dependencies = [
"flake8 >= 6.0.0, < 8.0.0",
"pyflakes >= 2.1.1",
]
[project.urls]
"Homepage" = "https://github.com/PyCQA/flake8-pyi"
"Source" = "https://github.com/PyCQA/flake8-pyi"
"Bug Tracker" = "https://github.com/PyCQA/flake8-pyi/issues"
"Changelog" = "https://github.com/PyCQA/flake8-pyi/blob/main/CHANGELOG.md"
[project.optional-dependencies]
dev = [
"black==24.8.0", # Must match .pre-commit-config.yaml
"flake8-bugbear==24.8.19",
"flake8-noqa==1.4.0",
"isort==5.13.2", # Must match .pre-commit-config.yaml
"mypy==1.11.2",
"pre-commit-hooks==4.6.0", # Must match .pre-commit-config.yaml
"pytest==8.3.3",
"pytest-xdist==3.6.1",
"types-pyflakes<4",
]
[project.entry-points]
"flake8.extension" = {Y0 = "pyi:PyiTreeChecker"}
[tool.hatch.build.targets.wheel]
include = ["pyi.py"]
[tool.hatch.version]
source = "vcs"
[tool.hatch.version.raw-options]
local_scheme = "no-local-version"
[tool.isort]
profile = "black"
combine_as_imports = true
skip = ["tests/imports.pyi", "tests/pep604_union_types.pyi"]
skip_gitignore = true
[tool.black]
target-version = ['py39']
skip-magic-trailing-comma = true
force-exclude = ".*\\.pyi"
[tool.mypy]
files = ["pyi.py", "tests/test_pyi_files.py"]
show_traceback = true
pretty = true
strict = true
enable_error_code = "ignore-without-code,redundant-expr,possibly-undefined"
warn_unreachable = true
allow_subclassing_any = true
[[tool.mypy.overrides]]
module = 'flake8.*'
ignore_missing_imports = true
[tool.pytest.ini_options]
addopts = "--doctest-modules -nauto"
filterwarnings = ["error"]