-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
executable file
·182 lines (170 loc) · 5.6 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
# Project packaging rules and instructions
[project]
name = "miller"
description = "Introspection tools using consistent, accessible syntax"
authors = [{name = "Corey Rayburn Yung", email = "[email protected]"}]
license = {text = "Apache Software License 2.0"}
readme = "README.md"
requires-python = ">=3.9"
dynamic = ["version"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Software Development"]
keywords = [
"inspect",
"introspection",
"utilities"]
dependencies = [
"camina >= 0.1.16",
"nagata >= 0.1.7"]
[project.urls]
Documentation = "https://WithPrecedent.github.io/miller"
Repository = "https://github.com/WithPrecedent/miller"
Issues = "https://github.com/WithPrecedent/miller/issues"
Changelog = "https://WithPrecedent.github.io/miller/changelog"
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.pdm]
plugins = [
"sync-pre-commit-lock[pdm]",
"pdm-multirun"]
[tool.pdm.build]
package-dir = "src"
editable-backend = "editables"
[tool.pdm.dev-dependencies]
docs = [
"markdown-callouts >= 0.3",
"markdown-exec >= 1.6.0",
"mkdocs >= 1.5.2",
"mkdocs-coverage >= 1.0.0",
"mkdocs-gen-files >= 0.5.0",
"mkdocs-git-committers-plugin-2 >= 1.1.2",
"mkdocs-literate-nav >= 0.6.0",
"mkdocs-material >= 9.1.2",
"mkdocs-minify-plugin >= 0.7.1",
"mkdocstrings[python] >= 0.22.0",
"toml >= 0.10.2"]
quality = [
"pre-commit >= 3.3.3",
"ruff >= 0.0.286"]
tests = [
"coverage >= 7.2.7",
"pytest >= 7.4.0",
"pytest-cov >= 4.1.0",
"pytest-randomly >= 3.13.0",
"pytest-xdist >= 3.3.1"]
[tool.pdm.version]
source = "file"
path = "src/camina/__init__.py"
[tool.pytest.ini_options]
addopts = "--showlocals"
asyncio_mode = "auto"
filterwarnings = ["ignore::DeprecationWarning"]
pythonpath = ["src"]
[tool.ruff]
extend-exclude = ["docs", "scripts", "site", "tests", ".*.*"]
fix = true
fixable = ["ALL"]
ignore = [
"A001", # Variable is shadowing a Python builtin
"ANN101", # Missing type annotation for self
"ANN102", # Missing type annotation for cls
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed
"ARG003", # Unused class method argument: `parameters`
"ARG005", # Unused lambda argument
"C901", # Too complex
"D105", # Missing docstring in magic method
"D400", # First line must end in a period
"D401", # First line of docstring should be in imperative mood
"D406", # Section name should end with a newline - bugged for 'Attributes:'
"D407", # Missing dashed underline after section ("Args")
"D415", # First line must end in a period, question mark, or exclamation point
"E501", # Line too long
"E731", # Do not assign a `lambda` expression, use a `def`
"ERA001", # Commented out code
"EXE002", # No shebang is present in an executable file
"FBT001", # Boolean positional arg in function definition
"G004", # Logging statement uses f-string
"PTH123", # `open()` should be replaced by `Path.open()`
"PLR0911", # Too many return statements
"PLR0912", # Too many branches
"PLR0913", # Too many arguments to function call
"PLR0915", # Too many statements
"PLR1711", # Useless 'return' at the end of function
"Q000", # Single quotes found but double quotes preferred
# "S0001", # Use of assert detected
"RET505", # Unnecessary `else` after `return` statement
"SLF001", # Private member accessed
"TID252", # Relative imports are banned
"TRY003", # Avoid specifying long messages outside the exception class
"UP004"] # Class inherits from `object`
# "W0105", # String statement has no effect
# "W0221", # Arguments differ
# "W0222",] # Access to a protected member
line-length = 80
select = [
"A", # flake8-buttons
"ANN", # flake8-annotations
"ARG", # flake8-unused-arguments
"B", # flake8-bugbear
"BLE", # flake8-blind-except
"C", #
"C4", # flake8-comprehensions
"COM", # flake8-commas
"D", # pydocstyle
"DTZ", # flake8-datetimez
"E", # pydocstyle errors
"ERA", # eradicate
"EXE", # flake8-executable
"F", # Pyflakes
"FBT", # flake8-boolean-trap
"G", # flake8-logging-format
"I", # isort
"ICN", # flake8-import-conventions
"INP", # flake8-no-pep420
"ISC", # flake8-implicit-str-concat
"N", # pep8-naming
"NPY", # NumPy-specific rules
"PD", # pandas-vet
"PGH", # pygrep-hooks
"PIE", # flake8-pie
"PL", # Pylint
"PLC", # Pylint
"PLE", # Pylint
"PLR", # Pylint
"PLW", # Pylint
"PT", # flake8-pytest-style
"PTH", # flake8-use-pathlib
"PYI", # flake8-pyi
"Q", # flake8-quotes
"RUF", # Ruff-specific rules
"RSE", # flake8-raise
"RET", # flake8-return
"S", # bandit
"SIM", # flake8-slots
"SLF", # flake8-self
"T", #
"T10", # flake8-debugger
"T20", # flake8-print
"TCH", # flake8-type-checking
"TID", # flake8-tidy-imports
"TRY", # tryceratops
"UP", # pyupgrade
"W", # pydocstyle warnings
"YTT",] # flake8-2020
[tool.ruff.flake8-annotations]
suppress-none-returning = true
[tool.ruff.flake8-quotes]
docstring-quotes = "double"
[tool.ruff.isort]
case-sensitive = true
known-first-party = ["camina"]
required-imports = ["from __future__ import annotations"]
split-on-trailing-comma = false