-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpyproject.toml
107 lines (96 loc) · 2.46 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "pgdumplib"
version = "4.0.0"
description = "Python3 library for working with pg_dump files"
readme = "README.rst"
license = { text = "BSD 3-Clause License" }
urls = { Homepage = "https://github.com/gmr/pgdumplib" }
authors = [
{ name = "Gavin M. Roy", email = "[email protected]" }
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: SQL",
"Topic :: Database",
"Topic :: Database :: Database Engines/Servers",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules"
]
dependencies = [
"pendulum",
"toposort"
]
[project.optional-dependencies]
dev = [
"build",
"coverage",
"faker",
"maya",
"pre-commit",
"psycopg",
"ruff",
"yapf[third_party]"
]
[tool.coverage.run]
branch = true
source = ["pgdumplib"]
command_line = "-m unittest discover tests --buffer --verbose"
[tool.coverage.report]
exclude_also = [
"typing.TYPE_CHECKING",
]
fail_under = 90
show_missing = true
[tool.coverage.html]
directory = "build/coverage"
[tool.coverage.xml]
output = "build/reports/coverage.xml"
[tool.hatch.build]
artifacts = [
"pgdumplib"
]
[tool.hatch.build.targets.wheel]
include = [
"pgdumplib"
]
[tool.hatch.env.default]
python = "python3.9"
features = ["testing"]
[tool.ruff]
line-length = 79
target-version = "py310"
[tool.ruff.lint]
select = [
"ASYNC", # flake8-async
"B", # flake8-bugbear
"BLE", # flake8-blind-except
"C4", # flake8-comprehensions
"DTZ", # flake8-datetimez
"E", "W", # pycodestyle
"F", # pyflakes
"G", # flake8-logging-format
"I", # isort
"S", # flake8-bandit
"T20", # flake8-print
"UP", # pyupgrade
]
ignore = [
"RSE", # contradicts Python Style Guide
"S311", # We're not doing any cryptography
]
flake8-quotes = { inline-quotes = "single" }
[tool.yapf]
allow_split_before_dict_value = false
indent_dictionary_value = true