Skip to content

Commit

Permalink
Convert build to ruff and run formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
saville committed Dec 20, 2023
1 parent fe26747 commit 9337ee4
Show file tree
Hide file tree
Showing 28 changed files with 1,293 additions and 1,366 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 pycodestyle
run: pycodestyle dysql
- name: Lint with pylint
run: pylint dysql
- name: Run pre-commit checks
run: pre-commit run --all-files
- name: Test with pytest
run: pytest --junitxml=test-reports/test-results.xml
- name: Publish test results
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 9337ee4

Please sign in to comment.