-
-
Notifications
You must be signed in to change notification settings - Fork 365
39 lines (35 loc) · 943 Bytes
/
linting.yml
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
name: General Linting
on:
pull_request:
types: [opened, synchronize, edited]
push:
branches:
- 'main'
jobs:
code-linting:
name: General Code Linting
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
- name: Install Poetry
uses: snok/install-poetry@v1
- run: |
poetry install
- run: poetry run black --diff --check financetoolkit
- run: poetry run codespell
- run: poetry run ruff financetoolkit
- run: poetry run pylint financetoolkit
markdown-link-check:
name: Markdown Linting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
name: Check out the code
- name: Lint Code Base
uses: docker://avtodev/markdown-lint:v1