Skip to content

Commit

Permalink
enable A and B ruff rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathieu Scheltienne committed Jan 23, 2024
1 parent fa7b3c8 commit c70353a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -149,14 +149,15 @@ extend-exclude = [
]
ignore = []
line-length = 88
select = ["E", "F", "UP", "W"]
select = ["A", "B", "E", "F", "UP", "W"]
target-version = 'py39'

[tool.ruff.format]
docstring-code-format = true

[tool.ruff.per-file-ignores]
'*' = [
"B904", # 'Within an except clause, raise exceptions with raise ... from ...'
"UP007", # 'Use `X | Y` for type annotations', requires python 3.10
]
'*.pyi' = ['E501']
Expand Down
2 changes: 1 addition & 1 deletion template/utils/logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class _LoggerFormatter(logging.Formatter):
def __init__(self):
super().__init__(fmt="%(levelname): %(message)s")

def format(self, record: logging.LogRecord):
def format(self, record: logging.LogRecord): # noqa: A003
"""Format the received log record.
Parameters
Expand Down

0 comments on commit c70353a

Please sign in to comment.