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:
parent
4421c4f392
commit
820a0d75bb
25
.github/workflows/linting.yml
vendored
Normal file
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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user