-
-
Notifications
You must be signed in to change notification settings - Fork 431
40 lines (35 loc) · 1.1 KB
/
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
40
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
- run: |
pip install bandit black codespell safety pylint==2.15.2 packaging==22 ruff==0.0.243
pip install types-pytz types-requests types-termcolor types-tabulate types-PyYAML types-python-dateutil types-setuptools types-six
pip install financedatabase pandas yfinance ta fundamentalanalysis matplotlib
- run: black --diff --check .
- run: codespell
- run: ruff financedatabase
- run: pylint financedatabase
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