Skip to content

Commit

Permalink
Stream lined ruff and pre-commit handling
Browse files Browse the repository at this point in the history
  • Loading branch information
max-pfeiffer committed Mar 24, 2024
1 parent 2895a01 commit e9c5bb5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 34 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ jobs:
poetry install --no-interaction --no-root
- name: Run ruff
run: |
source .venv/bin/activate
ruff check --config pyproject.toml .
poetry run pre-commit run -a
run-build-image-tests:
needs: code-quality
Expand Down Expand Up @@ -71,8 +70,7 @@ jobs:
OS_VARIANT: ${{ matrix.os_variant }}
POETRY_VERSION: ${{ matrix.poetry_version }}
run: |
source .venv/bin/activate
pytest tests/build_image --cov --cov-report=xml:build_image_coverage_report.xml
poetry run pytest tests/build_image --cov --cov-report=xml:build_image_coverage_report.xml
- name: Upload coverage report to artifactory
uses: actions/upload-artifact@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ repos:
- id: detect-private-key
- id: check-added-large-files
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.0
rev: v0.3.4
hooks:
- id: ruff
args: ["--fix", "--config", "pyproject.toml", "."]
Expand Down
28 changes: 1 addition & 27 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "python-poetry"
version = "1.9.0"
version = "1.10.0"
description = "A Python Docker image with Poetry installed and ready to use."
authors = ["Max Pfeiffer <[email protected]>"]
license = "MIT"
Expand All @@ -21,7 +21,6 @@ pytest-dotenv = "0.5.2"
pre-commit = "3.6.2"
semver = "3.0.2"
testcontainers = "4.1.1"
ruff = "0.3.4"

[tool.ruff]
exclude = [".venv"]
Expand Down

0 comments on commit e9c5bb5

Please sign in to comment.