-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
118 lines (111 loc) · 3.15 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
[project]
name = "redkb"
version = "0.1.0"
description = "My personal knowledgebase, built with MkDocs."
readme = "README.md"
requires-python = ">=3.11"
authors = [{ name = "redjax", email = "[email protected]" }]
license = { text = "MIT" }
dependencies = [
"markdown-include>=0.8.1",
"mkdocs>=1.6.1",
"mkdocs-autorefs>=1.2.0",
"mkdocs-gen-files>=0.5.0",
"mkdocs-git-revision-date-localized-plugin>=1.3.0",
"mkdocs-glightbox>=0.4.0",
"mkdocs-htmlproofer-plugin>=1.3.0",
"mkdocs-literate-nav>=0.6.1",
"mkdocs-material>=9.5.42",
"mkdocs-rss-plugin>=1.15.0",
"mkdocs-section-index>=0.3.9",
"mkdocstrings[python]>=0.26.2",
"pygments>=2.18.0",
]
## Fix 'error: Multiple top-level packages discovered in flat-layout'
# https://github.com/pypa/setuptools/issues/3197#issuecomment-1078770109
[tool.setuptools]
py-modules = []
[tool.ruff.lint]
select = [
"D", # pydocstyle
"E", # pycodestyle
"F401", # remove unused imports
"I", # isort
"I001", # Unused imports
]
ignore = [
"D100", # missing-docstring-in-public-module
"D101", # missing-docstring-in-public-class
"D102", # missing-docstring-in-public-method
"D103", # Missing docstring in public function
"D105", # Missing docstring in magic method
"D106", # missing-docstring-in-public-nested-class
"D107", # Missing docstring in __init__
"D200", # One-line docstring should fit on one line
"D203", # one-blank-line-before-class
"D205", # 1 blank line required between summary line and description
"D213", # multi-line-summary-second-line
"D401", # First line of docstring should be in imperative mood
"E402", # Module level import not at top of file
"D406", # Section name should end with a newline
"D407", # Missing dashed underline after section
"D414", # Section has no content
"D417", # Missing argument descriptions in the docstring for [variables]
"E501", # Line too long
"E722", # Do not use bare `except`
"F401", # imported but unused
]
fixable = [
"C",
"D", # pydocstyle
"E", # pycodestyle-error
"E402", # Module level import not at top of file
"F401", # unused imports
"I", # isort
"N", # pep8-naming
"T",
"W", # pycodestyle-warning
"ERA", # eradicate
"PL", # pylint
"RUF", # ruf-specific rules
"TID", # flake8-tidy-imports
"TRY", # tryceratops
"UP", # pyupgrade
]
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".ruff_cache",
".venv",
"__pypackages__",
"__pycache__",
"*.pyc",
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["D104"]
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.ruff.lint.isort]
combine-as-imports = true
force-sort-within-sections = true
force-wrap-aliases = true
lines-after-imports = 1
order-by-type = true
relative-imports-order = "closest-to-furthest"
required-imports = ["from __future__ import annotations"]
section-order = [
"future",
"standard-library",
"first-party",
"local-folder",
"third-party",
]
[tool.uv]
dev-dependencies = [
"cookiecutter>=2.6.0",
"nox>=2024.10.9",
"pre-commit>=4.0.1",
"ruff>=0.7.0",
]