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

Add automated code formatter #1225

Merged
merged 4 commits into from
Jan 9, 2024
Merged

Add automated code formatter #1225

merged 4 commits into from
Jan 9, 2024

Conversation

DRMPN
Copy link
Collaborator

@DRMPN DRMPN commented Dec 14, 2023

Requires personal access token with repo scope.

Checks Python code with autopep8 on every commit.
Leaves a comment and updates it.

If you put /fix-pep8 in the comments of the pull request, it will automatically fix all PEP8 bugs and push that commit into your PR.
If successful, it will leave a comment with the text "Fixed PEP8 problems!"

Example: DRMPN#17
Resolves: #1191

@DRMPN DRMPN added the enhancement New feature or request label Dec 14, 2023
@DRMPN DRMPN requested a review from nicl-nno December 14, 2023 19:18
@DRMPN DRMPN self-assigned this Dec 14, 2023
Copy link

codecov bot commented Dec 14, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (70d470a) 79.15% compared to head (89161d0) 79.98%.
Report is 5 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1225      +/-   ##
==========================================
+ Coverage   79.15%   79.98%   +0.83%     
==========================================
  Files         145      145              
  Lines        9937     9945       +8     
==========================================
+ Hits         7866     7955      +89     
+ Misses       2071     1990      -81     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@nicl-nno nicl-nno left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Если работает то можно мержить и анонсировать в чате.

Copy link
Contributor

github-actions bot commented Jan 9, 2024

Code in this pull request still contains PEP8 errors, please write the /fix-pep8 command in the comments below to create commit with automatic fixes.

Comment last updated at 2024-01-09T14:02:18+03:00

@DRMPN DRMPN merged commit 3156858 into master Jan 9, 2024
6 of 7 checks passed
@DRMPN DRMPN deleted the add-auto-code-formatter branch January 9, 2024 13:25
@DRMPN DRMPN mentioned this pull request Jan 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Requested improvements for CI/CD and docs.
2 participants