Skip to content

Commit

Permalink
Fix linters
Browse files Browse the repository at this point in the history
  • Loading branch information
aalexfvk committed Jan 13, 2025
1 parent 2f3bfdc commit 2c5e1df
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,9 @@ max-statements=65
# Minimum number of public methods for a class (see R0903).
min-public-methods=2

# Maximum number of positional arguments for function / method.
max-positional-arguments = 18


[EXCEPTIONS]

Expand Down
2 changes: 1 addition & 1 deletion ch_tools/common/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def configure(
handler["filter"] = make_filter(name)
loguru_handlers.append(handler)

logger.configure(handlers=loguru_handlers, activation=[("", True)], extra=extra)
logger.configure(handlers=loguru_handlers, activation=[("", True)], extra=extra) # type: ignore[arg-type]

enable_stdout_logger()

Expand Down
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ lint.ignore = [
"A003", # "Class attribute is shadowing a Python builtin"
"E402", # "Module level import not at top of file", duplicate corresponding pylint check
"E501", # "Line too long"
"A005", # Module `logging` shadows a Python standard-library module
]

[tool.ruff.lint.per-file-ignores]
Expand All @@ -159,6 +160,9 @@ disallow_incomplete_defs = true
check_untyped_defs = true
exclude = ['tests/staging']

[tool.pylint.design]
max-positional-arguments = 15 # default is 5

[tool.codespell]
skip = 'poetry.lock'
ignore-words-list = 'sav,fpr' # `fpr` is used in parsing GPG output

0 comments on commit 2c5e1df

Please sign in to comment.