-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy pathpyproject.toml
More file actions
91 lines (79 loc) · 2.24 KB
/
pyproject.toml
File metadata and controls
91 lines (79 loc) · 2.24 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
82
83
84
85
86
87
88
89
90
91
[build-system]
requires = ["setuptools >= 65.0.0"]
build-backend = "backend"
backend-path = ["pep517backend"]
[project]
name = "PyGObject-stubs"
version = "2.17.0"
description = "Typing stubs for PyGObject"
readme = "README.md"
requires-python = ">=3.10"
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",
]
dependencies = [
"PyGObject>=3.55.0",
"typing_extensions",
]
[project.urls]
homepage = "https://github.com/pygobject/pygobject-stubs"
repository = "https://github.com/pygobject/pygobject-stubs"
[dependency-groups]
dev = [
"PyGObject@git+https://gitlab.gnome.org/GNOME/pygobject.git",
"codespell>=2.4.1",
"ruff==0.15.8",
"pre-commit",
]
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
"*" = ["*.pyi"]
[tool.codespell]
skip = "*__pycache__*,.mypy_cache,.git,pyproject.toml,test,*.pyi,*venv"
ignore-words-list = """
astroid,
inout"""
[tool.ruff]
line-length = 88
exclude = [
".eggs",
".git",
".ruff_cache",
".venv",
]
target-version = "py310"
[tool.ruff.lint]
select = [
"PYI", # flake8-pyi
"UP",
"I001", # isort
"F401", # unused imports
]
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
"PYI016", # Duplicate union member `None`
]
[tool.ruff.lint.isort]
case-sensitive = false
order-by-type = false
force-single-line = true
section-order = ["future", "typing", "standard-library", "third-party", "first-party", "local-folder"]
[tool.ruff.lint.isort.sections]
typing = ["_typeshed", "typing", "typing_extensions"]
[tool.pyright]
pythonVersion = "3.10"