-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
121 lines (104 loc) · 2.78 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 = ["setuptools>=48", "setuptools_scm[toml]>=6.3.1"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
[project]
name = "sqltrie"
description = "SQL-based prefix tree inspired by pygtrie and python-diskcache"
readme = "README.rst"
license = {text = "Apache-2.0"}
authors = [{ name = "Ruslan Kuprieiev", email = "[email protected]" }]
classifiers = [
"Programming Language :: Python :: 3",
"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",
"Development Status :: 1 - Planning",
]
requires-python = ">=3.8"
dynamic = ["version"]
dependencies = [
"attrs>=22.2.0",
# NOTE: orjson doesn't support pypy, see
# https://github.com/ijl/orjson/issues/90
"orjson; implementation_name=='cpython'",
"pygtrie",
]
[project.urls]
Issues = "https://github.com/efiop/sqltrie/issues"
Source = "https://github.com/efiop/sqltrie"
[project.optional-dependencies]
tests = [
"pytest==7.2.0",
"pytest-sugar==0.9.5",
"pytest-cov==3.0.0",
"pytest-mock==3.8.2",
"mypy==0.971",
"pytest-benchmark",
"pyinstaller",
]
dev = [
"sqltrie[tests]",
]
[project.entry-points.pyinstaller40]
hook-dirs = "sqltrie.__pyinstaller:get_hook_dirs"
tests = "sqltrie.__pyinstaller:get_PyInstaller_tests"
[tool.setuptools.packages.find]
where = ["src"]
namespaces = false
[tool.pytest.ini_options]
addopts = "-ra"
[tool.coverage.run]
branch = true
source = ["sqltrie", "tests"]
[tool.coverage.paths]
source = ["src", "*/site-packages"]
[tool.coverage.report]
show_missing = true
exclude_lines = [
"pragma: no cover",
"if __name__ == .__main__.:",
"if typing.TYPE_CHECKING:",
"if TYPE_CHECKING:",
"raise NotImplementedError",
"raise AssertionError",
"@overload",
]
[tool.mypy]
# Error output
show_column_numbers = true
show_error_codes = true
show_error_context = true
show_traceback = true
pretty = true
ignore_missing_imports = true
check_untyped_defs = false
# Warnings
warn_no_return = true
warn_redundant_casts = true
warn_unreachable = true
files = ["src", "tests"]
[tool.codespell]
ignore-words-list = "datas"
skip = "CODE_OF_CONDUCT.rst"
[tool.sqlfluff.core]
dialect = "sqlite"
exclude_rules = "L031"
[tool.sqlfluff.rules]
tab_space_size = 4
max_line_length = 80
indent_unit = "space"
allow_scalar = true
single_table_references = "consistent"
unquoted_identifiers_policy = "all"
[tool.sqlfluff.rules.L010]
capitalisation_policy = "upper"
[tool.sqlfluff.rules.L029]
# these are not reserved in sqlite,
# see https://www.sqlite.org/lang_keywords.html
ignore_words = ["name", "value", "depth"]
[tool.sqlfluff.rules.L063]
# Data Types
extended_capitalisation_policy = "upper"