Skip to content

Commit

Permalink
Move from black/flake8 to ruff (#59)
Browse files Browse the repository at this point in the history
Co-authored-by: Micha Moskovic <[email protected]>
  • Loading branch information
michamos and michamos authored Nov 29, 2024
1 parent 9c317df commit e54803c
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,18 @@ jobs:
steps:
- name: checkout
uses: actions/checkout@v2
- name: setup Python
uses: actions/setup-python@v1
- uses: astral-sh/ruff-action@v1
with:
python-version: '3.11'
architecture: x64
- name: black
uses: psf/black@stable
args: format
src: "./scripts"
- uses: astral-sh/ruff-action@v1
with:
options: '--verbose'
src: './scripts'
args: check --fix
src: "./scripts"
- uses: stefanzweifel/git-auto-commit-action@v4
name: commit
with:
commit_message: Auto-format python code
- name: run flake8
uses: julianwachholz/flake8-action@v2
with:
checkName: 'flake8' # NOTE: this needs to be the same as the job name
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: check all scripts follow the naming convention
run: |
dirs_with_missing_script=$(find scripts -maxdepth 1 -mindepth 1 -type d \! -exec test -f '{}'/script.py \; -print)
Expand Down

0 comments on commit e54803c

Please sign in to comment.