File tree Expand file tree Collapse file tree 2 files changed +41
-38
lines changed Expand file tree Collapse file tree 2 files changed +41
-38
lines changed Original file line number Diff line number Diff line change 11name : Linting and MyPy (Pelican)
2+
23on :
34 push :
45 paths :
89 workflow_dispatch :
910
1011jobs :
11- test :
12+ lint :
1213 runs-on : ubuntu-latest
1314 steps :
14- - uses : actions/checkout@v4
15- with :
16- persist-credentials : false
17- - name : Install dependencies
18- run : |
19- pip list
20- cd pelican
21- pip install -r requirements.txt --no-deps # explicit only
22- pip install mypy
23- pip install types-PyYAML
24- pip install types-requests
25- pip install types-beautifulsoup4
26- pip install types-markdown
27- pip install pylint
28- pip list
29- - name : Type testing with mypy
30- run : |
31- cd pelican
32- mypy --cache-dir /tmp/ --install-types
33- mypy --cache-dir /tmp/ --ignore-missing-imports .
34- - name : Testing with pylint
35- if : always()
36- run : |
37- cd pelican
38- pylint *.py */*.py */*/*.py
15+ - uses : actions/checkout@v4
16+ with :
17+ persist-credentials : false
18+
19+ - name : Set up Python environment
20+ uses : actions/setup-python@v4
21+ with :
22+ python-version : ' 3.11'
23+
24+ - name : Install dependencies
25+ run : |
26+ pip list
27+ cd pelican
28+ pip install -r requirements.txt --no-deps # Explicit dependency-only installation
29+ pip install mypy types-PyYAML types-requests types-beautifulsoup4 types-markdown pylint
30+ pip list
31+
32+ - name : Type testing with mypy
33+ run : |
34+ cd pelican
35+ mypy --cache-dir /tmp/ --install-types --non-interactive
36+ mypy --cache-dir /tmp/ --ignore-missing-imports .
37+
38+ - name : Code linting with pylint
39+ run : |
40+ cd pelican
41+ pylint **/*.py
Original file line number Diff line number Diff line change 1- pelican #
2- markdown #
3- pelican-sitemap # pelican plugin offering
4- soupsieve # needed by BeautifulSoup4
5- BeautifulSoup4 # needed by several plugins
6- ezt # needed by several plugins
7- PyYAML # needed by asfdata.py
8- certifi # needed by requests
9- idna # needed by requests
10- charset-normalizer # needed by requests
11- urllib3 # needed by requests
12- requests # needed by asfdata.py
1+ pelican == 4.5.0
2+ markdown == 3.1.1
3+ pelican-sitemap == 1.1.0
4+ soupsieve == 2.0
5+ beautifulsoup4 == 4.9.3
6+ ezt == 1.1
7+ PyYAML == 5.3.1
8+ certifi == 2020.12.5
9+ idna == 2.10
10+ charset-normalizer == 2.0.4
11+ urllib3 == 2.1.0
12+ requests == 2.31.0
You can’t perform that action at this time.
0 commit comments