aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2023-05-06 18:30:42 +0100
committerGravatar Chris Lovering <[email protected]>2023-05-06 20:09:40 +0100
commit11ef0c92440b713c6454d8b2d72d73dfd5567082 (patch)
tree0ce6b9d65574ac4f6d0ab2c5a2ae75ab86611c80 /.github
parentMerge pull request #175 from python-discord/log-when-waiting-for-guild-to-be-... (diff)
Migrate to ruff
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/lint-test.yaml18
1 files changed, 4 insertions, 14 deletions
diff --git a/.github/workflows/lint-test.yaml b/.github/workflows/lint-test.yaml
index 5d8c1aff..b8ca6cdc 100644
--- a/.github/workflows/lint-test.yaml
+++ b/.github/workflows/lint-test.yaml
@@ -20,22 +20,12 @@ jobs:
python_version: ${{ matrix.python_version }}
install_args: "--extras async-rediscache --only main --only lint --only test"
- # We will not run `flake8` here, as we will use a separate flake8
- # action.
- name: Run pre-commit hooks
- run: SKIP=flake8 pre-commit run --all-files
+ run: SKIP=ruff pre-commit run --all-files
- # Run flake8 and have it format the linting errors in the format of
- # the GitHub Workflow command to register error annotations. This
- # means that our flake8 output is automatically added as an error
- # annotation to both the run result and in the "Files" tab of a
- # pull request.
- #
- # Format used:
- # ::error file={filename},line={line},col={col}::{message}
- - name: Run flake8
- run: "flake8 \
- --format='::error file=%(path)s,line=%(row)d,col=%(col)d::[flake8] %(code)s: %(text)s'"
+ # Run `ruff` using github formatting to enable automatic inline annotations.
+ - name: Run ruff
+ run: "ruff check --format=github ."
- name: Run tests and generate coverage report
run: python -m pytest -n auto --cov pydis_core -q