-
Notifications
You must be signed in to change notification settings - Fork 4
/
pyproject.toml
96 lines (86 loc) · 2.24 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
[build-system]
requires = ["setuptools>=61", "wheel", "setuptools_scm[toml]>=7.0"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
packages = [
"blackdoc",
"blackdoc.formats",
"blackdoc.tests",
"blackdoc.tests.data",
]
[tool.setuptools_scm]
[project]
name = "blackdoc"
authors = [
{ name = "Justus Magin", email = "keewis@posteo.de" },
]
license = { text = "MIT License" }
description = "run black on documentation code snippets"
readme = "README.rst"
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"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",
"Topic :: Documentation",
"Topic :: Software Development :: Documentation",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Quality Assurance",
]
requires-python = ">= 3.9"
dependencies = [
"black",
"more-itertools",
"tomli",
"pathspec",
"rich",
]
dynamic = ["version"]
[project.urls]
Repository = "https://github.com/keewis/blackdoc"
Issues = "https://github.com/keewis/blackdoc/issues"
Documentation = "https://blackdoc.readthedocs.io/en/stable"
[project.scripts]
blackdoc = "blackdoc.__main__:main"
[tool.ruff]
target-version = "py39"
builtins = ["ellipsis"]
exclude = [
".git",
".eggs",
"build",
"dist",
"__pycache__",
]
line-length = 100
[tool.ruff.lint]
ignore = [
"E402", # E402: module level import not at top of file
"E501", # E501: line too long - let black worry about that
"E731", # E731: do not assign a lambda expression, use a def
]
select = [
"F", # Pyflakes
"E", # Pycodestyle
"I", # isort
"UP", # Pyupgrade
"TID", # flake8-tidy-imports
"W",
]
extend-safe-fixes = [
"TID252", # absolute imports
]
fixable = ["I", "TID252", "UP"]
[tool.ruff.lint.isort]
known-first-party = ["blackdoc"]
[tool.ruff.lint.flake8-tidy-imports]
# Disallow all relative imports.
ban-relative-imports = "all"