Skip to content

Commit 202b0d0

Browse files
authored
Merge branch 'main' into lazebnyi/add-use-check-availability-flag-to-dynamic-check
2 parents 7b148ce + 3af96dc commit 202b0d0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+2148
-2000357
lines changed

.github/workflows/autofix-command.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
- name: Set up Poetry
7676
uses: Gr1N/setup-poetry@v9
7777
with:
78-
poetry-version: "1.8.4"
78+
poetry-version: "2.0.1"
7979
- name: Set up Python
8080
uses: actions/setup-python@v5
8181
with:

.github/workflows/pdoc_preview.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Set up Poetry
1717
uses: Gr1N/setup-poetry@v9
1818
with:
19-
poetry-version: "1.8.4"
19+
poetry-version: "2.0.1"
2020
- name: Set up Python
2121
uses: actions/setup-python@v5
2222
with:

.github/workflows/pdoc_publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
- name: Set up Poetry
3434
uses: Gr1N/setup-poetry@v9
3535
with:
36-
poetry-version: "1.8.4"
36+
poetry-version: "2.0.1"
3737
- name: Set up Python
3838
uses: actions/setup-python@v5
3939
with:

.github/workflows/poetry-lock-command.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,17 @@ jobs:
3636
with:
3737
pr: ${{ github.event.inputs.pr }}
3838

39+
- name: Check for blank or missing poetry.lock
40+
run: |
41+
if [ ! -s "poetry.lock" ]; then
42+
echo "poetry.lock missing or blank. Fetching from main branch..."
43+
git fetch origin main
44+
git checkout origin/main -- poetry.lock
45+
echo "Lock file restored from main."
46+
else
47+
echo "poetry.lock found. Proceeding."
48+
fi
49+
3950
- name: Get PR info
4051
id: pr-info
4152
run: |
@@ -72,7 +83,7 @@ jobs:
7283
- name: Set up Poetry
7384
uses: Gr1N/setup-poetry@v9
7485
with:
75-
poetry-version: "1.8.4"
86+
poetry-version: "2.0.1"
7687
- name: Set up Python
7788
uses: actions/setup-python@v5
7889
with:

.github/workflows/pytest_fast.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Set up Poetry
1818
uses: Gr1N/setup-poetry@v9
1919
with:
20-
poetry-version: "1.8.4"
20+
poetry-version: "2.0.1"
2121

2222
- name: Check Poetry lock file is current
2323
run: poetry check
@@ -44,7 +44,7 @@ jobs:
4444
- name: Set up Poetry
4545
uses: Gr1N/setup-poetry@v9
4646
with:
47-
poetry-version: "1.8.4"
47+
poetry-version: "2.0.1"
4848
- name: Set up Python
4949
uses: actions/setup-python@v5
5050
with:

