-
Notifications
You must be signed in to change notification settings - Fork 62
Expand file tree
/
Copy pathpyproject.toml
More file actions
136 lines (125 loc) · 3.84 KB
/
pyproject.toml
File metadata and controls
136 lines (125 loc) · 3.84 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
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
[build-system]
build-backend = "setuptools.build_meta"
requires = ["setuptools>=77"]
[project]
name = "DBUtils"
version = "3.1.2"
description = "Database connections for multi-threaded environments."
license = "MIT"
authors = [{name = "Christoph Zwerschke", email = "cito@online.de"}]
requires-python = ">=3.7"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"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.14",
"Topic :: Database",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Software Development :: Libraries :: Python Modules",
]
[project.optional-dependencies]
pg = ["PyGreSQL>=5"]
docs = ["docutils"]
tests = ["pytest>=7", "ruff"]
[project.readme]
file = "README.md"
content-type = "text/markdown"
[project.urls]
Homepage = "https://webwareforpython.github.io/DBUtils/"
Download = "https://pypi.org/project/DBUtils/"
Documentation = "https://webwareforpython.github.io/DBUtils/main.html"
Changelog = "https://webwareforpython.github.io/DBUtils/changelog.html"
"Issue Tracker" = "https://github.com/WebwareForPython/DBUtils/issues"
"Source Code" = "https://github.com/WebwareForPython/DBUtils"
[tool.setuptools]
packages = ["dbutils"]
platforms = ["any"]
include-package-data = false
[tool.ruff]
line-length = 79
target-version = "py37"
[tool.ruff.lint]
select = [
"A", # flake8-builtins
# "ANN", # flake8-annotations
"ARG", # flake8-unused-arguments
"B", # flake8-bugbear
# "BLE", # flake8-blind-except
"C4", # flake8-comprehensions
"C90", # McCabe cyclomatic complexity
"COM", # flake8-commas
"D", # pydocstyle
"DTZ", # flake8-datetimez
"E", # pycodestyle
# "EM", # flake8-errmsg
"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
"INT", # flake8-gettext
"ISC", # flake8-implicit-str-concat
"N", # pep8-naming
"PGH", # pygrep-hooks
"PIE", # flake8-pie
"PL", # Pylint
"PT", # flake8-pytest-style
"PTH", # flake8-use-pathlib
"PYI", # flake8-pyi
# "Q", # flake8-quotes
"RET", # flake8-return
"RSE", # flake8-raise
"RUF", # Ruff-specific rules
"S", # flake8-bandit
# "SLF", # flake8-self
"SIM", # flake8-simplify
"T10", # flake8-debugger
"T20", # flake8-print
"TCH", # flake8-type-checking
"TID", # flake8-tidy-imports
# "TRY", # tryceratops
"UP", # pyupgrade
"W", # pycodestyle
"YTT", # flake8-2020
]
# Note: use `ruff rule ...` to see explanations of rules
ignore = [
"D203", # no blank line before class docstring
"D213", # multi-line docstrings should not start at second line
"RUF022", # __all__ can have custom order
]
[tool.ruff.lint.mccabe]
max-complexity = 30
[tool.ruff.lint.flake8-quotes]
inline-quotes = "double"
[tool.ruff.lint.pylint]
max-args = 12
max-branches = 35
max-statements = 95
[tool.ruff.lint.per-file-ignores]
"docs/*" = [
"INP001", # allow stand-alone scripts
"T201", # allow print statements
]
"tests/*" = [
"D", # no docstrings necessary here
"PLC0415", # allow imports in tests functions
"PLR2004", # allow magic values
"S101", # allow assert statements
]
[tool.codespell]
skip = '.git,.tox,.venv,*.de.html,*.de.rst,build,dist,local'
quiet-level = 2