Skip to content

Commit 1bc29ae

Browse files
authored
Merge pull request #13 from linien-org/release/v2.0.1
Release v2.0.1
2 parents 90196a0 + 7972e4b commit 1bc29ae

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

.pre-commit-config.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
repos:
22
- repo: https://github.com/psf/black
3-
rev: 23.1.0
3+
rev: 24.3.0
44
hooks:
55
- id: black
66

77
- repo: https://github.com/pycqa/isort
8-
rev: 5.12.0
8+
rev: 5.13.2
99
hooks:
1010
- id: isort
1111
name: isort (python)
12+
13+
- repo: https://github.com/pycqa/flake8
14+
rev: 6.1.0
15+
hooks:
16+
- id: flake8
17+
additional_dependencies: [flake8-pyproject]

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ license = { file = "LICENSE" }
1919
readme = "README.md"
2020
requires-python = ">=3.10"
2121
dependencies = [
22-
"cached_property>=1.5.2",
22+
"cached_property>=1.5.2,<2.0",
2323
"myhdl>=0.11",
24-
"numpy>=1.21.5",
25-
"rpyc>=5.0,<6.0",
24+
"numpy>=1.21.5,<2.0",
25+
"rpyc>=6.0.0,<7.0",
2626
]
2727
classifiers = [
2828
"Programming Language :: Python :: 3",

pyrp3/instrument.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ def __init__(self, size):
2323
self.size = size
2424

2525
def to_python(self, val):
26-
return int(
27-
intbv(val & (2**self.size - 1), min=0, max=2**self.size).signed()
28-
)
26+
return int(intbv(val & (2**self.size - 1), min=0, max=2**self.size).signed())
2927

3028
def to_binary(self, val):
3129
return intbv(val, min=-(2 ** (self.size - 1)), max=2 ** (self.size - 1))[

0 commit comments

Comments
 (0)