Skip to content

Commit

Permalink
Merge pull request #199 from tisnik/pylint-rule-file-open-encoding
Browse files Browse the repository at this point in the history
Enable Pylint rule: file open encoding specification
  • Loading branch information
tisnik authored Dec 10, 2024
2 parents cb3f957 + 25b7985 commit aa1cab7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ols/app/models/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ def __init__(self, **data: Any) -> None:
super().__init__(**data)
# password should be read from file
if self.password_path is not None:
with open(self.password_path, "r") as f:
with open(self.password_path, "r", encoding="utf-8") as f:
self.password = f.read().rstrip()

@model_validator(mode="after")
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -160,4 +160,4 @@ packages = ["ols"]

[tool.pylint."MESSAGES CONTROL"]
good-names = ["e"]
disable = ["W1203", "C0103", "C0301", "C0302", "C0415", "E0602", "E0611", "E1101", "R0902", "R0903", "R0913", "R0914", "W0102", "W0212", "W0511", "W0603", "W0613", "W0621", "W0622", "W0707", "W0718", "W0719", "W1514", "E0401", "R0801", "R0917"]
disable = ["W1203", "C0103", "C0301", "C0302", "C0415", "E0602", "E0611", "E1101", "R0902", "R0903", "R0913", "R0914", "W0102", "W0212", "W0511", "W0603", "W0613", "W0621", "W0622", "W0707", "W0718", "W0719", "E0401", "R0801", "R0917"]

0 comments on commit aa1cab7

Please sign in to comment.