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 pre-commit hooks config file #62

Merged
merged 1 commit into from
May 17, 2020
Merged

Add pre-commit hooks config file #62

merged 1 commit into from
May 17, 2020

Conversation

trim21
Copy link
Contributor

@trim21 trim21 commented Jan 21, 2020

close #61

  - repo: https://github.com/myint/autoflake
    rev: b330072a26bb13aea8843f8083cee5332d71f78f
    hooks:
      - id: autoflake
        args:
          - --in-place
          - --remove-unused-variables
          - --remove-all-unused-imports
          - --expand-star-imports

@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 99.438% when pulling d7fff47 on Trim21:master into 095161e on myint:master.

@myint myint changed the title add pre-commut hooks config file Add pre-commit hooks config file May 17, 2020
@myint myint merged commit b330072 into PyCQA:master May 17, 2020
@yajo
Copy link

yajo commented May 25, 2020

Would you mind doing a release to let us use this in pre-commit comfortably?

@merfolk
Copy link

merfolk commented Mar 23, 2021

Shouldn't instructions for setting up pre-commit be part of this repository's readme as well?

ibesso-rh added a commit to ibesso-rh/openshift-python-wrapper that referenced this pull request Aug 1, 2021
autoflake complements flake8 for removing unused imports
because flake8 just reports them and fails the pre-commit

followed this reference to integrate via pre-commit:
PyCQA/autoflake#62
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pre-commit support?
5 participants