Skip to content

Commit 1206bf0

Browse files
MaxAakerobsdedude
andauthored
Bump pre-commit tool versions +++ now requiring Python 3.8+ +++ (#631)
Co-authored-by: Robsdedude <[email protected]>
1 parent 678da42 commit 1206bf0

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# See https://pre-commit.com/hooks.html for more hooks
33
repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v4.0.1
5+
rev: v4.6.0
66
hooks:
77
- id: check-case-conflict
88
- id: check-docstring-first
@@ -29,6 +29,6 @@ repos:
2929
- flake8-quotes
3030
- pep8-naming
3131
- repo: https://github.com/pycqa/isort
32-
rev: 5.12.0
32+
rev: 5.13.2
3333
hooks:
3434
- id: isort

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Contributing
22
============
33

44
Setting up the development environment:
5-
* Install Python 3.7+
5+
* Install Python 3.8+
66
* Install the requirements
77
```bash
88
$ python3 -m pip install -U pip

boltstub/channel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def assert_no_input(self):
146146
if not no_input:
147147
try:
148148
msg = self.peek()
149-
except BaseException:
149+
except Exception:
150150
msg = (
151151
"some data (encountered error while trying to peek):\n"
152152
f"{traceback.format_exc()}"

boltstub/parsing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ def _field_match(cls, should, is_):
366366
return type(is_) in should.types
367367
if isinstance(is_, Structure):
368368
return is_ == should
369-
if type(should) != type(is_):
369+
if type(should) is not type(is_):
370370
return False
371371
if isinstance(should, (list, tuple)):
372372
if len(should) != len(is_):

boltstub/simple_jolt/v1/codec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ def _decode_full(value, decode_cb):
416416
raise JOLTValueError("Node id must be int")
417417
if not isinstance(labels, list):
418418
raise JOLTValueError("Node labels must be list")
419-
if not all(map(lambda l: isinstance(l, str), labels)):
419+
if not all(map(lambda label: isinstance(label, str), labels)):
420420
raise JOLTValueError("Node labels must be list of str")
421421
if not isinstance(properties, dict):
422422
raise JOLTValueError("Node properties must be dict")

boltstub/simple_jolt/v2/codec.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def _decode_full(value, decode_cb):
110110
raise JOLTValueError("Node id must be int or none")
111111
if not isinstance(labels, list):
112112
raise JOLTValueError("Node labels must be list")
113-
if not all(map(lambda l: isinstance(l, str), labels)):
113+
if not all(map(lambda label: isinstance(label, str), labels)):
114114
raise JOLTValueError("Node labels must be list of str")
115115
if not isinstance(properties, dict):
116116
raise JOLTValueError("Node properties must be dict")
@@ -140,7 +140,7 @@ def _decode_full(cls, value, decode_cb):
140140
if not isinstance(value, list) or len(value) != 8:
141141
raise JOLTValueError('Expecting list of length 8 after sigil "%s"'
142142
% cls.sigil)
143-
id_, start_node_id, rel_type, end_node_id, properties, element_id,\
143+
id_, start_node_id, rel_type, end_node_id, properties, element_id, \
144144
start_node_element_id, end_node_element_id = value
145145

146146
if not isinstance(id_, int) and id_ is not None:

boltstub/tests/test_integration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def __init__(self, script, address):
117117
def run(self):
118118
try:
119119
self.service.start()
120-
except BaseException as e:
120+
except Exception as e:
121121
traceback.print_exc()
122122
self.exc = e
123123

0 commit comments

Comments
 (0)