mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-19 17:14:43 +04:00
Merge pull request #1124 from pre-commit/all-repos_autofix_rm-reqs
Remove redundant flake8 dependency
This commit is contained in:
commit
96c35185f0
2 changed files with 13 additions and 8 deletions
|
|
@ -1,7 +1,6 @@
|
||||||
-e .
|
-e .
|
||||||
|
|
||||||
coverage
|
coverage
|
||||||
flake8
|
|
||||||
mock
|
mock
|
||||||
pytest
|
pytest
|
||||||
pytest-env
|
pytest-env
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@ from __future__ import unicode_literals
|
||||||
|
|
||||||
import io
|
import io
|
||||||
import os.path
|
import os.path
|
||||||
|
import pipes
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
|
@ -642,9 +643,11 @@ def test_local_hook_passes(cap_out, store, repo_with_passing_hook):
|
||||||
'repo': 'local',
|
'repo': 'local',
|
||||||
'hooks': [
|
'hooks': [
|
||||||
{
|
{
|
||||||
'id': 'flake8',
|
'id': 'identity-copy',
|
||||||
'name': 'flake8',
|
'name': 'identity-copy',
|
||||||
'entry': "'{}' -m flake8".format(sys.executable),
|
'entry': '{} -m pre_commit.meta_hooks.identity'.format(
|
||||||
|
pipes.quote(sys.executable),
|
||||||
|
),
|
||||||
'language': 'system',
|
'language': 'system',
|
||||||
'files': r'\.py$',
|
'files': r'\.py$',
|
||||||
},
|
},
|
||||||
|
|
@ -869,10 +872,13 @@ def test_args_hook_only(cap_out, store, repo_with_passing_hook):
|
||||||
'repo': 'local',
|
'repo': 'local',
|
||||||
'hooks': [
|
'hooks': [
|
||||||
{
|
{
|
||||||
'id': 'flake8',
|
'id': 'identity-copy',
|
||||||
'name': 'flake8',
|
'name': 'identity-copy',
|
||||||
'entry': "'{}' -m flake8".format(sys.executable),
|
'entry': '{} -m pre_commit.meta_hooks.identity'.format(
|
||||||
|
pipes.quote(sys.executable),
|
||||||
|
),
|
||||||
'language': 'system',
|
'language': 'system',
|
||||||
|
'files': r'\.py$',
|
||||||
'stages': ['commit'],
|
'stages': ['commit'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -891,4 +897,4 @@ def test_args_hook_only(cap_out, store, repo_with_passing_hook):
|
||||||
repo_with_passing_hook,
|
repo_with_passing_hook,
|
||||||
run_opts(hook='do_not_commit'),
|
run_opts(hook='do_not_commit'),
|
||||||
)
|
)
|
||||||
assert b'flake8' not in printed
|
assert b'identity-copy' not in printed
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue