Skip to content

Commit

Permalink
Update stale linting
Browse files Browse the repository at this point in the history
  • Loading branch information
bessman committed May 23, 2023
1 parent 1f03ae5 commit 8c2a406
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions pslab/bus/spi.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,8 @@ def _get_prescaler(cls, frequency: float) -> Tuple[int]:

for p in range(len(cls._PPRE_MAP)):
for s in range(len(cls._SPRE_MAP)):

freq = CP.CLOCK_RATE / (cls._PPRE_MAP[p] * cls._SPRE_MAP[s])
if frequency >= freq:

diff = frequency - freq
if min_diff > diff:
# better match
Expand Down
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ commands = sphinx-build -d docs/_build/doctrees docs docs/_build/html
max-line-length = 88
max-complexity = 10
select = B,C,E,F,W,T4,B9
ignore = E203,E231,W503 # Conflict with black.
# These rules conflict with black.
ignore = E203,W503


[pydocstyle]
Expand Down

0 comments on commit 8c2a406

Please sign in to comment.