ci: update mypy config and make ruff config more consistent with other projects

This commit is contained in:
Dima Gerasimov 2024-08-31 02:03:22 +01:00
parent d58453410c
commit e4cdb74ea3
13 changed files with 32 additions and 38 deletions

View file

@ -577,7 +577,7 @@ def query_hpi_functions(
# output == 'repl'
eprint(f"\nInteract with the results by using the {click.style('res', fg='green')} variable\n")
try:
import IPython # type: ignore[import]
import IPython # type: ignore[import,unused-ignore]
except ModuleNotFoundError:
eprint("'repl' typically uses ipython, install it with 'python3 -m pip install ipython'. falling back to stdlib...")
import code

View file

@ -120,7 +120,7 @@ class CPath(BasePath):
Path only has _accessor and _closed slots, so can't directly set .open method
_accessor.open has to return file descriptor, doesn't work for compressed stuff.
"""
def open(self, *args, **kwargs):
def open(self, *args, **kwargs): # noqa: ARG002
kopen_kwargs = {}
mode = kwargs.get('mode')
if mode is not None:

View file

@ -8,7 +8,6 @@ from pathlib import Path
import pytest
import pytz
from more_itertools import ilen
import my.config
from my.core import notnone

View file

@ -47,5 +47,5 @@ class DummyExecutor(Executor):
return f
def shutdown(self, wait: bool = True, **kwargs) -> None: # noqa: FBT001,FBT002
def shutdown(self, wait: bool = True, **kwargs) -> None: # noqa: FBT001,FBT002,ARG002
self._shutdown = True