Skip to content

Commit

Permalink
Merge pull request #43 from bluesliverx/main
Browse files Browse the repository at this point in the history
Convert build to ruff and run formatting
  • Loading branch information
bluesliverx authored Dec 20, 2023
2 parents fe26747 + 9337ee4 commit 696a60f
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 696a60f

Please sign in to comment.