Skip to content

Commit

Permalink
Use ruff formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Jun 25, 2024
1 parent c031123 commit dc0e2a3
Show file tree
Hide file tree
Showing 4 changed files with 358 additions and 346 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Lint

on:
push:
branches: [main]
paths-ignore:
- 'docs/**'
pull_request:
branches: [main]
paths-ignore:
- 'docs/**'

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

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

- name: Install dependencies
run: |
pip install --upgrade wheel pip setuptools
pip install .
- name: Lint with ruff
run: |
pip install ruff
ruff check python/ tests/
ruff format --check python/ tests/
10 changes: 0 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,6 @@ jobs:
pip install --upgrade wheel pip setuptools
pip install .
- name: Lint with ruff
run: |
pip install ruff
ruff check python/ tests/
- name: Lint with black
run: |
pip install black
black --check python/lvmecp tests/
- name: Test with pytest
run: |
pip install pytest pytest-mock pytest-asyncio pytest-cov coverage
Expand Down
Loading

0 comments on commit dc0e2a3

Please sign in to comment.