Refactor fixtures in tests. · precommit/pre-commit@85a7661 · GitHub
Skip to content

Commit 85a7661

Browse files
committed
Refactor fixtures in tests.
1 parent 3baefd5 commit 85a7661

43 files changed

Lines changed: 241 additions & 270 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

pre_commit/clientlib/validate_base.py

Lines changed: 1 addition & 0 deletions

pre_commit/clientlib/validate_config.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import unicode_literals
2+
13
import sys
24

35
from pre_commit.clientlib.validate_base import get_run_function

pre_commit/clientlib/validate_manifest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import unicode_literals
2+
13
import sys
24

35
from pre_commit.clientlib.validate_base import get_run_function

pre_commit/color.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import unicode_literals
2+
13
import sys
24

35
RED = '\033[41m'

pre_commit/constants.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
from __future__ import unicode_literals
2+
3+
14
CONFIG_FILE = '.pre-commit-config.yaml'
25

36
MANIFEST_FILE = 'hooks.yaml'

pre_commit/five.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import unicode_literals
2+
13
"""five: six, redux"""
24
# pylint:disable=invalid-name
35
PY2 = (str is bytes)

pre_commit/git.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import unicode_literals
2+
13
import functools
24
import logging
35
import os

pre_commit/jsonschema_extensions.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import unicode_literals
2+
13
import copy
24
import jsonschema
35
import jsonschema.validators

pre_commit/languages/all.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import unicode_literals
2+
13
from pre_commit.languages import node
24
from pre_commit.languages import python
35
from pre_commit.languages import ruby

pre_commit/languages/helpers.py

Lines changed: 1 addition & 0 deletions

0 commit comments

Comments
 (0)