Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #39

Merged
merged 2 commits into from
Jan 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.11"
uses: actions/setup-python@v5
with: { python-version: "3.11" }
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,17 @@ jobs:
uses: actions/checkout@v4

- name: 📦 Set up Poetry
run: pipx install poetry==1.8.0
run: pipx install poetry==2.0.0

- name: 🐍 Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.11
cache: poetry
with: { python-version: 3.11, cache: poetry }

- name: 🔨 Install dependencies
run: poetry install --with test

- name: ✅ Run unit tests
run: poetry run pytest
run: poetry run pytest -vvv
env:
# TODO: This is configured in the tests, but not being picked up in CI
DBT_PY_PACKAGE_ROOT: "tests.integration.jaffle-shop.dbt_py_test"
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ repos:
name: Validate Python

- repo: https://github.com/python-poetry/poetry
rev: 1.8.0
rev: 2.0.0
hooks:
- id: poetry-check
name: Check that the Poetry configuration is valid
Expand All @@ -47,7 +47,7 @@ repos:
name: Make code pretty

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.9
rev: v0.8.6
hooks:
- id: ruff
name: Lint Python code
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,6 @@ Raise an issue, or fork the repo and open a pull request.
This project uses [Poetry](https://python-poetry.org/) for dependency management and [pre-commit](https://pre-commit.com/) for linting. After cloning the repo, install the dependencies and enable pre-commit:

```
poetry install --sync --with dev,test
poetry install --with dev,test
pre-commit install --install-hooks
```
Loading
Loading