-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
66 lines (52 loc) · 1.54 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
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "dbt-py-wrap" # Not `dbt-py` to avoid confusion with the DbtPy package (PyPI requirement)
version = "0.0.3"
description = "Python wrapper for dbt-core to extend dbt with custom Python."
readme = "README.md"
authors = ["Bilbottom"]
repository = "https://github.com/Bilbottom/dbt-py"
packages = [{include = "dbt_py"}]
[tool.poetry.scripts]
dbt-py = "dbt_py:main"
[tool.poetry.dependencies]
python = "^3.11"
dbt-core = "^1.5.0"
[tool.poetry.group]
dev.optional = true
test.optional = true
[tool.poetry.group.dev.dependencies]
coverage-badge = "^1.1.0"
pre-commit = "^3.6.2"
[tool.poetry.group.test.dependencies]
dbt-duckdb = ">=1.5.0, <1.9"
pytest = "^7.4.0"
pytest-cov = "^4.1.0"
[tool.pytest.ini_options]
addopts = "--cov=dbt_py --cov-fail-under=80"
testpaths = ["tests"]
[tool.ruff]
line-length = 80
indent-width = 4
target-version = "py311"
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.ruff.lint]
select = ["F", "I", "N", "PL", "R", "RUF", "S", "UP", "W"]
ignore = []
fixable = ["ALL"]
unfixable = []
# Allow unused variables when underscore-prefixed
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
# https://github.com/astral-sh/ruff/issues/4368
[tool.ruff.lint.extend-per-file-ignores]
"tests/**/*.py" = [
"S101", # Use of `assert` detected
"PLR2004", # Magic value used in comparison
"PLR0913", # Too many arguments in function definition
]