Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
73 lines (64 loc) · 1.64 KB
/
Copy pathpyproject.toml
File metadata and controls
73 lines (64 loc) · 1.64 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
[project]
name = "tomlkit"
version = "0.15.1"
description = "Style preserving TOML library"
authors = [
{ name = "Sébastien Eustace", email = "sebastien@eustace.io" },
{ name = "Frost Ming", email = "me@frostming.com" }
]
license = "MIT"
readme = "README.md"
requires-python = ">=3.9"
[project.urls]
Homepage = "https://github.com/python-poetry/tomlkit"
Repository = "https://github.com/python-poetry/tomlkit"
Changelog = "https://github.com/python-poetry/tomlkit/blob/master/CHANGELOG.md"
[tool.poetry]
include = [
{ path = "tomlkit/py.typed" },
{ path = "tests", format = "sdist" },
{ path = "docs", format = "sdist" },
{ path = "CHANGELOG.md", format = "sdist" },
]
[dependency-groups]
dev = [
"pytest~=7.2",
"pytest-cov~=4.0",
"PyYAML~=6.0",
"pre-commit~=2.20",
"mypy==1.19.1",
"Sphinx>=4.3.2,<5.0.0",
"furo>=2022.9.29,<2023.0.0",
]
[tool.ruff.lint]
# Pin the base rule set; ruff 0.16 expanded its default selection.
select = ["E4", "E7", "E9", "F"]
extend-select = [
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"PGH", # pygrep-hooks
"RUF", # ruff
"W", # pycodestyle
"YTT", # flake8-2020
]
extend-ignore = ["B018", "B019", "RUF018"]
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.ruff.lint.isort]
known-first-party = ["tomlkit"]
known-third-party = ["pytest"]
force-single-line = true
lines-after-imports = 2
lines-between-types = 1
[tool.mypy]
files = "tomlkit, tests"
strict = true
enable_error_code = [
"ignore-without-code",
"redundant-expr",
"truthy-bool",
]
[build-system]
requires = ["poetry-core>=2.2.0"]
build-backend = "poetry.core.masonry.api"