Skip to content

Commit dcebec2

Browse files
committed
Update pre-commit
1 parent 4b7a198 commit dcebec2

File tree

5 files changed

+35
-14
lines changed

5 files changed

+35
-14
lines changed

.pre-commit-config.yaml

+27-5
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,43 @@
11
repos:
22
- repo: https://github.com/asottile/pyupgrade
3-
rev: v1.22.1
3+
rev: v1.25.2
44
hooks:
55
- id: pyupgrade
66
args: ["--py36-plus"]
77

88
- repo: https://github.com/psf/black
9-
rev: 19.3b0
9+
rev: 19.10b0
1010
hooks:
1111
- id: black
12-
language_version: python3.7
12+
args: ["--target-version", "py36"]
1313
# override until resolved: https://github.com/psf/black/issues/402
1414
files: \.pyi?$
1515
types: []
1616

1717
- repo: https://gitlab.com/pycqa/flake8
18-
rev: 3.7.8
18+
rev: 3.7.9
1919
hooks:
2020
- id: flake8
21-
language_version: python3.7
21+
additional_dependencies: [flake8-2020, flake8-implicit-str-concat]
22+
23+
- repo: https://github.com/asottile/seed-isort-config
24+
rev: v1.9.3
25+
hooks:
26+
- id: seed-isort-config
27+
28+
- repo: https://github.com/pre-commit/mirrors-isort
29+
rev: v4.3.21
30+
hooks:
31+
- id: isort
32+
33+
- repo: https://github.com/pre-commit/pygrep-hooks
34+
rev: v1.4.2
35+
hooks:
36+
- id: python-check-blanket-noqa
37+
38+
- repo: https://github.com/pre-commit/pre-commit-hooks
39+
rev: v2.4.0
40+
hooks:
41+
- id: check-merge-conflict
42+
- id: check-toml
43+
- id: check-yaml

generate.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import argparse
2+
23
from svg_wheel import generate_svg_wheel
34
from utils import (
45
annotate_support,

setup.cfg

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
[flake8]
22
max_line_length = 88
33

4-
[pycodestyle]
5-
count = True
6-
ignore = E501
7-
max_line_length = 88
8-
statistics = True
4+
[tool:isort]
5+
known_third_party = pip,pytz,requests
6+
force_grid_wrap = 0
7+
include_trailing_comma = True
8+
line_length = 88
9+
multi_line_output = 3
10+
use_parentheses = True

test_utils.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
#!/usr/bin/env python
2-
# encoding: utf-8
32
"""
43
Unit tests for utils.py
54
"""
6-
from __future__ import print_function, unicode_literals
75
import unittest
86

97
import utils

utils.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from __future__ import print_function, unicode_literals
2-
31
import datetime
42
import json
53
import os

0 commit comments

Comments
 (0)