forked from tconbeer/sqlfmt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
101 lines (84 loc) · 2.29 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
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "shandy-sqlfmt"
version = "0.23.2"
description = "sqlfmt formats your dbt SQL files so you don't have to."
readme = "README.md"
authors = ["Ted Conbeer <[email protected]>"]
license = "Apache-2.0"
homepage = "https://sqlfmt.com"
repository = "https://github.com/tconbeer/sqlfmt"
documentation = "https://docs.sqlfmt.com"
classifiers = [
"Development Status :: 3 - Alpha",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Programming Language :: SQL",
"Topic :: Software Development :: Quality Assurance",
"Typing :: Typed",
]
packages = [
{ include = "sqlfmt", from = "src" },
]
[tool.poetry.extras]
jinjafmt = ["black"]
sqlfmt_primer = ["gitpython"]
[tool.poetry.dependencies]
python = "^3.8"
click = "^8.0"
tqdm = "^4.0"
platformdirs = ">=2.4,<5.0"
importlib_metadata = { version = "*", python = "<3.8" }
tomli = { version = "^2.0", python = "<3.11" }
jinja2 = "^3.0"
black = { version = "*", optional = true }
gitpython = { version = "^3.1.24", optional = true }
[tool.poetry.group.dev.dependencies]
pre-commit = ">=2.20,<4.0"
snakeviz = "^2.1.1"
[tool.poetry.group.static.dependencies]
ruff = "^0.5"
mypy = "^1.11"
[tool.poetry.group.test.dependencies]
black = "^24"
pytest = "^8"
pytest-cov = "^5"
[tool.poetry.scripts]
sqlfmt = "sqlfmt.cli:sqlfmt"
sqlfmt_primer = { callable = "sqlfmt_primer.primer:sqlfmt_primer", extras = ["sqlfmt_primer"] }
[tool.black]
line-length = 88
target-version = ["py38"]
[tool.ruff]
line-length = 88
target-version = "py38"
[tool.ruff.lint]
select = ["A", "B", "E", "F", "I"]
[tool.mypy]
python_version = "3.8"
files = [
"src/**/*.py",
"tests/**/*.py",
]
mypy_path = "stubs,src"
show_column_numbers = true
# show error messages from unrelated files
follow_imports = "normal"
# be strict
disallow_untyped_calls = true
disallow_untyped_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
disallow_incomplete_defs = true
disallow_subclassing_any = true
strict_optional = true
warn_return_any = true
warn_no_return = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_unused_configs = true
no_implicit_reexport = true
strict_equality = true