make pylint happy

This commit is contained in:
Istvan Ruzman
2022-02-21 17:02:25 +01:00
parent d970df0dd7
commit 2782b6950c
3 changed files with 6 additions and 4 deletions

View File

@@ -70,6 +70,9 @@ skips = ["B101"]
[tool.pylint.master]
ignore = "tests,examples"
[tool.pylint.format]
max-line-length = 120
[tool.pylint.messages_control]
# black is taking care of this
disable = "bad-continuation,fixme"
disable = "bad-continuation,fixme,wrong-import-order,wrong-import-position"

View File

@@ -82,7 +82,7 @@ def dict_loader(filename: str) -> Generator[Tuple[int, List[str]], None, None]:
Additionally to the "regular" (Free)RADIUS Dictionary tokens "FILE_OPENED"
and "FILE_CLOSED" tokens will be emitted.
"""
with open(filename, "r") as rad_dict:
with open(filename, "r", encoding="UTF-8") as rad_dict:
yield from dict_parser(filename, rad_dict)

View File

@@ -1,8 +1,7 @@
# Copyright 2020 Istvan Ruzman
# SPDX-License-Identifier: MIT OR Apache-2.0
from __future__ import annotations
"""Class for RADIUS Packet"""
from __future__ import annotations
import hashlib
import hmac