forked from Unidata/MetPy
-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (58 loc) · 2.05 KB
/
linting.yml
File metadata and controls
69 lines (58 loc) · 2.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# name: Linting
# on:
# push:
# branches: [main]
# pull_request:
# branches: [main]
# concurrency:
# group: ${{ github.workflow}}-${{ github.head_ref }}
# cancel-in-progress: true
# jobs:
# lint:
# name: Run Lint Tools
# runs-on: ubuntu-slim
# steps:
# - uses: actions/checkout@v6
# with:
# persist-credentials: false
# - name: Set up Python 3
# uses: actions/setup-python@v6
# with:
# python-version: 3.x
# - uses: astral-sh/setup-uv@v7
# with:
# cache-dependency-path: 'ci-dev/linting_requirements.txt'
# - name: Install linting tools
# run: uv pip install --system -r ci-dev/linting_requirements.txt
# - name: Set up reviewdog
# uses: reviewdog/action-setup@v1
# - name: Run ruff
# run: ruff check --output-format github
# - 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
# - name: Check static data registry
# # Don't skip if any other steps fail
# if: always()
# run: |
# python -c "import pooch; pooch.make_registry('staticdata', 'src/metpy/static-data-manifest.txt')"
# git diff --exit-code