Skip to content

Commit

Permalink
Convert build to ruff and format
Browse files Browse the repository at this point in the history
  • Loading branch information
saville committed Dec 20, 2023
1 parent 65b4b60 commit ebaa2ed
Show file tree
Hide file tree
Showing 57 changed files with 2,669 additions and 2,603 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,8 @@ jobs:
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r test_requirements.txt
- name: Lint with pylint
run: pylint buildrunner
- name: Check code style with pycodestyle
run: pycodestyle buildrunner
- name: Pre-commit checks
run: pre-commit run --all-files
- name: Write SSH keys
env:
# These were generated with:
Expand Down
10 changes: 10 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.1.7
hooks:
# Run the linter.
- id: ruff
args: [ --fix ]
# Run the formatter.
- id: ruff-format
7 changes: 0 additions & 7 deletions .pylint-license-header

This file was deleted.

Loading

0 comments on commit ebaa2ed

Please sign in to comment.