This repository was archived by the owner on Sep 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
136 lines (120 loc) · 2.8 KB
/
pyproject.toml
File metadata and controls
136 lines (120 loc) · 2.8 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]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "dbkit"
dynamic = ["version"]
description = "DB-API made easier"
readme = "README.md"
requires-python = ">= 3.8"
license = "MIT"
authors = [
{ name = "Keith Gaughan", email = "k@stereochro.me" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Other Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Database",
]
[project.urls]
Homepage = "https://github.com/kgaughan/dbkit/"
[project.optional-dependencies]
docs = [
"mkdocs-material==9.1.15",
"mkdocs-autorefs==0.4.1",
"mkdocstrings[python]==0.20.0",
"mkdocs-redirects==1.2.0",
"pymdown-extensions==10.0.1",
"Pygments==2.15.1",
]
[tool.hatch.version]
path = "dbkit/__init__.py"
[tool.hatch.build]
exclude = [
".coveragerc",
".gitignore",
".readthedocs.yaml",
"Makefile",
"TODO",
"tox.ini",
"docs/",
"examples/",
"tests/",
]
[tool.hatch.envs.test]
dependencies = [
"pytest>=7.2.0",
"pytest-cov>=2.12.1",
]
[tool.hatch.envs.test.scripts]
unit = [
"pytest",
]
[tool.hatch.envs.style]
dependencies = [
"black~=22.12.0",
"coverage~=5.5",
"flake8~=5.0.4",
"flake8-bugbear~=22.12.6",
"isort~=5.11.4",
"pep8-naming~=0.13.3",
"pylint~=2.15.9",
"mypy~=0.991",
]
[tool.hatch.envs.style.scripts]
check = [
"flake8 --max-line-length=120 --ignore=E203,W503 .",
"black --check --diff .",
"isort --check-only --diff .",
"pylint dbkit",
"mypy .",
]
fmt = [
"isort .",
"black .",
]
[tool.hatch.envs.docs]
dependencies = []
features = ["docs"]
[tool.hatch.envs.docs.scripts]
build = [
"mkdocs build",
]
serve = [
"mkdocs serve",
]
[tool.isort]
profile = "black"
force_sort_within_sections = true
include_trailing_comma = true
order_by_type = false
[tool.pylint.BASIC]
# Good variable names which should always be accepted, separated by a comma
good-names = "n,i,j,k,_,fh,fd,fn,ip,cb,ts,ch,dt,tz,db,md,al,ns,s,tp,tb"
max-line-length = "120"
exclude-protected = "_flatten"
# There something broken with the import checks with this module. I think it's
# because it contains a wildcard imporot from a C module.
ignored-modules = "sqlite3"
extension-pkg-allow-list = "fcntl"
[tool.pylint."MESSAGE CONTROL"]
disable = "R,C0114,C0115,C0116,raise-missing-from,W0511,W0703"
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra -q --cov=dbkit --junitxml=tests/results.xml --cov-report html"
testpaths = [
"tests",
]
junit_suite_name = "dbkit"
junit_logging = "out-err"
junit_family = "xunit2"
[tool.mypy]
ignore_missing_imports = true