Skip to content

Commit

Permalink
Format with ruff, update deps and workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Aug 16, 2024
1 parent a19d1c4 commit 78b1a6f
Show file tree
Hide file tree
Showing 6 changed files with 629 additions and 697 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
- name: Build and push
id: docker_build
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
push: true
tags: ghcr.io/${{ steps.set-tags.outputs.TAGS }}
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Linting

on:
push:
paths-ignore:
- 'docs/**'
- '**/*.md'
pull_request:
paths-ignore:
- 'docs/**'
- '**/*.md'

jobs:
build:
runs-on: ubuntu-latest

strategy:
fail-fast: false

steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'

- name: Lint with ruff
run: |
pip install ruff
ruff check cerebro
ruff format --check cerebro
11 changes: 0 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,6 @@ jobs:
pip install --upgrade wheel pip setuptools
pip install .
- name: Lint with ruff
run: |
pip install ruff
ruff .
- name: Lint with black
run: |
pip install black
black --check cerebro/
black --check tests/
- name: Test with pytest
run: |
pip install pytest pytest-mock pytest-asyncio pytest-cov
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

* Added source `LVMIonPumpSource`.

### ⚙️ Engineering

* Use `ruff` for formatting and update dependencies and workflows.


## 1.2.1 - January 19, 2024

Expand Down
Loading

0 comments on commit 78b1a6f

Please sign in to comment.