-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (37 loc) · 1.18 KB
/
linting.yaml
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
name: Linting
on:
pull_request:
types: [main, opened, reopened, synchronize, edited]
push:
branches: [ "main" ]
jobs:
code-linting:
name: Code
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Setup Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
architecture: x64
- run: |
pip install bandit black codespell pylint ruff mypy==1.2.0
pip install types-requests
- run: bandit -x ./tests -r pyvet || true
- run: black --diff --check .
- run: codespell --skip=./tests,.git,*.css,*.csv,*.html,*.ini,*.ipynb,*.js,*.json,*.lock,*.scss,*.txt,*.yaml
- run: mypy --ignore-missing-imports --no-implicit-optional --no-warn-no-return pyvet
- run: pylint --rcfile=.pylintrc --ignore-paths=tests/ -rn pyvet
- run: ruff pyvet
markdown-link-check:
name: Markdown
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
name: Check out the code
- name: Lint Code Base
uses: docker://avtodev/markdown-lint:v1
with:
args: "./*.md ./pyvet/**/*.md ./docs/**/*.md"