Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
89 lines (76 loc) · 2.28 KB
/
Copy pathpyproject.toml
File metadata and controls
89 lines (76 loc) · 2.28 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
[build-system]
requires = ["hatchling>=1.27"]
build-backend = "hatchling.build"
[project]
name = "sqlclean"
version = "0.4.3"
description = "Fast, opinionated SQL linting and deterministic formatting, with custom Rules in Python"
readme = "README.md"
requires-python = ">=3.12"
license = "Apache-2.0"
license-files = ["LICENSE"]
keywords = ["sql", "lint", "linter", "formatter", "duckdb", "snowflake"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Rust",
"Programming Language :: SQL",
"Topic :: Software Development :: Quality Assurance",
]
dependencies = [
"sqlclean-cli==0.4.3", # x-release-please-version
]
[project.optional-dependencies]
ast = [
"polyglot-sql-chio==0.13.10",
]
[project.urls]
Homepage = "https://github.com/sqlstack-io/sqlclean"
Issues = "https://github.com/sqlstack-io/sqlclean/issues"
Repository = "https://github.com/sqlstack-io/sqlclean"
[tool.hatch.build.targets.wheel]
packages = ["src/sqlclean"]
[dependency-groups]
dev = [
"commitizen>=4.9.1",
"fensu>=0.28.0",
"polyglot-sql-chio==0.13.10", # optional AST API
"pre-commit>=4.3.0",
"pytest>=8.4.2",
"pytest-xdist>=3.8.0",
"ruff>=0.12.0",
"ty>=0.0.1a19",
]
[tool.uv]
# Keep in step with the uv pinned in .github/workflows: other uv versions rewrite uv.lock
# differently, which the release metadata check rejects.
required-version = ">=0.12.9,<0.13"
cache-keys = [
{ file = "pyproject.toml" },
]
[tool.uv.sources]
sqlclean-cli = { path = "packages/sqlclean-cli" }
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = ["--import-mode=importlib"]
pythonpath = ["."]
[tool.ruff]
target-version = "py312"
line-length = 100
# Generated from the website docs by `make skills`; ruff would reformat their Python examples.
extend-exclude = ["crates/sqlclean-cli/skill"]
[tool.ruff.lint]
select = ["B", "E", "F", "I", "PLR0913", "PLR0915", "UP"]
[tool.ruff.lint.pylint]
max-args = 10
max-statements = 70
[tool.ruff.lint.per-file-ignores]
"tests/**/test_*.py" = ["E501"]
[tool.commitizen]
name = "cz_conventional_commits"
version_provider = "pep621"
version_scheme = "semver2"
update_changelog_on_bump = false