-
-
Notifications
You must be signed in to change notification settings - Fork 591
/
Copy pathpyproject.toml
177 lines (158 loc) · 4.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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
[tool.black]
line-length = 100
[project]
name = "isort"
dynamic = ["version"]
description = "A Python utility / library to sort Python imports."
authors = [{name = "Timothy Crosley", email = "[email protected]"}, {name = "staticdev", email = "[email protected]"}]
license = "MIT"
readme = "README.md"
repository = "https://github.com/pycqa/isort"
homepage = "https://pycqa.github.io/isort/"
documentation = "https://pycqa.github.io/isort/"
keywords = ["Refactor", "Lint", "Imports", "Sort", "Clean"]
classifiers = [
"Development Status :: 6 - Mature",
"Intended Audience :: Developers",
"Natural Language :: English",
"Environment :: Console",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"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",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Software Development :: Libraries",
"Topic :: Utilities",
]
urls = { changelog = "https://github.com/PyCQA/isort/releases" }
include = [
{ path = "tests", format = "sdist" },
{ path = "ACKNOWLEDGEMENTS.md", format = "sdist" },
{ path = "LICENSE", format = "sdist" },
]
requires-python = ">=3.9.0"
dependencies = []
[tool.hatch.version]
source = "vcs"
[tool.hatch.version.raw-options]
local_scheme = "no-local-version"
[project.scripts]
isort = "isort.main:main"
isort-identify-imports = "isort.main:identify_imports_main"
[project.entry-points."distutils.commands"]
isort = "isort.setuptools_commands:ISortCommand"
[project.entry-points."pylama.linter"]
isort = "isort.pylama_isort:Linter"
[project.optional-dependencies]
colors = ["colorama"]
plugins = ["setuptools"]
[tool.coverage.paths]
source = [
"isort/",
".tox/*/lib/python*/site-packages/isort/",
".tox/*/lib/site-packages/isort/"
]
tests = ["tests", "*/tests"]
[tool.coverage.run]
branch = true
source = ["isort", "tests"]
omit = [
"isort/_vendored/*",
"tests/*",
"isort/deprecated/*",
]
[tool.coverage.report]
show_missing = true
fail_under = 99
exclude_lines = [
"pragma: no cover",
"except ImportError:",
"if TYPE_CHECKING:",
"if __name__ == .__main__.:",
"raise NotImplementedError",
]
[tool.portray.mkdocs]
edit_uri = "https://github.com/pycqa/isort/edit/main/"
extra_css = ["art/stylesheets/extra.css"]
[tool.portray.mkdocs.theme]
name = "material"
favicon = "art/logo.png"
logo = "art/logo.png"
palette = {scheme = "isort"}
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[dependency-groups]
dev = [
"bandit>=1.7.7",
"black>=24.3.0",
"colorama>=0.4.6",
"coverage[toml]>=6.5.0",
"cruft>=2.12.0",
"example-isort-sorting-plugin>=0.1.0",
"example-shared-isort-profile>=0.1.0",
"flake8>=3.8.4",
"flake8-bugbear>=22.12.12",
"flake8-pyproject>=1.2.3",
"hatch>=1.14.0",
"httpx>=0.13.3",
"hypothesis>=6.10.1",
"hypothesmith>=0.1.3",
"libcst>=0.3.18",
"mypy>=1.14.1",
"mypy-extensions>=0.4.3",
"pep8-naming>=0.8.2",
"pip>=21.1.1",
"pip_api>=0.0.12",
"pipreqs>=0.4.9",
"portray>=1.8.0",
"pre-commit>=2.13.0",
"pylama>=7.7",
"pytest>=7.4.2",
"pytest-benchmark>=3.4.1",
"pytest-mock>=1.10",
"requirementslib>=1.5",
"safety>=2.2.0",
"stdlibs>=2024.10.21.16",
"toml>=0.10.2",
"types-colorama>=0.4.2",
"types-setuptools>=70.0.0.20240523",
"types-toml>=0.1.3",
"vulture>=1.0",
]
[tool.flake8]
max-line-length = 100
# Ignore non PEP 8 compliant rules as suggested by black
# E203: https://github.com/psf/black/blob/3fab5ade71bccf80ae0a5af76729099869adea56/docs/the_black_code_style/current_style.md#slices
extend-ignore = [
"B017",
"E203",
]
exclude = "_vendored"
per-file-ignores = [
"tests/unit/example_crlf_file.py:F401",
"tests/unit/profiles/test_black.py:E501",
"tests/unit/test_regressions.py:E501",
]
[tool.mypy]
python_version = 3.9
strict = true
follow_imports = "silent"
exclude = "isort/_vendored|tests/unit/example_projects|tests/unit/example_crlf_file.py"
[[tool.mypy.overrides]]
module = "tests.*"
allow_untyped_defs = true
allow_incomplete_defs = true
allow_untyped_calls = true
[tool.isort]
profile = "hug"
src_paths = ["isort", "tests"]
skip = [
"tests/unit/example_crlf_file.py"
]