Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ajout de tests #3438

Open
wants to merge 3 commits into
base: Beta
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
27 changes: 27 additions & 0 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Pylint

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["2.7", "3.6"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
- name: Analysing python code with pylint
run: |
pylint $(find . -name "*.py" | xargs)
# pylint plugin.video.vstream/default.py
# Commande à mettre pour tester tous les fichiers:
# pylint $(find . -name "*.py" | xargs)

50 changes: 50 additions & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
[MASTER]

# Add files or directories to the blacklist.
ignore=LICENSE,
MANIFEST.in,
PUBLISH.md,
README.md,
requirements.txt,
script.test,


[MESSAGES CONTROL]

# Types of check we want to disable
# format
# disable=stuff-that-we-actually-want-ignored,
# stuff-that-we-actually-want-ignored2,
#
# stuff-thats-only-ignored-for-now-and-will-be-addressed-in-a-pr,
# stuff-thats-only-ignored-for-now-and-will-be-addressed-in-a-pr2
disable=import-error,
no-name-in-module,
consider-using-dict-items,
missing-docstring,
broad-except,
too-few-public-methods,
attribute-defined-outside-init,
useless-object-inheritance,
no-else-return,
len-as-condition,
unused-import,
unused-variable,
useless-else-on-loop,
bad-continuation,
too-many-arguments,
logging-not-lazy,
unidiomatic-typecheck,
too-many-nested-blocks,
inconsistent-return-statements,
arguments-differ,
consider-using-in,
deprecated-method,
redefined-outer-name,
consider-using-f-string


[FORMAT]

# Maximum number of characters on a single line.
max-line-length=120
Loading