Skip to content

Commit d856ab7

Browse files
authored
Update pre-commit config (#69)
Solved an ambiguous variable naming error that came after upgrading pre-commit. Updated version in __init__.py
1 parent 65187ee commit d856ab7

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v2.1.0
3+
rev: v4.1.0
44
hooks:
55
- id: check-ast
66
- id: check-docstring-first
@@ -11,7 +11,7 @@ repos:
1111
- id: end-of-file-fixer
1212
- id: trailing-whitespace
1313
- repo: https://gitlab.com/pycqa/flake8
14-
rev: 3.7.7
14+
rev: 4.0.1
1515
hooks:
1616
- id: flake8
1717
additional_dependencies:
@@ -30,6 +30,6 @@ repos:
3030
- flake8-comprehensions
3131
- flake8-commas
3232
- repo: https://github.com/pre-commit/mirrors-mypy
33-
rev: v0.761
33+
rev: v0.942
3434
hooks:
3535
- id: mypy

xiblint/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '0.10.1'
1+
__version__ = '0.10.3'

xiblint/rules/color_assets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,4 +106,4 @@ def _load_component(self, components, key):
106106

107107
def _compare_colors(self, lhs, rhs):
108108
# Compare with only 4 decimal places
109-
return all(format(l, ".4f") == format(r, ".4f") for l, r in zip(lhs, rhs))
109+
return all(format(left, ".4f") == format(right, ".4f") for left, right in zip(lhs, rhs))

0 commit comments

Comments
 (0)