Skip to content

pre-commit/mirrors-autopep8

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

autopep8 mirror

Mirror of autopep8 package for pre-commit.

For pre-commit: see https://github.com/pre-commit/pre-commit

For autopep8: see https://github.com/hhatto/autopep8

Using autopep8 with pre-commit

Add this to your .pre-commit-config.yaml:

-   repo: https://github.com/pre-commit/mirrors-autopep8
    rev: ''  # Use the sha / tag you want to point at
    hooks:
    -   id: autopep8

overriding args

note that this repository sets args: [-i], if you are configuring autopep8 using args you'll want to include either -i (--in-place) or -d (--diff). it is usually better to configure autopep8 in its config file.