Skip to content

Commit 4b6e215

Browse files
committed
Update linters
1 parent 4f482a4 commit 4b6e215

File tree

5 files changed

+9
-13
lines changed

5 files changed

+9
-13
lines changed

.pre-commit-config.yaml

+5-9
Original file line numberDiff line numberDiff line change
@@ -6,30 +6,26 @@ repos:
66
hooks:
77
- id: autoflake
88
- repo: https://github.com/psf/black
9-
rev: 19.10b0
9+
rev: 22.8.0
1010
hooks:
1111
- id: black
1212
- repo: https://github.com/pre-commit/mirrors-isort
13-
rev: v4.3.21
13+
rev: v5.10.1
1414
hooks:
1515
- id: isort
1616
additional_dependencies:
1717
- toml
1818
- repo: https://github.com/PyCQA/flake8
19-
rev: 3.7.9
19+
rev: 5.0.4
2020
hooks:
2121
- id: flake8
22-
additional_dependencies: [
23-
'-e', 'git+https://github.com/pycqa/pyflakes@master#egg=pyflakes',
24-
'-e', 'git+https://github.com/pycqa/pycodestyle@master#egg=pycodestyle',
25-
]
2622
- repo: https://github.com/pre-commit/mirrors-mypy
27-
rev: v0.770
23+
rev: v0.971
2824
hooks:
2925
- id: mypy
3026
exclude: 'tests/data/'
3127
- repo: https://github.com/pre-commit/pre-commit-hooks
32-
rev: v2.5.0
28+
rev: v4.3.0
3329
hooks:
3430
- id: trailing-whitespace
3531
- id: end-of-file-fixer

src/__init__.py

Whitespace-only changes.

src/audiomatch/popcount/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# This popcount version works slightly faster than 'bin(x).count("1")'
1212

1313
def _popcount_table(size: int) -> List[int]:
14-
table = [0] * 2 ** size
14+
table = [0] * 2**size
1515
for i in range(len(table)):
1616
table[i] = (i & 1) + table[i >> 1]
1717
return table

src/audiomatch/popcount/_popcount.pyi

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
def popcount(x: int) -> int:
2-
...
1+
def popcount(x: int) -> int: ...

tests/test_cli_invocation.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
def test_invoke_from_command_line():
55
output = subprocess.run(
6-
["python", "-m", "audiomatch", "--help"], stdout=subprocess.PIPE,
6+
["python", "-m", "audiomatch", "--help"],
7+
stdout=subprocess.PIPE,
78
)
89
assert "usage: audiomatch" in output.stdout.decode()

0 commit comments

Comments
 (0)