diff --git a/pyproject.toml b/pyproject.toml index c774ade..684e7f6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" diff --git a/src/pyrad3/dictionary.py b/src/pyrad3/dictionary.py index 150ec1e..88e910e 100644 --- a/src/pyrad3/dictionary.py +++ b/src/pyrad3/dictionary.py @@ -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) diff --git a/src/pyrad3/packet.py b/src/pyrad3/packet.py index 5876b83..3a49db5 100644 --- a/src/pyrad3/packet.py +++ b/src/pyrad3/packet.py @@ -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