-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
85 lines (77 loc) · 1.56 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
[project]
name = "dbt-ai"
description = "AI powered DBT helper application"
version = "0.2.20"
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"dbt-snowflake~=1.4",
"openai~=0.27",
"pyyaml~=6.0",
"markdown2~=2.4",
"pyvis~=0.3.2",
"plotly~=5.14",
"numpy~=1.24",
]
[project.optional-dependencies]
dev = [
"black~=23.1",
"build~=0.10",
"pre-commit~=3.0",
"ruff~=0.0.254",
"twine~=4.0",
"pytest~=7.3",
]
[build-system]
requires = ["setuptools~=66.1", "wheel~=0.37"]
[tool.setuptools.packages.find]
where = ["."]
exclude = ["tests*"]
# use PyCharm default line length of 120
[tool.black]
line-length = 120
exclude = "conftest.py"
[tool.ruff]
line-length = 120
# rules to enable/ignore
select = [
# pyflakes
"F",
# pycodestyle
"E",
"W",
# type annotations
"ANN",
# pep8-naming
"N",
# bugbear
"B",
# isort
"I",
# flake8-unused-arguments
"ARG",
# flake8-self
"SLF",
# ruff-specific
"RUF",
]
ignore = [
# allow untyped self and cls args, and no return type from dunder methods
"ANN101",
"ANN102",
"ANN204",
# allow == True because pandas dataframes overload equality
"E712",
]
# first-party imports for sorting
src = ["."]
fix = true
show-fixes = true
[tool.ruff.per-file-ignores]
# imports in __init__.py don't need to be used in __init__.py
"__init__.py" = ["F401"]
# test functions don't need return types
"tests/*" = ["ANN201", "ANN202"]
[tool.ruff.flake8-annotations]
# allow *args: Any, **kwargs: Any
allow-star-arg-any = true