-
Notifications
You must be signed in to change notification settings - Fork 27
/
pyproject.toml
86 lines (75 loc) · 2.04 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
[build-system]
requires = ["setuptools >= 65.0.0"]
build-backend = "backend"
backend-path = ["pep517backend"]
[project]
name = "PyGObject-stubs"
version = "2.12.0"
description = "Typing stubs for PyGObject"
readme = "README.md"
requires-python = ">=3.9"
license = {text = "LGPL-2.1"}
authors = [
{email = "reiter.christoph@gmail.com"},
{name = "Christoph Reiter"}
]
classifiers = [
"Programming Language :: Python :: 3",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)",
"Operating System :: OS Independent",
]
[project.optional-dependencies]
dev = [
"black>=24.1.1",
"codespell",
"isort>=5.13.2",
"ruff",
"pre-commit",
"PyGObject",
]
[project.urls]
homepage = "https://github.com/pygobject/pygobject-stubs"
repository = "https://github.com/pygobject/pygobject-stubs"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
"*" = ["*.pyi"]
[tool.black]
line-length = 88
target-version = ['py39']
include = '\.pyi?$'
[tool.codespell]
skip = "*__pycache__*,.mypy_cache,.git,test,*.pyi"
ignore-words-list = """
astroid,
inout"""
[tool.isort]
force_alphabetical_sort_within_sections = true
force_single_line = true
group_by_package = true
known_typing = ["typing"]
sections = ["FUTURE", "TYPING", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]
skip_gitignore = true
[tool.ruff]
line-length = 88
exclude = [
".eggs",
".git",
".ruff_cache",
".venv",
]
target-version = "py39"
[tool.ruff.lint]
select = [
"PYI", # flake8-pyi
]
ignore = [
"PYI001", # Name of private `TypeVar` must start with `_`
"PYI011", # Only simple default values allowed for typed arguments
"PYI019", # Methods like `__or__` should return `typing.Self` instead of a custom `TypeVar`
"PYI021", # Docstrings should not be included in stubs
"PYI026", # Use `typing_extensions.TypeAlias`
"PYI052", # Need type annotation
"PYI054", # Numeric literals with a string representation longer than ten characters are not permitted
]