-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
101 lines (90 loc) · 2.09 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
# BLACK
[tool.black]
target-version = ["py311"]
line-length = 120
# ISORT
[tool.isort]
py_version = 311
line_length = 120
profile = "black"
atomic = true
lines_after_imports = 2
combine_as_imports = true
force_alphabetical_sort_within_sections = true
# MYPY
[tool.mypy]
python_version = 3.11
warn_return_any = true
warn_unused_configs = true
ignore_missing_imports = true
follow_imports = "silent"
namespace_packages = false
# PYLINT
[tool.pylint.main]
py-version = 3.11
load-plugins = [
"pylint.extensions.bad_builtin",
"pylint.extensions.check_elif",
"pylint.extensions.comparison_placement",
"pylint.extensions.dict_init_mutate",
"pylint.extensions.docstyle",
"pylint.extensions.empty_comment",
"pylint.extensions.for_any_all",
"pylint.extensions.mccabe",
"pylint.extensions.no_self_use",
"pylint.extensions.private_import",
"pylint.extensions.redefined_loop_name",
"pylint.extensions.redefined_variable_type",
"pylint.extensions.typing",
]
[tool.pylint.logging]
logging-format-style = "new"
[tool.pylint.format]
max-line-length = 120
expected-line-ending-format = "LF"
[tool.pylint.messages_control]
disable = """
docstring-first-line-empty,
fixme,
import-outside-toplevel,
missing-class-docstring,
missing-module-docstring,
no-name-in-module,
too-few-public-methods,
"""
# PYTEST
[tool.pytest.ini_options]
pythonpath = ["."]
spark_options = ["spark.sql.session.timeZone: UTC"]
# POETRY
[tool.poetry]
name = "databricks_pipelines"
version = "0.0.1"
description = "Some description"
readme = "README.md"
authors = ["alex7c4"]
packages = [
{include = "src/pipelines_lib"},
]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.dependencies]
python = ">=3.10, <3.12"
python-dotenv = "*"
pydantic = "1.*"
[tool.poetry.group.dev.dependencies]
pyspark = "3.5.*"
pandas = "2.*"
pyarrow = "13.*"
prefect = "2.12.*" # will use docker
databricks-sdk = "*" # present at databricks runtime
adlfs = "*"
# linters
black = "*"
isort = "*"
mypy = "*"
pylint = "*"
# testing
pytest = "*"
pytest-spark = "*"