-
Notifications
You must be signed in to change notification settings - Fork 10
pythonのフォーマットチェックCIとリンタCIをいれる #192
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
Conversation
あ~,diff出ない部分はこのスレッドにはreviewdog出てくれないのね. |
あと, black もreview dogあるな https://github.com/reviewdog/action-black こっちにするか. |
This comment has been minimized.
This comment has been minimized.
ん? blackはそもそも,「would reformat」しか言わないから, reviewdogを指定しても, |
...nimum_user_for_s2e/src/src_user/Test/test/src_core/System/EventManager/test_event_handler.py
Outdated
Show resolved
Hide resolved
cafd59e
to
9f45051
Compare
...nimum_user_for_s2e/src/src_user/Test/test/src_core/System/EventManager/test_event_handler.py
Outdated
Show resolved
Hide resolved
...nimum_user_for_s2e/src/src_user/Test/test/src_core/System/EventManager/test_event_handler.py
Outdated
Show resolved
Hide resolved
...nimum_user_for_s2e/src/src_user/Test/test/src_core/System/EventManager/test_event_handler.py
Outdated
Show resolved
Hide resolved
ba8ab9a
to
7aaa59d
Compare
...nimum_user_for_s2e/src/src_user/Test/test/src_core/System/EventManager/test_event_handler.py
Outdated
Show resolved
Hide resolved
...nimum_user_for_s2e/src/src_user/Test/test/src_core/System/EventManager/test_event_handler.py
Outdated
Show resolved
Hide resolved
...nimum_user_for_s2e/src/src_user/Test/test/src_core/System/EventManager/test_event_handler.py
Outdated
Show resolved
Hide resolved
...nimum_user_for_s2e/src/src_user/Test/test/src_core/System/EventManager/test_event_handler.py
Outdated
Show resolved
Hide resolved
...nimum_user_for_s2e/src/src_user/Test/test/src_core/System/EventManager/test_event_handler.py
Show resolved
Hide resolved
...nimum_user_for_s2e/src/src_user/Test/test/src_core/System/EventManager/test_event_handler.py
Outdated
Show resolved
Hide resolved
7aaa59d
to
09d7a96
Compare
flake8 で reviewdogあるかな... ↓ なかった |
@yngyu と雑に話して, 88 だと,テレメ名やコマンド名が長いのでしんどい. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit
flake8
Script/CI/check_coding_rule.py|599 col 20| invalid escape sequence '\w'
Script/CI/check_coding_rule.py|603 col 40| invalid escape sequence '\w'
Script/CI/check_coding_rule.py|603 col 76| invalid escape sequence '\w'
Script/CI/check_coding_rule.py|625 col 28| invalid escape sequence '\d'
Script/CI/check_coding_rule.py|683 col 32| invalid escape sequence '\w'
Script/CI/check_coding_rule.py|689 col 32| invalid escape sequence '\d'
Script/CI/check_coding_rule.py|817 col 39| whitespace before ':'
Script/CI/check_coding_rule.py|828 col 5| local variable 'target_len' is assigned to but never used
Script/CI/check_coding_rule.py|906 col 9| local variable 'after' is assigned to but never used
Script/CI/check_coding_rule.py|906 col 29| whitespace before ':'
...nimum_user_for_s2e/src/src_user/Test/test/src_core/System/EventManager/test_event_handler.py
Outdated
Show resolved
Hide resolved
...nimum_user_for_s2e/src/src_user/Test/test/src_core/System/EventManager/test_event_handler.py
Outdated
Show resolved
Hide resolved
...nimum_user_for_s2e/src/src_user/Test/test/src_core/System/EventManager/test_event_handler.py
Outdated
Show resolved
Hide resolved
...inimum_user_for_s2e/src/src_user/Test/test/src_core/System/EventManager/test_event_logger.py
Outdated
Show resolved
Hide resolved
...inimum_user_for_s2e/src/src_user/Test/test/src_core/System/EventManager/test_event_logger.py
Outdated
Show resolved
Hide resolved
black,通るようになったな.(なお flake8) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit
flake8
Script/CI/check_coding_rule.py|588 col 13| line break before binary operator
Script/CI/check_coding_rule.py|589 col 13| line break before binary operator
Script/CI/check_coding_rule.py|590 col 13| line break before binary operator
Script/CI/check_coding_rule.py|591 col 13| line break before binary operator
Script/CI/check_coding_rule.py|592 col 13| line break before binary operator
Script/CI/check_coding_rule.py|593 col 13| line break before binary operator
Script/CI/check_coding_rule.py|598 col 13| line break before binary operator
Script/CI/check_coding_rule.py|599 col 13| line break before binary operator
Script/CI/check_coding_rule.py|600 col 13| line break before binary operator
Script/CI/check_coding_rule.py|601 col 13| line break before binary operator
Script/CI/check_coding_rule.py|602 col 13| line break before binary operator
Script/CI/check_coding_rule.py|603 col 13| line break before binary operator
Script/CI/check_coding_rule.py|604 col 13| line break before binary operator
Script/CI/check_coding_rule.py|647 col 21| line break before binary operator
Script/CI/check_coding_rule.py|648 col 21| line break before binary operator
Script/CI/check_coding_rule.py|649 col 21| line break before binary operator
Script/CI/check_coding_rule.py|706 col 21| line break before binary operator
Script/CI/check_coding_rule.py|707 col 21| line break before binary operator
Script/CI/check_coding_rule.py|708 col 21| line break before binary operator
...nimum_user_for_s2e/src/src_user/Test/test/src_core/System/EventManager/test_event_handler.py
Show resolved
Hide resolved
...nimum_user_for_s2e/src/src_user/Test/test/src_core/System/EventManager/test_event_handler.py
Show resolved
Hide resolved
...nimum_user_for_s2e/src/src_user/Test/test/src_core/System/EventManager/test_event_handler.py
Show resolved
Hide resolved
...nimum_user_for_s2e/src/src_user/Test/test/src_core/System/EventManager/test_event_handler.py
Show resolved
Hide resolved
...nimum_user_for_s2e/src/src_user/Test/test/src_core/System/EventManager/test_event_handler.py
Show resolved
Hide resolved
c6569c0
to
83460b7
Compare
a940c3d
to
bc3744f
Compare
fd1099b
to
fd1c11e
Compare
他でtestがマージされたのでrebase test_time_manager.py がやり直し |
概要
pythonのフォーマットチェックCIとリンタCIをいれる
Issue
詳細
ignore = E203,W503,W504
としてるのは,blackと競合するからignore = E402
としているのは python の linter である flake8 の E402 を ignore から解除する #195 で対応c2a-core/.github/workflows/python_check_format.yml
Lines 22 to 23 in 9e2faa9
c2a-core/pyproject.toml
Lines 6 to 8 in 9e2faa9
検証結果
CIと既存のテストがすべて通ればOK
影響範囲
今後,このCIの通過が必須になる