Skip to content

Commit a642568

Browse files
Add flake8 and isort to pre-commit (#777)
* Add flake8 and isort to pre-commit * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 8fada29 commit a642568

Some content is hidden

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

42 files changed

+63
-68
lines changed

.flake8

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
max-line-length = 88

.pre-commit-config.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
repos:
2+
- repo: https://github.com/PyCQA/isort
3+
rev: 5.12.0
4+
hooks:
5+
- id: isort
6+
7+
- repo: https://github.com/PyCQA/flake8
8+
rev: 6.0.0
9+
hooks:
10+
- id: flake8
11+
212
- repo: https://github.com/pre-commit/pre-commit-hooks
313
rev: v4.0.1
414
hooks:

pipeline/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from pkg_resources import get_distribution, DistributionNotFound
1+
from pkg_resources import DistributionNotFound, get_distribution
22

33
try:
44
__version__ = get_distribution("django-pipeline").version

pipeline/collector.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import os
2-
32
from collections import OrderedDict
43

54
import django

pipeline/compilers/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
from pipeline.conf import settings
1212
from pipeline.exceptions import CompilerError
13-
from pipeline.utils import to_class, set_std_streams_blocking
13+
from pipeline.utils import set_std_streams_blocking, to_class
1414

1515

1616
class Compiler(object):

pipeline/compilers/coffee.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from pipeline.conf import settings
21
from pipeline.compilers import SubProcessCompiler
2+
from pipeline.conf import settings
33

44

55
class CoffeeScriptCompiler(SubProcessCompiler):

pipeline/compilers/es6.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from pipeline.conf import settings
21
from pipeline.compilers import SubProcessCompiler
2+
from pipeline.conf import settings
33

44

55
class ES6Compiler(SubProcessCompiler):

pipeline/compilers/less.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from os.path import dirname
22

3-
from pipeline.conf import settings
43
from pipeline.compilers import SubProcessCompiler
4+
from pipeline.conf import settings
55

66

77
class LessCompiler(SubProcessCompiler):

pipeline/compilers/livescript.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from pipeline.conf import settings
21
from pipeline.compilers import SubProcessCompiler
2+
from pipeline.conf import settings
33

44

55
class LiveScriptCompiler(SubProcessCompiler):

pipeline/compilers/sass.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from os.path import dirname
22

3-
from pipeline.conf import settings
43
from pipeline.compilers import SubProcessCompiler
4+
from pipeline.conf import settings
55

66

77
class SASSCompiler(SubProcessCompiler):

0 commit comments

Comments
 (0)