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

Update pre commits and actions #8705

Merged
merged 2 commits into from
Sep 16, 2024
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
32 changes: 0 additions & 32 deletions .github/flake8-matcher.json

This file was deleted.

13 changes: 9 additions & 4 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ permissions:
# contents permission to update benchmark contents in gh-pages branch
contents: write

env:
ERT_SHOW_BACKTRACE: 1
ECL_SKIP_SIGNAL: 1
UV_SYSTEM_PYTHON: 1

jobs:
benchmark:
name: Run pytest-benchmark benchmark example
Expand All @@ -27,13 +32,13 @@ jobs:
with:
# pin this to maintain comparable benchmark results
python-version: "3.10"
cache: "pip"
cache-dependency-path: |
pyproject.toml

- name: Install uv
run: pip install uv

- name: Install ert with dev-deps
run: |
pip install ".[dev]"
uv pip install ".[dev]"

- name: Run benchmark
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,4 +156,4 @@ jobs:
find artifacts -name "*.whl" -exec mv '{}' dist/ \;

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@v1.8.11
uses: pypa/gh-action-pypi-publish@v1.10.1
3 changes: 0 additions & 3 deletions .github/workflows/style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ jobs:
run: |
uv pip install ".[style]"

- name: Add matching rule
run: echo ::add-matcher::.github/flake8-matcher.json

- name: Run style check
if: ${{ always() }}
run: |
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ repos:
exclude: test-data/eclipse/parse/ERROR.PRT # exact format is needed for testing

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.1
rev: v0.6.5
hooks:
- id: ruff
args: [ --fix ]
Expand Down