-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
166 lines (134 loc) · 3.58 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
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
[build-system]
requires = ["setuptools >= 68.0"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
include-package-data = false
[tool.setuptools.dynamic]
version = { attr = "orbiter.__version__" }
[tool.setuptools.packages.find]
include = ["orbiter", "orbiter.*"]
exclude = [
"*venv", "*venv.*",
"*tests.*", "*tests",
"*build", "*build.*",
"*dist", "*dist.*"
]
[tool.setuptools.package-data]
"orbiter.assets" = ["*.csv"]
[project]
dynamic = ["version"]
name = "astronomer-orbiter"
description = "Astronomer Orbiter can take your legacy workloads and land them safely down in a new home on Apache Airflow!"
readme = "README.md"
authors = [
{ name = "Fritz Davenport", email = "[email protected]" },
{ name = "Astronomer", email = "[email protected]" },
]
license = { file = "LICENSE" }
requires-python = ">= 3.10"
dependencies = [
# CLI
"click",
"rich-click",
# CLI prompt
"questionary",
# fetch translation_rulesets in binary mode
"requests",
# For validation of objects
"pydantic >= 2.6",
# for converting to snake_case
"inflection",
# for templating within @rules
"jinja2",
# for parsing XML
"xmltodict",
# for parsing YAML
"pyyaml",
# alternative
# "ruamel.yaml"
# for parsing JIL - fork
# original @ https://github.com/mscribellito/jilutil
"jilutil",
# to render timezone-aware DAGs
"pendulum",
"tzdata", # for timezone data, if system doesn't have it?
# for 'list-rulesets' command, and '--analyze'
"tabulate",
# logging
"loguru",
# for code formatting
"ruff",
# backport
"eval_type_backport; python_version < '3.10'",
# for 'document' command
"mkdocs",
"mkdocs-material",
"pygments",
"mkdocstrings-python",
"htmlark"
]
[project.optional-dependencies]
dev = [
# package
"build",
"twine>=4.0.2",
"pyinstaller",
# for generating docs
"mkdocs",
"mkdocs-click",
"mkdocs-material",
"mkdocstrings-python",
"markdown-exec", # for rendering the csv table of origins to share w/ CLI
"pygments",
"griffe-inherited-docstrings",
# test
"pytest>=7.4",
"pytest-cov>=4.1",
"pytest-sugar>=0.9.7",
# lint
"black>=23.12.0",
"ruff>=0.1.0",
"pylint>=3.0.0",
"isort>=5.13.0",
# pre-commit
"pre-commit>=3.6.0; python_version >= '3.9'",
"detect-secrets>=1.4.0",
]
[project.urls]
Homepage = "https://astronomer.io"
Source = "https://github.com/astronomer/orbiter/"
[project.scripts]
orbiter = "orbiter.__main__:orbiter"
[tool.bandit]
exclude_dirs = ["tests"]
skips = [
"B307", # eval() - using intentionally
"B101", # assert - using intentionally
"B404", # subprocess - using intentionally
"B602", # subprocess shell=True - using intentionally
"B603", # subprocess shell=True - using intentionally
"B604", # subprocess shell=True - using intentionally
]
[tool.ruff]
line-length = 120
[tool.ruff.format]
docstring-code-format = true
docstring-code-line-length = 80
[tool.pytest.ini_options]
pythonpath = ["."]
norecursedirs = [
"*output*", "*dags/", "*dags/*", "*override*", '*artifacts*', "*assets*",
"venv", "*.egg", ".eggs", "dist", "build", "docs", ".tox", ".git", "__pycache__"
]
testpaths = ["orbiter", "tests"]
doctest_optionflags = ["ELLIPSIS", "NUMBER", "NORMALIZE_WHITESPACE", "IGNORE_EXCEPTION_DETAIL"]
addopts = [
"-s",
"--continue-on-collection-errors",
"--strict-markers",
"--tb=short",
"--disable-warnings",
"--no-header",
"--doctest-modules",
"--doctest-continue-on-failure",
]