forked from PrefectHQ/prefect
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from PrefectHQ/main
Update fork
- Loading branch information
Showing
2,734 changed files
with
515,409 additions
and
73,355 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[codespell] | ||
skip = .git,*.pdf,*.svg,versioneer.py,package-lock.json,_vendor,*.css,.codespellrc | ||
# from https://github.com/PrefectHQ/prefect/pull/10813#issuecomment-1732676130 | ||
ignore-regex = .*lazy=\"selectin\"|.*e import Bloc$|America/Nome | ||
|
||
ignore-words-list = selectin,aci,wqs,aks,ines,dependant,fsspec,automations,nmme | ||
|
||
check-hidden = true |
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Contributing | ||
|
||
Thanks for considering contributing to Prefect! | ||
|
||
To navigate our codebase with confidence, see our [contribution guidelines](https://docs.prefect.io/latest/contributing/overview/). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,7 @@ | ||
query-filters: | ||
- exclude: | ||
# this creates many false positives with our code | ||
id: py/unsafe-cyclic-import | ||
- exclude: | ||
id: py/cyclic-import | ||
- exclude: | ||
id: py/unreachable-statement | ||
- exclude: | ||
# catching base exceptions is required | ||
id: py/catch-base-exception | ||
- exclude: | ||
# too many false positives with prefect.runtime | ||
id: py/undefined-export | ||
- exclude: | ||
# sometimes necessary for __init__ files | ||
id: py/import-and-import-from | ||
- exclude: | ||
# we dont need CodeQL quality linting | ||
id: py/mixed-returns | ||
|
||
paths-ignore: | ||
- tests/**/test_*.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
migration: | ||
- src/**/migrations/**/*.py | ||
- changed-files: | ||
- any-glob-to-any-file: src/**/migrations/**/*.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
--- | ||
name: Cloud API Compatibility | ||
on: | ||
pull_request: | ||
paths: | ||
- .github/workflows/api-compatibility-tests.yaml | ||
- "**/*.py" | ||
- requirements*.txt | ||
- setup.cfg | ||
- compat-tests | ||
push: | ||
branches: | ||
- main | ||
|
||
# Limit concurrency by workflow/branch combination. | ||
# | ||
# For pull request builds, pushing additional changes to the | ||
# branch will cancel prior in-progress and pending builds. | ||
# | ||
# For builds triggered on a branch push, additional changes | ||
# will wait for prior builds to complete before starting. | ||
# | ||
# https://docs.github.com/en/actions/using-jobs/using-concurrency | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: ${{ github.event_name == 'pull_request' }} | ||
|
||
jobs: | ||
compatibility-tests: | ||
|
||
timeout-minutes: 10 | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
# Versioneer only generates correct versions with a full fetch | ||
fetch-depth: 0 | ||
persist-credentials: false | ||
submodules: true | ||
|
||
- name: Set up Python 3.12 | ||
uses: actions/setup-python@v5 | ||
id: setup_python | ||
with: | ||
python-version: 3.12 | ||
|
||
- name: UV Cache | ||
# Manually cache the uv cache directory | ||
# until setup-python supports it: | ||
# https://github.com/actions/setup-python/issues/822 | ||
uses: actions/cache@v4 | ||
id: cache-uv | ||
with: | ||
path: ~/.cache/uv | ||
key: uvcache-${{ runner.os }}-${{ steps.setup_python.outputs.python-version }}-${{ hashFiles('requirements-client.txt', 'requirements.txt', 'requirements-dev.txt') }} | ||
|
||
- name: Install packages | ||
run: | | ||
python -m pip install -U uv | ||
uv pip install --upgrade --system -e .[dev] 'pydantic>=2.4,<3' | ||
- name: Create Cloud OpenAPI JSON | ||
working-directory: compat-tests | ||
run: curl https://api.prefect.cloud/api/openapi.json > cloud_schema.json | ||
|
||
- name: Create OSS OpenAPI JSON | ||
working-directory: compat-tests | ||
run: python ../scripts/generate_oss_openapi_schema.py | ||
|
||
- name: Run API compatibility tests | ||
working-directory: compat-tests | ||
run: pytest -vv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.