Skip to content

Commit 96c3518

Browse files
authored
Merge pull request pre-commit#1124 from pre-commit/all-repos_autofix_rm-reqs
Remove redundant flake8 dependency
2 parents 0245a67 + d3474df commit 96c3518

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

requirements-dev.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
-e .
22

33
coverage
4-
flake8
54
mock
65
pytest
76
pytest-env

tests/commands/run_test.py

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
import io
55
import os.path
6+
import pipes
67
import subprocess
78
import sys
89

@@ -642,9 +643,11 @@ def test_local_hook_passes(cap_out, store, repo_with_passing_hook):
642643
'repo': 'local',
643644
'hooks': [
644645
{
645-
'id': 'flake8',
646-
'name': 'flake8',
647-
'entry': "'{}' -m flake8".format(sys.executable),
646+
'id': 'identity-copy',
647+
'name': 'identity-copy',
648+
'entry': '{} -m pre_commit.meta_hooks.identity'.format(
649+
pipes.quote(sys.executable),
650+
),
648651
'language': 'system',
649652
'files': r'\.py$',
650653
},
@@ -869,10 +872,13 @@ def test_args_hook_only(cap_out, store, repo_with_passing_hook):
869872
'repo': 'local',
870873
'hooks': [
871874
{
872-
'id': 'flake8',
873-
'name': 'flake8',
874-
'entry': "'{}' -m flake8".format(sys.executable),
875+
'id': 'identity-copy',
876+
'name': 'identity-copy',
877+
'entry': '{} -m pre_commit.meta_hooks.identity'.format(
878+
pipes.quote(sys.executable),
879+
),
875880
'language': 'system',
881+
'files': r'\.py$',
876882
'stages': ['commit'],
877883
},
878884
{
@@ -891,4 +897,4 @@ def test_args_hook_only(cap_out, store, repo_with_passing_hook):
891897
repo_with_passing_hook,
892898
run_opts(hook='do_not_commit'),
893899
)
894-
assert b'flake8' not in printed
900+
assert b'identity-copy' not in printed

0 commit comments

Comments
 (0)