diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index 48fad6bbc0..ae80f12355 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -10,8 +10,8 @@ concurrency: cancel-in-progress: true jobs: - flake8: - name: Flake8 + lint: + name: Run Lint Tools runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -27,19 +27,10 @@ jobs: 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 + uses: reviewdog/action-setup@v1 - name: Run ruff - env: - REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - set -o pipefail - ruff check . | reviewdog -f=pep8 -name=ruff -reporter=github-check -filter-mode=nofilter + run: ruff check --output-format github - name: Run flake8 env: diff --git a/ci/linting_requirements.txt b/ci/linting_requirements.txt index 9478118985..de2bf1fc5a 100644 --- a/ci/linting_requirements.txt +++ b/ci/linting_requirements.txt @@ -1,4 +1,4 @@ -ruff==0.5.5 +ruff==0.6.0 flake8==7.1.1 pycodestyle==2.12.1 diff --git a/pyproject.toml b/pyproject.toml index f021090842..5f5d6c2a66 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -120,7 +120,7 @@ filterwarnings = [ [tool.ruff] line-length = 95 -exclude = ["docs", "build", "src/metpy/io/_metar_parser/metar_parser.py"] +exclude = ["docs", "build", "src/metpy/io/_metar_parser/metar_parser.py", "talks"] preview = true [tool.ruff.lint]