Skip to content

Commit

Permalink
Clean up lint disables
Browse files Browse the repository at this point in the history
  • Loading branch information
nickdrozd committed Nov 14, 2023
1 parent 1916cae commit 2083cb3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion test/test_lin_rado.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ def oct_to_bin(oct_string: int) -> str:
return f'{oct_string:b}'

def bin_to_prog(bin_string: str) -> str:
# pylint: disable = invalid-name
a0, a1, b0, b1, c0, c1 = map(
convert_bin_instr,
(
Expand Down
5 changes: 2 additions & 3 deletions test/test_num.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# pylint: disable = line-too-long, too-many-lines, expression-not-assigned
# pylint: disable = line-too-long, too-many-lines
# pylint: disable = expression-not-assigned, pointless-statement

from __future__ import annotations

Expand Down Expand Up @@ -1287,7 +1288,6 @@ def test_recursion_error(self):
str(num1),
"(253398 + ((65 * (2 ** ((76 + (13 * (2 ** 803))) // 15))) + ((2 ** 801) * (351 + (65 * (2 ** ((-11954 + (13 * (2 ** 803))) // 15)))))))")

# pylint: disable = pointless-statement
num1 // 15

num2 = 84466 + (((65 * (2 ** ((76 + (13 * Exp(2, 803))) // 15))) + (Exp(2, 801) * (351 + (65 * (2 ** ((-11954 + (13 * Exp(2, 803))) // 15)))))) // 3)
Expand All @@ -1296,7 +1296,6 @@ def test_recursion_error(self):
str(num2),
"(84466 + ((2 ** 801) * (117 + (65 * (2 ** ((-11954 + (13 * (2 ** 803))) // 15))))))")

# pylint: disable = pointless-statement
num2 // 5

num3 = (
Expand Down
2 changes: 1 addition & 1 deletion test/test_turing.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,12 +266,12 @@ def run_bb( # pylint: disable = too-many-arguments
if print_prog:
print(self.machine.program)

# pylint: disable = unexpected-keyword-arg
if check_rec is not None:
assert isinstance(self.machine, LinRecMachine)
self.machine.run(check_rec = check_rec, **opts)
elif samples is not None:
assert isinstance(self.machine, LinRecSampler)
# pylint: disable = unexpected-keyword-arg
self.machine.run(samples = samples, **opts)
else:
self.machine.run(**opts)
Expand Down

0 comments on commit 2083cb3

Please sign in to comment.