Skip to content

Commit fbfed23

Browse files
Merge remote-tracking branch 'upstream/main' into ruff-black
2 parents 9de7dbd + 6e9e9ac commit fbfed23

6 files changed

Lines changed: 4 additions & 9 deletions

File tree

src/binarylane/console/__main__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ def main() -> int:
1818
App().run(sys.argv[1:])
1919
return 0
2020

21-
# pylint: disable=broad-except
2221
except Exception as exc:
2322
logger.exception(exc)
2423
return -1

src/binarylane/console/parser/list_attribute.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ def __init__(
4343
option_name: Optional[str] = None,
4444
description: Optional[str] = None,
4545
) -> None:
46-
# pylint: disable=duplicate-code
4746
super().__init__(
4847
attribute_name,
4948
attribute_type,

src/binarylane/console/parser/parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
from binarylane.console.parser.object_attribute import Mapping
1616

17-
ArgumentGroup: TypeAlias = argparse._ArgumentGroup # pylint: disable=protected-access
17+
ArgumentGroup: TypeAlias = argparse._ArgumentGroup
1818

1919
logger = logging.getLogger(__name__)
2020

src/binarylane/console/parser/primitive_attribute.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@ def lookup(self, value: str) -> object:
163163
# If not, perform a lookup using the provided value
164164
result = self._lookup(value)
165165
if result is None:
166-
# pylint: disable=raise-missing-from
167166
raise argparse.ArgumentError(None, f"{self.attribute_name.upper()}: could not find '{value}'")
168167
return result
169168

src/binarylane/console/runners/httpx_wrapper.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ def __init__(self) -> None:
2727
_httpx_request: Optional[Callable[..., httpx.Response]]
2828

2929
def __enter__(self: WrapperT) -> WrapperT:
30-
# pylint: disable=used-before-assignment
3130
self._httpx_request = httpx.request
3231
httpx.request = self.request
3332
return self
@@ -42,11 +41,10 @@ def request(self, *args: Any, **kwargs: Any) -> httpx.Response:
4241
def __exit__(
4342
self, exc_type: Optional[type[BaseException]], exc_val: Optional[BaseException], exc_tb: Optional[TracebackType]
4443
) -> None:
45-
# pylint: disable=used-before-assignment
4644
httpx.request = self._httpx_request # type: ignore
4745

4846

49-
class CurlCommand(HttpxWrapper): # pylint: disable=too-few-public-methods
47+
class CurlCommand(HttpxWrapper):
5048
"""Convert HTTP request to a curl command-line. The HTTP request is not performed."""
5149

5250
shell: str

src/binarylane/pycompat/actions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ def __init__(
1313
option_strings: Sequence[str],
1414
dest: str,
1515
default: Union[object, str, None] = None,
16-
type: Union[Callable[[str], object], argparse.FileType, None] = None, # pylint: disable=redefined-builtin
16+
type: Union[Callable[[str], object], argparse.FileType, None] = None,
1717
choices: Union[Iterable[object], None] = None,
1818
required: bool = False,
19-
help: Union[str, None] = None, # pylint: disable=redefined-builtin
19+
help: Union[str, None] = None,
2020
metavar: Union[str, Tuple[str, ...], None] = None,
2121
) -> None:
2222
_option_strings = []

0 commit comments

Comments
 (0)