-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
87 lines (76 loc) · 2.24 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
[tool.pdm]
[tool.pdm.build]
excludes = ["src/tests"]
# If true, the setup-script will run in a generated `setup.py` file.
run-setuptools = false
# Override the Is-Purelib value in the wheel.
is-purelib = true
# Change the editable-backend: path(default) or editables
editable-backend = "editables"
[tool.pdm.dev-dependencies]
dev = [
"mypy>=1.0.1",
"types-click>=7.1.8",
"black>=23.1.0",
"flake8>=6.0.0",
"isort>=5.12.0",
"autoflake>=2.0.1",
"pytest>=7.2.1",
"pre-commit>=3.1.1",
"types-pyyaml>=6.0.12.8",
"python-semantic-release>=7.33.2",
]
[tool.pdm.version]
source = "scm"
write_to = "src/dbtvault_generator/__version__.py"
[project]
name = "dbtvault-generator"
dynamic = ["version"]
description = "A little util to help you generate DBTVault SQL files from metadata, while we wait for DBTLabs to add meta to the execution context"
authors = [{ name = "Alex Stenlake", email = "alex.stenlake@gmail.com" }]
dependencies = [
"pydantic>=1.10.5",
"typer[all]>=0.7.0",
"schema>=0.7.5",
"dbt-artifacts-parser>=0.2.4",
]
requires-python = ">=3.9"
readme = "README.md"
license = { text = "Apache-2.0" }
[project.scripts]
dbtv-gen = "dbtvault_generator.main:main"
[build-system]
requires = ["pdm-pep517>=1.0"]
build-backend = "pdm.pep517.api"
[tool.pdm.scripts]
dbtv-gen = { call = "dbtvault_generator.main:main" }
git-hooks = { shell = "pre-commit install --install-hooks && pre-commit install --hook-type commit-msg" }
test = { shell = "pytest ." }
autoflake-fix = { cmd = "autoflake ." }
black-fix = { cmd = "black ." }
isort-fix = { cmd = "isort ." }
flake8-check = { cmd = "flake8 ." }
black-check = { cmd = "black --check ." }
isort-check = { cmd = "isort --check-only ." }
mypy-check = "mypy --namespace-packages --check-untyped-defs ."
format = { composite = ["autoflake-fix", "black-fix", "isort-fix"] }
lint = { composite = [
"mypy-check",
"flake8-check",
"black-check",
"isort-check",
] }
[tool.isort]
multi_line_output = 3
force_to_top = ["os", "sys"]
profile = "black"
skip_gitignore = true
[tool.autoflake]
recursive = true
in-place = true
remove-all-unused-imports = true
ignore-init-module-imports = true
remove-unused-variables = true
ignore-pass-statements = false
[tool.commitizen]
version = "0.2.3"