-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
105 lines (96 loc) · 2.71 KB
/
pyproject.toml
File metadata and controls
105 lines (96 loc) · 2.71 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
[build-system]
build-backend = "hatchling.build"
requires = [ "hatchling" ]
[project]
name = "docstringify"
version = "1.1.1"
description = "Flag missing docstrings and, optionally, generate them from signatures and type annotations."
readme = "README.md"
keywords = [
"ast",
"docstring generation",
"google-style docstring",
"numpydoc-style docstring",
"pre-commit",
]
license = "MIT"
license-files = [ "LICENSE" ]
authors = [
{ name = "Stefanie Molin", email = "docstringify@stefaniemolin.com" },
]
requires-python = ">=3.11"
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dependencies = [ ]
urls.Documentation = "https://github.com/stefmolin/docstringify"
urls.Homepage = "https://github.com/stefmolin/docstringify"
urls.Source = "https://github.com/stefmolin/docstringify"
scripts.docstringify = "docstringify.cli:main"
[dependency-groups]
dev = [ "pre-commit", { include-group = "test" } ]
test = [
"pytest>=8.3.4",
"pytest-cov>=4.1.0",
"pytest-randomly>=3.12.0",
]
[tool.ruff]
line-length = 88
format.indent-style = "space"
format.quote-style = "single"
format.docstring-code-format = true
lint.select = [
"ANN", # flake8-annotations
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"E", # pycodestyle error
"ERA", # eradicate (commented out code)
"F", # pyflakes
"FA", # flake8-future-annotations
"I", # isort
"ICN", # flake8-import-conventions
"N", # pep8-naming
"PERF", # perflint
"PT", # flake8-pytest-style
"PTH", # flake8-use-pathlib
"RET", # flake8-return
"RSE", # flake8-raise
"RUF", # ruff-specific rules
"SIM", # flake8-simplify
"TC", # flake8-type-checking (performance improvements)
"TRY", # tryceratops
"UP", # pyupgrade
"W", # pycodestyle warning
]
lint.ignore = [
"E501", # line-too-long
]
lint.extend-per-file-ignores."tests/*" = [ "ANN" ] # don't require annotations for tests
lint.isort.known-first-party = [
"docstringify",
]
[tool.codespell]
ignore-words-list = "docstringify"
ignore-regex = 'https://([\w/\.])+'
[tool.numpydoc_validation]
checks = [
"all", # report on all checks
"GL08", # use Docstringify to test for docstring presence instead
"ES01", # but don't require an extended summary
"EX01", # or examples
"SA01", # or a see also section
"SS06", # and don't require the summary to fit on one line
]
exclude = [ # don't report on checks for these
'\.__init__$',
'\.__repr__$',
'\.__str__$',
]
override_SS05 = [ # allow docstrings to start with these words
'^Unambiguous ',
]