-
Notifications
You must be signed in to change notification settings - Fork 255
/
Copy pathpyproject.toml
153 lines (136 loc) · 3.55 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
[project]
name = "poetry-core"
version = "2.0.1"
description = "Poetry PEP 517 Build Backend"
authors = [
{ name = "Sébastien Eustace", email = "[email protected]" }
]
maintainers = [
{ name = "Arun Babu Neelicattu", email = "[email protected]" },
{ name = "Bjorn Neergaard", email = "[email protected]" },
{ name = "Branch Vincent", email = "[email protected]" },
{ name = "Randy Döring", email = "[email protected]" },
{ name = "Steph Samson", email = "[email protected]" },
{ name = "finswimmer", email = "[email protected]" },
{ name = "Bartosz Sokorski", email = "[email protected]" },
]
license = { text = "MIT" }
requires-python = ">=3.9, <4.0"
readme = "README.md"
keywords = ["packaging", "dependency", "poetry"]
dynamic = ["classifiers"]
[project.urls]
homepage = "https://github.com/python-poetry/poetry-core"
repository = "https://github.com/python-poetry/poetry-core"
"Bug Tracker" = "https://github.com/python-poetry/poetry/issues"
[tool.poetry]
requires-poetry = ">=2.0"
packages = [
{ include = "poetry", from = "src" },
]
include = [{ path = "tests", format = "sdist" }]
classifiers = [
"Topic :: Software Development :: Build Tools",
"Topic :: Software Development :: Libraries :: Python Modules",
]
[tool.poetry.group.dev.dependencies]
pre-commit = ">=2.15.0"
vendoring = ">=1.0"
[tool.poetry.group.test.dependencies]
pytest = ">=7.1.2"
pytest-cov = ">=3.0.0"
pytest-mock = ">=3.10"
build = ">=0.10.0"
setuptools = ">=60"
tomli-w = "^1.0.0"
virtualenv = ">=20.21"
trove-classifiers = ">=2022.5.19"
[tool.poetry.group.typing.dependencies]
mypy = ">=1.0"
types-setuptools = ">=57.4.14"
[tool.ruff]
extend-exclude = [
"src/poetry/core/_vendor/*",
"tests/**/fixtures/*",
]
fix = true
line-length = 88
src = ["src"]
target-version = "py39"
[tool.ruff.lint]
extend-select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"ERA", # flake8-eradicate/eradicate
"I", # isort
"N", # pep8-naming
"PIE", # flake8-pie
"PGH", # pygrep
"RUF", # ruff checks
"SIM", # flake8-simplify
"T20", # flake8-print
"TCH", # flake8-type-checking
"TID", # flake8-tidy-imports
"UP", # pyupgrade
"PTH", # flake8-use-pathlib
]
ignore = [
"B904", # use 'raise ... from err'
"B905", # use explicit 'strict=' parameter with 'zip()'
]
extend-safe-fixes = [
"TCH", # move import from and to TYPE_CHECKING blocks
]
unfixable = [
"ERA", # do not autoremove commented out code
]
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff.lint.isort]
force-single-line = true
lines-between-types = 1
lines-after-imports = 2
known-first-party = ["poetry.core"]
known-third-party = ["poetry.core._vendor"]
required-imports = ["from __future__ import annotations"]
[tool.mypy]
files = "src, tests"
mypy_path = "src"
namespace_packages = true
explicit_package_bases = true
show_error_codes = true
strict = true
enable_error_code = [
"ignore-without-code",
"redundant-expr",
"truthy-bool",
]
exclude = [
"src/poetry/core/_vendor",
"tests/fixtures",
"tests/masonry/builders/fixtures",
]
[[tool.mypy.overrides]]
module = [
'fastjsonschema.*',
'lark.*',
'virtualenv.*',
]
ignore_missing_imports = true
[tool.vendoring]
destination = "src/poetry/core/_vendor/"
requirements = "src/poetry/core/_vendor/vendor.txt"
namespace = ""
protected-files = ["vendor.txt"]
patches-dir = "vendors/patches"
[tool.vendoring.transformations]
drop = [
"bin/",
"*.so",
"typing.*",
"*/tests/",
]
[build-system]
requires = []
build-backend = "poetry.core.masonry.api"
backend-path = ["src"]