Skip to content

Commit

Permalink
missed black/flake8 corners
Browse files Browse the repository at this point in the history
  • Loading branch information
maxfischer2781 committed Feb 2, 2024
1 parent edab859 commit b456c64
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
statistics = True
max-line-length = 80
select = C,E,F,W,B,B9
ignore = E203, E501, E704, B008, B011, B905, W503
ignore = E203, E501, E701, E704, B008, B011, B905, W503
exclude = docs,.svn,CVS,.bzr,.hg,.git,__pycache__,.tox,.eggs,*.egg
12 changes: 4 additions & 8 deletions cobald_tests/controller/test_stepwise.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,31 +8,27 @@
class TestStepwise:
def test_add(self):
@stepwise
def control(pool, interval):
...
def control(pool, interval): ...

Check notice

Code scanning / CodeQL

Statement has no effect Note test

This statement has no effect.

assert isinstance(control, UnboundStepwise)

@control.add(supply=20)
def rule(pool, interval):
...
def rule(pool, interval): ...

Check notice

Code scanning / CodeQL

Statement has no effect Note test

This statement has no effect.

assert isinstance(control, UnboundStepwise)
assert isinstance(rule, FunctionType)

def test_instantiate(self):
@stepwise
def control(pool, interval):
...
def control(pool, interval): ...

Check notice

Code scanning / CodeQL

Statement has no effect Note test

This statement has no effect.

assert isinstance(control(FullMockPool()), Stepwise)
assert isinstance(control.s() >> FullMockPool(), Stepwise)
assert isinstance(control(FullMockPool(), interval=10), Stepwise)
assert isinstance(control.s(interval=10) >> FullMockPool(), Stepwise)

@control.add(supply=20)
def rule(pool, interval):
...
def rule(pool, interval): ...

Check notice

Code scanning / CodeQL

Statement has no effect Note test

This statement has no effect.

assert isinstance(control(FullMockPool()), Stepwise)
assert isinstance(control.s() >> FullMockPool(), Stepwise)
Expand Down
6 changes: 2 additions & 4 deletions cobald_tests/interfaces/test_partial.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@


class MockController(Controller):
def regulate(self, interval: float):
...
def regulate(self, interval: float): ...

Check notice

Code scanning / CodeQL

Statement has no effect Note test

This statement has no effect.


class MockDecorator(PoolDecorator):
...
class MockDecorator(PoolDecorator): ...

Check notice

Code scanning / CodeQL

Statement has no effect Note test

This statement has no effect.


class TestPartial(object):
Expand Down

0 comments on commit b456c64

Please sign in to comment.