Skip to content

Commit

Permalink
改善 GitHub Actions 執行 Build 作業,會出現 pylint 無法通過的問題。
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanJui committed Sep 7, 2024
1 parent 7603041 commit 3216aad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ jobs:
pip install pylint
- name: Analysing the code with pylint
run: |
pylint $(git ls-files '*.py')
# pylint $(git ls-files '*.py')
pylint --disable=all --enable=F,E $(git ls-files '*.py')
4 changes: 4 additions & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ ignore=tests.py, urls.py, migrations
#django-settings-module=mysite.settings

[MESSAGES CONTROL]
; disable=all
; enable=F,E
# C0111 Missing docstring
# C0114(missing-module-docstring) Missing module docstring
# I0011 Warning locally suppressed using disable-msg
Expand Down Expand Up @@ -54,6 +56,8 @@ disable=raw-checker-failed,


[REPORTS]
; output-format=text
; msg-template={msg_id}: {msg} ({symbol}) at {path}:{line}
msg-template={path}:{line}: [{msg_id}({symbol}), {obj}] {msg}

[BASIC]
Expand Down

0 comments on commit 3216aad

Please sign in to comment.