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 configuration #679

Merged
merged 1 commit into from
Mar 13, 2023
Merged

add pre-commit configuration #679

merged 1 commit into from
Mar 13, 2023

Conversation

asottile
Copy link
Contributor

resolves #678

checked that it worked with pre-commit try-repo:

$ pre-commit try-repo . --files autopep8.py 
[INFO] Initializing environment for ..
===============================================================================
Using config:
===============================================================================
repos:
-   repo: .
    rev: 3c1e0e4e42132e64f9fb088462aab3358677b55b
    hooks:
    -   id: autopep8
===============================================================================
[INFO] Installing environment for ..
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
autopep8.................................................................Failed
- hook id: autopep8
- files were modified by this hook
$ git diff
diff --git a/autopep8.py b/autopep8.py
index 573f7ac..607899d 100755
--- a/autopep8.py
+++ b/autopep8.py
@@ -3662,10 +3662,10 @@ def apply_global_fixes(source, options, where='global', filename='',
                           indent_size=options.indent_size,
                           leave_tabs=not (
                               code_match(
-                                    'W191',
-                                    select=options.select,
-                                    ignore=options.ignore)
-                                         )
+                                  'W191',
+                                  select=options.select,
+                                  ignore=options.ignore)
+                          )
                           )
 
     for (code, function) in global_fixes():

@codecov-commenter
Copy link

Codecov Report

Patch and project coverage have no change.

Comparison is base (6e6d4ba) 97.83% compared to head (3c1e0e4) 97.83%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #679   +/-   ##
=======================================
  Coverage   97.83%   97.83%           
=======================================
  Files           1        1           
  Lines        2398     2398           
=======================================
  Hits         2346     2346           
  Misses         52       52           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@hhatto hhatto self-requested a review March 13, 2023 02:55
Copy link
Owner

@hhatto hhatto left a comment

Choose a reason for hiding this comment

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

LGTM

Thanks!!

@hhatto hhatto merged commit ed18832 into hhatto:main Mar 13, 2023
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.

add pre-commit configuration here?
3 participants