mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-07 04:26:52 +00:00
Remove @entry decorator (and misc cleanup)
This commit is contained in:
parent
9bfa01da81
commit
2f1d2bbe5b
13 changed files with 25 additions and 88 deletions
|
|
@ -5,8 +5,6 @@ import argparse
|
|||
import os
|
||||
import sys
|
||||
|
||||
from pre_commit_hooks.util import entry
|
||||
|
||||
|
||||
def fix_file(file_obj):
|
||||
# Test for newline at end of file
|
||||
|
|
@ -46,8 +44,7 @@ def fix_file(file_obj):
|
|||
return 0
|
||||
|
||||
|
||||
@entry
|
||||
def end_of_file_fixer(argv):
|
||||
def end_of_file_fixer(argv=None):
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument('filenames', nargs='*', help='Filenames to fix')
|
||||
args = parser.parse_args(argv)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue