Skip to content

Commit

Permalink
[Chore] Norm the backend code using pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
zakarm committed Apr 24, 2024
1 parent 73e6f61 commit 4483dd0
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/.pylintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[MASTER]
load-plugins=pylint_django
django-settings-module=ft_transcendence.settings

[MESSAGES CONTROL]
disable=missing-docstring,
import-error,
invalid-name,
too-few-public-methods

[FORMAT]
max-line-length=120

[DESIGN]
max-parents=13

[TYPECHECK]
ignored-modules=django.contrib.admin

[REPORTS]
output-format=colorized
reports=no

[BASIC]
good-names=i,j,k,ex,pk,Run,_
2 changes: 1 addition & 1 deletion .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ jobs:
pip install pylint
- name: Analysing the code with pylint
run: |
pylint $(git ls-files '*.py') --disable=C0103,W0613
pylint $(git ls-files '*.py') --rcfile=.pylintrc

0 comments on commit 4483dd0

Please sign in to comment.