-
Notifications
You must be signed in to change notification settings - Fork 7
/
pyproject.toml
121 lines (111 loc) · 3.41 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "mariadb-sequential-partition-manager"
maintainers = [
{name = "J.C. Jones", email = "[email protected]"},
]
version = "0.4.1"
description = "Manage DB partitions based on sequential IDs"
license = {file = "LICENSE.txt"}
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
"Programming Language :: Python :: 3",
]
keywords = ["database", "mariadb"]
dependencies = [
"pyyaml"
]
requires-python = ">=3.8"
readme = "README.md"
[tool.hatch.build.targets.wheel]
packages = ["partitionmanager"]
[project.optional-dependencies]
pymysql = ["PyMySQL >= 1.0.2"]
[project.urls]
Repository = "http://github.com/letsencrypt/mariadb-sequential-partition-manager"
[project.scripts]
partition-manager = "partitionmanager.cli:main"
[tool.ruff]
line-length = 88 # default is 88
target-version = "py38"
[tool.ruff.lint]
select = [
"A", # flake8-builtins
"AIR", # Airflow
"ARG", # flake8-unused-arguments
"ASYNC", # flake8-async
"B", # flake8-bugbear
"BLE", # flake8-blind-except
"C4", # flake8-comprehensions
"C90", # McCabe cyclomatic complexity
"DJ", # flake8-django
"DTZ", # flake8-datetimez
"E", # pycodestyle
"EXE", # flake8-executable
"F", # Pyflakes
"FA", # flake8-future-annotations
"FBT", # flake8-boolean-trap
"FIX", # flake8-fixme
"FLY", # flynt
"ICN", # flake8-import-conventions
"INP", # flake8-no-pep420
"INT", # flake8-gettext
"ISC", # flake8-implicit-str-concat
"LOG", # flake8-logging
"NPY", # NumPy-specific rules
"PD", # pandas-vet
"PERF", # Perflint
"PGH", # pygrep-hooks
"PIE", # flake8-pie
"PL", # Pylint
"PTH", # flake8-use-pathlib
"PYI", # flake8-pyi
"RET", # flake8-return
"RSE", # flake8-raise
"S", # flake8-bandit
"SIM", # flake8-simplify
"SLOT", # flake8-slots
"T10", # flake8-debugger
"TCH", # flake8-type-checking
"TD", # flake8-todos
"TID", # flake8-tidy-imports
"TRIO", # flake8-trio
"UP", # pyupgrade
"W", # pycodestyle
"YTT", # flake8-2020
# "ANN", # flake8-annotations
# "COM", # flake8-commas
# "CPY", # flake8-copyright
# "D", # pydocstyle
# "EM", # flake8-errmsg
# "ERA", # eradicate
# "FURB", # refurb
# "G", # flake8-logging-format
# "I", # isort
# "N", # pep8-naming
# "PT", # flake8-pytest-style
# "Q", # flake8-quotes
# "RUF", # Ruff-specific rules
# "SLF", # flake8-self
# "T20", # flake8-print
# "TRY", # tryceratops
]
ignore = [
"ISC001", # Implicit string concatenation can conflict with ruff format
"S101", # Allow assert statements
]
[tool.ruff.lint.mccabe]
max-complexity = 16 # default is 10
[tool.ruff.lint.per-file-ignores]
"partitionmanager/cli.py" = ["B008", "PERF203"] # TODO: Fix B008, upgrade to Py3.11 for PERF203
"partitionmanager/cli_test.py" = ["S608", "SIM115", "SIM117"] # TODO: Fix SIMs
"partitionmanager/sql.py" = ["B904", "S603"] # TODO: Fix S603
"partitionmanager/table_append_partition.py" = ["S608", "SIM102"] # TODO: Fix S608
"partitionmanager/types.py" = ["B904", "RET505", "SLOT000"] # TODO: Fix B904 and SLOT000
"partitionmanager/types_test.py" = ["B015"] # TODO: Fix me
[tool.ruff.lint.pylint]
max-args = 7 # default is 5
max-branches = 15 # default is 12