-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
142 lines (128 loc) · 3.12 KB
/
pyproject.toml
File metadata and controls
142 lines (128 loc) · 3.12 KB
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
[tool.poetry]
name = "databricks-alembic"
version = "0.1.0"
description = ""
authors = ["Daan Rademaker <daanrademaker@royalfloraholland.com>"]
readme = "README.md"
[tool.poetry.scripts]
sample-databricks-alembic = "databricks_alembic.__main__:main"
[tool.poetry.group.dev.dependencies]
pytest-alembic = "^0.10.7"
databricks-sdk = "^0.19.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.dependencies]
python = ">=3.10, <3.12"
databricks-sql-connector = { version = "^3.0.0", extras = ["sqlalchemy"] }
zenodotus = { version = "^4", extras = ["typer", "aws", "sqlalchemy"] }
alembic = "^1.13.1"
[tool.poetry.dev-dependencies]
coverage = { version = "^6.1.1", extras = ["toml"] }
pytest = "6.2.5"
pytest-mock = "3.3.1"
pytest-asyncio = "0.14.0"
pytest-cov = "^2.10.1"
mypy = "^0.910"
aioresponses = "^0.7.2"
randomize = "^0.13"
requests-mock = "^1.9.3"
pre-commit = "^2.20.0"
psycopg2-binary = { version = "^2.9.2" }
rfh-datascience-libraries-hellflow = { version = "^0.0.5" }
ruff = "^0.1.11"
[[tool.poetry.source]]
name = "artifactory" # Ths name will be used in the configuration to retreive the proper credentials
url = "https://digitalgreenhouse.jfrog.io/artifactory/api/pypi/pypi/simple" # URL used to download your packages from
[tool.pytest.ini_options]
addopts = "--junitxml=junit/report.xml"
testpaths = ["tests"]
markers = "requires_database: requires postgresql"
[tool.coverage.report]
omit = ["tests/*", ".venv/*"]
precision = 2
show_missing = true
[tool.coverage.run]
omit = ["tests/*", ".venv/*"]
command_line = "-m pytest -v tests/"
[tool.ruff]
# https://beta.ruff.rs/docs/rules/
# https://beta.ruff.rs/docs/settings/
ignore = [
"FBT003",
"ANN101",
"DTZ007",
"TRY003",
"A003", # shadow built-in types
"ANN002", # type annotation for **kwargs
"ANN003", # type annotation for *args
"ANN102", # Missing type annotation for `cls` in classmethod
"D101", # docstring in public classes
"D102", # docstring in public methods
"D103", # docstring in public functions
"DTZ", # timezone information in datetimes
"RUF012", # causes failures in pydantic models
"PLR0911", # for some reason can't ignore this on func definition
]
extend-select = [
"I",
"N",
"ASYNC",
"ANN",
"BLE",
"FBT",
"A",
"COM",
"C4",
"DTZ",
"ISC",
"ICN",
"T20",
"D101",
"D102",
"D103",
"D419",
"PT",
"Q",
"RSE",
"RET",
"SLF",
"SLOT",
"SIM",
"TID252",
"ARG",
"ERA001",
"PGH002",
"PGH005",
"PL",
"TRY",
"FLY",
"NPY",
"AIR",
"PERF101",
"PERF102",
"RUF",
]
line-length = 120
target-version = "py39"
exclude = ["deploy", ".venv"]
[tool.ruff.per-file-ignores]
"tests/*" = [
"ANN001",
"ARG001",
"D101",
"D102",
"D103",
"D419",
"DTZ005",
"DTZ011",
"PLR2004",
"SLF001",
"PLR0913",
"PGH005",
]
"**/alembic/*" = ["D101", "D102", "D103", "D419", "I002"]
[tool.ruff.pylint]
max-args = 7
[tool.ruff.flake8-annotations]
suppress-none-returning = true