-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
92 lines (73 loc) · 1.92 KB
/
pyproject.toml
File metadata and controls
92 lines (73 loc) · 1.92 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
[project]
name = "query-farm-sql-manipulation"
version = "0.1.7"
description = "A Python library for intelligent SQL predicate manipulation using SQLGlot. This library provides tools to safely remove specific predicates from `SQL WHERE` clauses and filter SQL statements based on column availability."
authors = [
{ name = "Rusty Conover", email = "rusty@query.farm" }
]
dependencies = [
"sqlglot>=26.33.0",
]
readme = "README.md"
requires-python = ">= 3.11"
keywords = ["sql", "predicates", "predicate parsing", "sql parsing"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Topic :: Database",
"Topic :: Database :: Database Engines/Servers",
"Programming Language :: Python :: 3.11"
]
[project.urls]
Repository = "https://github.com/query-farm/python-sql-manipulation.git"
Issues = "https://github.com/query-farm/python-sql-manipulation/issues"
[build-system]
requires = ["hatchling==1.26.3", "hatch-vcs"]
build-backend = "hatchling.build"
[tool.rye]
managed = true
dev-dependencies = [
"pytest>=8.4.1",
"mypy>=1.16.1",
"lxml>=6.0.0",
"pytest-mypy>=0.10.3",
"pytest-env>=1.1.3",
"pytest-cov>=5.0.0",
"ruff>=0.6.2",
]
[tool.rye.include]
files = ["py.typed"]
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.wheel]
packages = ["src/query_farm_sql_manipulation"]
[tool.pytest]
[tool.pytest.ini_options]
[tool.mypy]
ignore_missing_imports = true
follow_imports = "silent"
warn_redundant_casts = true
warn_unused_ignores = true
disallow_any_generics = true
check_untyped_defs = true
no_implicit_reexport = true
# for strict mypy: (this is the tricky one :-))
disallow_untyped_defs = true
[tool.ruff]
line-length = 100
[tool.ruff.lint]
select = [
# pycodestyle
"E",
# Pyflakes
"F",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# flake8-simplify
"SIM",
# isort
"I",
]
ignore = ['E501']