You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
build-package = { cmd = "poetry build", help = "Build the python package: source and wheels archives." }
149
+
build = { sequence = [
150
+
"assemble",
151
+
"build-package",
152
+
], help = "Run all tasks to build the package." }
134
153
135
154
# Format check tasks
136
-
_format-check-ruff = {cmd = "ruff format --check .", help = "Check formatting with Ruff."}
137
-
_format-check-prettier = {cmd = "npx prettier . --check", help = "Check formatting with prettier."}
138
-
format-check = {sequence = ["_format-check-ruff", "_format-check-prettier"], help = "Check formatting for all file types.", ignore_fail = "return_non_zero"}
155
+
_format-check-ruff = { cmd = "ruff format --check .", help = "Check formatting with Ruff." }
156
+
_format-check-prettier = { cmd = "npx prettier . --check", help = "Check formatting with prettier." }
157
+
format-check = { sequence = [
158
+
"_format-check-ruff",
159
+
"_format-check-prettier",
160
+
], help = "Check formatting for all file types.", ignore_fail = "return_non_zero" }
139
161
140
162
# Format fix tasks
141
-
_format-fix-ruff = {cmd = "ruff format .", help = "Format with Ruff."}
142
-
_format-fix-prettier = {cmd = "npx prettier . --write", help = "Format with prettier."}
143
-
format-fix = {sequence = ["_format-fix-ruff", "_format-fix-prettier"], help = "Format all file types.", ignore_fail = "return_non_zero"}
163
+
_format-fix-ruff = { cmd = "ruff format .", help = "Format with Ruff." }
164
+
_format-fix-prettier = { cmd = "npx prettier . --write", help = "Format with prettier." }
165
+
format-fix = { sequence = [
166
+
"_format-fix-ruff",
167
+
"_format-fix-prettier",
168
+
], help = "Format all file types.", ignore_fail = "return_non_zero" }
144
169
145
170
# Linting/Typing check tasks
146
-
_lint-ruff = {cmd = "poetry run ruff check .", help = "Lint with Ruff."}
147
-
type-check = {cmd = "poetry run mypy airbyte_cdk", help = "Type check modified files with mypy."}
148
-
lint = {sequence = ["_lint-ruff", "type-check"], help = "Lint all code. Includes type checking.", ignore_fail = "return_non_zero"}
171
+
_lint-ruff = { cmd = "poetry run ruff check .", help = "Lint with Ruff." }
172
+
type-check = { cmd = "poetry run mypy airbyte_cdk", help = "Type check modified files with mypy." }
173
+
lint = { sequence = [
174
+
"_lint-ruff",
175
+
"type-check",
176
+
], help = "Lint all code. Includes type checking.", ignore_fail = "return_non_zero" }
149
177
150
178
# Lockfile check task
151
-
check-lockfile = {cmd = "poetry check", help = "Check the poetry lock file."}
179
+
check-lockfile = {cmd = "poetry check", help = "Check the poetry lock file."}
152
180
153
181
# Linting/Typing fix tasks
154
182
lint-fix = { cmd = "poetry run ruff check --fix .", help = "Auto-fix any lint issues that Ruff can automatically resolve (excluding 'unsafe' fixes)." }
155
183
lint-fix-unsafe = { cmd = "poetry run ruff check --fix --unsafe-fixes .", help = "Lint-fix modified files, including 'unsafe' fixes. It is recommended to first commit any pending changes and then always manually review any unsafe changes applied." }
156
184
157
185
# Combined Check and Fix tasks
158
186
159
-
check-all = {sequence = ["lint", "format-check", "type-check", "check-lockfile"], help = "Lint, format, and type-check modified files.", ignore_fail = "return_non_zero"}
160
-
fix-all = {sequence = ["format-fix", "lint-fix"], help = "Lint-fix and format-fix modified files, ignoring unsafe fixes.", ignore_fail = "return_non_zero"}
161
-
fix-and-check = {sequence = ["fix-all", "check-all"], help = "Lint-fix and format-fix, then re-check to see if any issues remain.", ignore_fail = "return_non_zero"}
187
+
check-all = { sequence = [
188
+
"lint",
189
+
"format-check",
190
+
"type-check",
191
+
"check-lockfile",
192
+
], help = "Lint, format, and type-check modified files.", ignore_fail = "return_non_zero" }
193
+
fix-all = { sequence = [
194
+
"format-fix",
195
+
"lint-fix",
196
+
], help = "Lint-fix and format-fix modified files, ignoring unsafe fixes.", ignore_fail = "return_non_zero" }
197
+
fix-and-check = { sequence = [
198
+
"fix-all",
199
+
"check-all",
200
+
], help = "Lint-fix and format-fix, then re-check to see if any issues remain.", ignore_fail = "return_non_zero" }
162
201
163
202
# PyTest tasks
164
203
165
-
pytest = {cmd = "poetry run coverage run -m pytest --durations=10", help = "Run all pytest tests."}
166
-
pytest-fast = {cmd = "poetry run coverage run -m pytest --durations=5 --exitfirst -m 'not flaky and not slow and not requires_creds'", help = "Run pytest tests, failing fast and excluding slow tests."}
167
-
unit-test-with-cov = {cmd = "pytest -s unit_tests --cov=airbyte_cdk --cov-report=term --cov-config ./pyproject.toml", help = "Run unit tests and create a coverage report."}
204
+
pytest = {cmd = "poetry run coverage run -m pytest --durations=10", help = "Run all pytest tests."}
205
+
pytest-fast = {cmd = "poetry run coverage run -m pytest --durations=5 --exitfirst -m 'not flaky and not slow and not requires_creds'", help = "Run pytest tests, failing fast and excluding slow tests."}
206
+
unit-test-with-cov = {cmd = "pytest -s unit_tests --cov=airbyte_cdk --cov-report=term --cov-config ./pyproject.toml", help = "Run unit tests and create a coverage report."}
168
207
169
208
# Combined check tasks (other)
170
209
171
210
# TODO: find a version of the modified mypy check that works both locally and in CI.
172
-
check-local = {sequence = ["lint", "type-check", "check-lockfile", "unit-test-with-cov"], help = "Lint all code, type-check modified files, and run unit tests."}
173
-
check-ci = {sequence = ["check-lockfile", "build", "lint", "unit-test-with-cov"], help = "Build the package, lint and run unit tests. Does not include type-checking."}
211
+
check-local = { sequence = [
212
+
"lint",
213
+
"type-check",
214
+
"check-lockfile",
215
+
"unit-test-with-cov",
216
+
], help = "Lint all code, type-check modified files, and run unit tests." }
217
+
check-ci = { sequence = [
218
+
"check-lockfile",
219
+
"build",
220
+
"lint",
221
+
"unit-test-with-cov",
222
+
], help = "Build the package, lint and run unit tests. Does not include type-checking." }
174
223
175
224
# Build and check
176
-
pre-push = {sequence = ["build", "check-local"], help = "Run all build and check tasks."}
225
+
pre-push = { sequence = [
226
+
"build",
227
+
"check-local",
228
+
], help = "Run all build and check tasks." }
177
229
178
230
# API Docs with PDoc
179
-
docs-generate = {env = {PDOC_ALLOW_EXEC = "1"}, cmd = "python -m docs.generate run", help="Generate API documentation with PDoc."}
180
-
docs-preview = {shell = "poe docs-generate && open docs/generated/index.html", help="Generate API documentation with PDoc and then open the docs in the default web browser."}
231
+
docs-generate = {env = {PDOC_ALLOW_EXEC = "1"}, cmd = "python -m docs.generate run", help = "Generate API documentation with PDoc."}
232
+
docs-preview = {shell = "poe docs-generate && open docs/generated/index.html", help = "Generate API documentation with PDoc and then open the docs in the default web browser."}
181
233
182
234
[tool.check-wheel-contents]
183
235
# Quality control for Python wheel generation. Docs here:
0 commit comments