general: initial flake8 checks (for now manual)
fix fairly uncontroversial stuff in my.core like - line spacing, which isn't too annoying (e.g. unlike many inline whitespace checks that break vertical formatting) - unused imports/variables - too broad except
This commit is contained in:
parent
fd0c65d176
commit
016f28250b
19 changed files with 124 additions and 58 deletions
|
@ -6,7 +6,7 @@ from typing import Optional
|
|||
|
||||
def disable_cachew() -> None:
|
||||
try:
|
||||
import cachew
|
||||
import cachew # noqa: F401 # unused, it's fine
|
||||
except ImportError:
|
||||
# nothing to disable
|
||||
return
|
||||
|
@ -19,7 +19,7 @@ from typing import Iterator
|
|||
@contextmanager
|
||||
def disabled_cachew() -> Iterator[None]:
|
||||
try:
|
||||
import cachew
|
||||
import cachew # noqa: F401 # unused, it's fine
|
||||
except ImportError:
|
||||
# nothing to disable
|
||||
yield
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue