-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
90 lines (80 loc) · 2 KB
/
pyproject.toml
File metadata and controls
90 lines (80 loc) · 2 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
[project]
name = "tomledit"
description = "Format-preserving TOML parser"
readme = "README.md"
authors = [
{ name = "David Hotham" },
]
keywords = ["encoding", "toml"]
classifiers = [
"License :: OSI Approved :: Apache Software License",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
]
requires-python = ">=3.10"
dependencies = []
dynamic = [
"license",
"version",
]
[project.urls]
Repository = "https://github.com/dimbleby/tomledit"
Issues = "https://github.com/dimbleby/tomledit/issues"
Changelog = "https://github.com/dimbleby/tomledit/blob/main/CHANGELOG.md"
[dependency-groups]
dev = [
"hypothesis>=6.151.9",
"mypy>=1.19.1",
"pytest>=8.4.2",
"typing-extensions>=4.15.0",
]
[build-system]
requires = ["maturin>=1.0,<2.0"]
build-backend = "maturin"
[tool.maturin]
features = ["pyo3/extension-module"]
[tool.mypy]
files = "."
strict = true
enable_error_code = [
"deprecated",
"explicit-override",
"ignore-without-code",
"redundant-expr",
"truthy-bool",
"truthy-iterable",
"unused-awaitable",
]
warn_unreachable = true
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"C90", # mccabe
"COM", # flake8-commas
"CPY", # flake8-copyright
"D", # pydocstyle
"DOC", # pydoclint
"ERA", # eradicate
"PD", # pandas-vet
"PLR", # pylint-refactor
"T20", # flake8-print
"ANN401", # any-type
"E203", # whitespace before ':'
"S101", # assert-used
]
extend-safe-fixes = [
"TC", # flake8-type-checking
]
unfixable = [
"F841", # unused-variable
]
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff.lint.flake8-type-checking]
strict = true
[tool.ruff.lint.isort]
required-imports = ["from __future__ import annotations"]
[tool.pytest]
addopts = ["-m", "not slow"]
markers = ["slow: slow property-based tests (run with -m slow)"]
strict = true