Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump black from 21.12b0 to 22.1.0 #415

Merged
merged 4 commits into from
Jan 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/psf/black
rev: 21.7b0
rev: 22.1.0
hooks:
- id: black
name: black
Expand Down Expand Up @@ -29,7 +29,7 @@ repos:
- id: pylint
name: pylint
stages: [manual]
# DO NOT ACTIVATE until all files have been manually updated.
# DO NOT ACTIVATE until all files have been manually updated.
entry: pylint
language: system
types: [python]
Expand All @@ -42,7 +42,7 @@ repos:
- --timeout=30
- --cov=pytradfri
- --cov-report=html
stages: [push,manual]
stages: [push, manual]
entry: pytest
language: system
types: [python]
Expand All @@ -55,6 +55,6 @@ repos:
language: script
types: [python]
require_serial: true
# files: ^(pytradfri|examples|tests)/.+\.py$
# DO NOT ADD examples/tests until files have been updated.
# files: ^(pytradfri|examples|tests)/.+\.py$
# DO NOT ADD examples/tests until files have been updated.
files: ^(pytradfri)/.+\.py$
2 changes: 1 addition & 1 deletion pytradfri/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def __init__(self, choices):
self._choices = []
self._lookup = {}
for index, (key, val) in enumerate(choices):
index = 2 ** index
index = 2**index
self._choices.append((index, val))
self._lookup[key] = index

Expand Down
3 changes: 1 addition & 2 deletions requirements_test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@ pytest==6.2.5
flake8==4.0.1
pytest-timeout==2.1.0
pytest-cov==3.0.0
black==21.12b0
black==22.1.0
mypy==0.931
pre-commit==2.17.0
flake8-docstrings==1.6.0
flake8-comprehensions==3.8.0
flake8-noqa==1.2.1
coverage==6.3