.github/workflows/pytest_matrix.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
python-version: [
3131
"3.10",
3232
"3.11",
33-
#'3.12', # Currently blocked by Pendulum
33+
"3.12",
3434
]
3535
os: [
3636
Ubuntu,
@@ -61,7 +61,7 @@ jobs:
6161
uses: Gr1N/setup-poetry@v9
6262
if: steps.changes.outputs.src == 'true'
6363
with:
64-
poetry-version: "1.8.4"
64+
poetry-version: "2.0.1"
6565
- name: Set up Python
6666
uses: actions/setup-python@v5
6767
if: steps.changes.outputs.src == 'true'

.github/workflows/python_lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Set up Poetry
1818
uses: Gr1N/setup-poetry@v9
1919
with:
20-
poetry-version: "1.8.4"
20+
poetry-version: "2.0.1"
2121
- name: Set up Python
2222
uses: actions/setup-python@v5
2323
with:

.github/workflows/slash_command_dispatch.yml

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ jobs:
1212
steps:
1313
- name: Slash Command Dispatch
1414
id: dispatch
15-
uses: peter-evans/slash-command-dispatch@v4
15+
# TODO: Revert to `peter-evans/slash-command-dispatch@v4` after PR merges:
16+
# - https://github.com/peter-evans/slash-command-dispatch/pull/372/files
17+
uses: aaronsteers/slash-command-dispatch@aj/fix/add-dispatched-bool-output
1618
with:
1719
repository: ${{ github.repository }}
1820
token: ${{ secrets.GH_PAT_MAINTENANCE_OCTAVIA }}
@@ -36,3 +38,33 @@ jobs:
3638
comment-id: ${{ github.event.comment.id }}
3739
body: |
3840
> Error: ${{ steps.dispatch.outputs.error-message }}
41+
42+
- name: Generate help text
43+
id: help
44+
if: >
45+
startsWith(github.event.comment.body, '/') &&
46+
!steps.dispatch.outputs.dispatched
47+
run: |
48+
HELP_TEXT="The following slash commands are available:
49+
50+
- \`/autofix\` - Corrects any linting or formatting issues
51+
- \`/test\` - Runs the test suite
52+
- \`/poetry-lock\` - Re-locks dependencies and updates the poetry.lock file
53+
- \`/help\` - Shows this help message"
54+
55+
if [[ "${{ github.event.comment.body }}" == "/help" ]]; then
56+
echo "body=$HELP_TEXT" >> $GITHUB_OUTPUT
57+
else
58+
echo "body=It looks like you are trying to enter a slash command. Either the slash command is unrecognized or you don't have access to call it.
59+
60+
$HELP_TEXT" >> $GITHUB_OUTPUT
61+
fi
62+
63+
- name: Post help message
64+
if: >
65+
startsWith(github.event.comment.body, '/') &&
66+
!steps.dispatch.outputs.dispatched
67+
uses: peter-evans/create-or-update-comment@v4
68+
with:
69+
comment-id: ${{ github.event.comment.id }}
70+
body: ${{ steps.help.outputs.body }}

.github/workflows/test-command.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ jobs:
8585
- name: Set up Poetry
8686
uses: Gr1N/setup-poetry@v9
8787
with:
88-
poetry-version: "1.8.4"
88+
poetry-version: "2.0.1"
8989
- name: Set up Python
9090
uses: actions/setup-python@v5
9191
with:

.pre-commit-config.yaml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# See https://pre-commit.com for more information
2+
# See https://pre-commit.com/hooks.html for more hooks
3+
exclude: |
4+
(?x)(
5+
# Python/system files
6+
^.*/__init__\.py$|
7+
^.*?/\.venv/.*$|
8+
^.*?/node_modules/.*$|
9+
10+
# Generated/test files
11+
^.*?/\.pytest_cache/.*$|
12+
^.*?/__pycache__/.*$|
13+
^.*?/\.mypy_cache/.*$|
14+
^.*?/\.ruff_cache/.*$
15+
16+
# Package management
17+
^.*?/poetry\.lock$|
18+
^.*?/package-lock\.json$|
19+
^.*?/pnpm-lock\.yaml$|
20+
21+
# Build and test artifacts
22+
^.*?/build/.*$|
23+
^.*?/dist/.*$|
24+
^.*?/\.coverage$|
25+
^.*?/coverage\.xml$|
26+
)
27+
28+
repos:
29+
- repo: https://github.com/pre-commit/pre-commit-hooks
30+
rev: v4.5.0
31+
hooks:
32+
- id: trailing-whitespace
33+
- id: end-of-file-fixer
34+
- id: check-yaml
35+
- id: check-added-large-files
36+
- id: check-toml
37+
38+
- repo: https://github.com/astral-sh/ruff-pre-commit
39+
rev: v0.8.3
40+
hooks:
41+
# Run the linter with repo-defined settings
42+
- id: ruff
43+
args: [--fix]
44+
45+
# Run the formatter with repo-defined settings
46+
- id: ruff-format
47+
48+
- repo: https://github.com/pre-commit/mirrors-prettier
49+
rev: v3.0.3
50+
hooks:
51+
- id: prettier
52+
types_or: [json, yaml]
53+
additional_dependencies:
54+
55+
56+
- repo: local
57+
hooks:
58+
- id: addlicense
59+
name: Add license headers
60+
entry: addlicense -c "Airbyte, Inc." -l apache -v -f LICENSE_SHORT
61+
language: golang
62+
additional_dependencies: [github.com/google/[email protected]]
63+
files: \.py$

0 commit comments

Comments
 (0)