← 返回首页
GitHub - ankitvgupta/pycodestyle-action: A Github Action that runs pycodestyle and leaves a comment on your pull request with style errors. · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

ankitvgupta/pycodestyle-action

 master
Go to file
Code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
View all files

Repository files navigation

More items

pycodestyle-action

A Github Action that runs pycodestyle and leaves a comment on your pull request.

Example

Add the following to .github/workflows/myworkflow.yml.

Note that the PRECOMMAND_MESSAGE variable is optional. If you set it, it will print before the code errors. For example, this is helpful if you want to print a message to refer the user to any tools you have for managing style errors.

on: [pull_request] name: Python Style Check jobs: pycodestyle: name: pycodestyle runs-on: ubuntu-latest steps: - uses: actions/checkout@master - name: pycodestyle uses: ankitvgupta/pycodestyle-action@master env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} PRECOMMAND_MESSAGE: You have style errors. See them below.

Acknowledgements

About

A Github Action that runs pycodestyle and leaves a comment on your pull request with style errors.

Resources

License

Stars

9 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors

Footer

© 2026 GitHub, Inc.