-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
172 lines (150 loc) · 4.51 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
# https://packaging.python.org/en/latest/specifications/declaring-project-metadata/
[build-system]
requires = ["setuptools >= 63.0"]
build-backend = "setuptools.build_meta"
# ----------------------------------------------------------------------
# |
# | Project
# |
# ----------------------------------------------------------------------
[project]
name = "dbrownell_Common"
description = "Common python functionality used across a number of different packages."
license = { text = "MIT" }
authors = [
{ name = "David Brownell", email = "[email protected]" },
]
keywords = [
# TODO: Add keywords specific to your project.
]
# https://pypi.org/classifiers/
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development",
"Topic :: System :: System Shells",
"Topic :: Terminals",
"Topic :: Utilities",
]
dependencies = [
"inflect ~= 4.1",
"rich ~= 13.7",
"typer == 0.*",
"typer-config ~= 1.4",
]
dynamic = [
"version",
]
readme = "README.md"
[project.optional-dependencies]
dev = [
"dbrownell_DevTools",
]
package = [
"build ~= 1.2",
"twine ~= 5.1",
]
[project.urls]
Homepage = "https://github.com/davidbrownell/dbrownell_Common"
Documentation = "https://github.com/davidbrownell/dbrownell_Common"
Repository = "https://github.com/davidbrownell/dbrownell_Common"
# ----------------------------------------------------------------------
# |
# | black
# |
# ----------------------------------------------------------------------
[tool.black]
line-length = 100
# ----------------------------------------------------------------------
# |
# | pylint
# |
# ----------------------------------------------------------------------
[tool.pylint.basic]
class-const-naming-style = "any"
function-naming-style = "PascalCase"
good-names = [
"i",
"j",
"k",
"ex",
"Run",
"_",
"dm", # added
"f", # added
]
method-naming-style = "any"
module-naming-style = "PascalCase"
[tool.pylint.design]
max-args = 10
max-parents = 15
[tool.pylint.main]
ignore-paths = [
# Note that the pylint vscode extension has trouble with wrapping these patterns in quotes
# (which is required to parse the file correctly). Because of this, each pattern must be
# converted to a glob pattern and specified in the pylint vscode settings as well.
"^.+?Tests/.*$",
]
[tool.pylint."messages control"]
disable = [
"raw-checker-failed",
"bad-inline-option",
"locally-disabled",
"file-ignored",
"suppressed-message",
"useless-suppression",
"deprecated-pragma",
"use-symbolic-message-instead",
"assignment-from-no-return", # added
"broad-except", # added
"broad-exception-raised", # added
"cell-var-from-loop", # added
"consider-using-f-string", # added
"import-outside-toplevel", # added
"line-too-long", # added
"missing-function-docstring", # added
"subprocess-run-check", # added
"super-with-arguments", # added
"too-few-public-methods", # added
"unnecessary-lambda-assignment", # added
"unspecified-encoding", # added
]
# ----------------------------------------------------------------------
# |
# | pyright
# |
# ----------------------------------------------------------------------
[tool.pyright]
exclude = [
"**/*Tests/*",
"**/Generated/*",
]
reportMissingImports = true
reportMissingTypeStubs = false
# ----------------------------------------------------------------------
# |
# | pytest
# |
# ----------------------------------------------------------------------
[tool.pytest.ini_options]
python_files = [
"**/*Test.py",
]
# ----------------------------------------------------------------------
# |
# | setuptools
# |
# ----------------------------------------------------------------------
[tool.setuptools.dynamic]
version = { attr = "dbrownell_Common.__version__" }
[tool.setuptools.packages.find]
where = ["src"]