CI: (deps): Bump ruff from 0.0.288 to 0.0.289 in /ci #3893
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Linting | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
concurrency: | |
group: ${{ github.workflow}}-${{ github.head_ref }} | |
cancel-in-progress: true | |
jobs: | |
flake8: | |
name: Flake8 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.x | |
cache: 'pip' | |
cache-dependency-path: 'ci/linting_requirements.txt' | |
- name: Install linting tools | |
run: python -m pip install -r ci/linting_requirements.txt | |
- name: Set up reviewdog | |
run: | | |
mkdir -p $HOME/bin | |
curl -sfL \ | |
https://github.com/reviewdog/reviewdog/raw/master/install.sh | \ | |
sh -s -- -b $HOME/bin | |
echo "$HOME/bin" >> $GITHUB_PATH | |
- name: Run ruff | |
env: | |
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
set -o pipefail | |
ruff check . | reviewdog -f=pep8 -name=flake8 -reporter=github-check -filter-mode=nofilter | |
- name: Run flake8 | |
env: | |
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
set -o pipefail | |
flake8 | reviewdog -f=pep8 -name=flake8 -reporter=github-check -filter-mode=nofilter | |
- name: Run doc8 | |
# Don't skip doc8 if flake8 fails | |
if: always() | |
env: | |
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
set -o pipefail | |
doc8 docs | reviewdog -efm='%f:%l: %m' -name=doc8 -reporter=github-check -filter-mode=nofilter | |
- name: Run codespell | |
# Don't skip codespell if any other steps fail | |
if: always() | |
env: | |
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
set -o pipefail | |
codespell | reviewdog -efm='%f:%l: %m' -name=codespell -reporter=github-check -filter-mode=nofilter |