1
0
mirror of https://github.com/HorlogeSkynet/CDNUpdates synced 2025-04-14 16:00:14 +02:00

Adds Pylint linting to a proper CI pipeline running on GitHub's Actions

This commit is contained in:
Samuel FORESTIER 2020-11-05 21:27:27 +01:00
parent 4421c4f392
commit 820a0d75bb
2 changed files with 26 additions and 1 deletions
.github/workflows
CDNContent.py

25
.github/workflows/linting.yml vendored Normal file

@ -0,0 +1,25 @@
---
name: Linting
on: [push, pull_request]
jobs:
build:
name: Run Pylint on CDNUpdates sources
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- run: |
python -m pip install --upgrade pip
pip install pylint
- run: |
pylint \
--module-rgx='CDN.*' \
--disable=relative-beyond-top-level \
--ignored-modules=sublime,sublime_plugin \
*.py

@ -18,7 +18,7 @@ from .CDNConstants import (
from .CDNUtils import log_message
class CDNContent:
class CDNContent: # pylint: disable=too-few-public-methods
"""
This class run verifies whether found CDN are up to date.
Checks (try to) rely on the CDN provider's API, or on GitHub directly.