Skip to content

Conversation

meltingrabbit
Copy link
Collaborator

@meltingrabbit meltingrabbit commented Jan 17, 2022

概要

pythonのフォーマットチェックCIとリンタCIをいれる

Issue

詳細

検証結果

CIと既存のテストがすべて通ればOK

影響範囲

今後,このCIの通過が必須になる

@meltingrabbit meltingrabbit added enhancement New feature or request priority::medium priority medium tools labels Jan 17, 2022
@meltingrabbit meltingrabbit requested review from sksat and yngyu January 17, 2022 06:55
@meltingrabbit meltingrabbit self-assigned this Jan 17, 2022
@meltingrabbit
Copy link
Collaborator Author

あ~,diff出ない部分はこのスレッドにはreviewdog出てくれないのね. Unchanged files with check annotations にはでてる.

@meltingrabbit
Copy link
Collaborator Author

あと, black もreview dogあるな

https://github.com/reviewdog/action-black

こっちにするか.

@meltingrabbit

This comment has been minimized.

@meltingrabbit
Copy link
Collaborator Author

meltingrabbit commented Jan 17, 2022

ん? blackはそもそも,「would reformat」しか言わないから, reviewdogを指定しても,Unchanged files with check annotations にはでない?

@meltingrabbit meltingrabbit force-pushed the feature/add_python_formatter_linter branch from cafd59e to 9f45051 Compare January 17, 2022 11:13
@meltingrabbit meltingrabbit force-pushed the feature/add_python_formatter_linter branch 3 times, most recently from ba8ab9a to 7aaa59d Compare January 17, 2022 11:23
@meltingrabbit meltingrabbit force-pushed the feature/add_python_formatter_linter branch from 7aaa59d to 09d7a96 Compare January 17, 2022 13:44
@meltingrabbit
Copy link
Collaborator Author

meltingrabbit commented Jan 17, 2022

flake8 で pyproject.toml を使うには, pflake8 を使わないといけない,だと!?

reviewdogあるかな...

なかった

@meltingrabbit
Copy link
Collaborator Author

@yngyu と雑に話して, line-length = 100 あたりで良いのでは?となった.

88 だと,テレメ名やコマンド名が長いのでしんどい.

Copy link

@github-actions github-actions bot left a 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 ':'

@meltingrabbit
Copy link
Collaborator Author

black,通るようになったな.(なお flake8)

Copy link

@github-actions github-actions bot left a 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

@meltingrabbit meltingrabbit force-pushed the feature/add_python_formatter_linter branch from c6569c0 to 83460b7 Compare January 17, 2022 15:13
@meltingrabbit meltingrabbit force-pushed the feature/add_python_formatter_linter branch 2 times, most recently from a940c3d to bc3744f Compare January 17, 2022 15:21
@meltingrabbit meltingrabbit changed the title WIP: pythonのフォーマットチェックCIとリンタCIをいれる pythonのフォーマットチェックCIとリンタCIをいれる Jan 17, 2022
@meltingrabbit meltingrabbit force-pushed the feature/add_python_formatter_linter branch from fd1099b to fd1c11e Compare January 19, 2022 10:12
@meltingrabbit
Copy link
Collaborator Author

他でtestがマージされたのでrebase

test_time_manager.py がやり直し

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority::medium priority medium tools
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants