style: add ruff C90 lint group (#1523)

Co-authored-by: daniel.eades <daniel.eades@seebyte.com>
This commit is contained in:
danieleades 2024-02-23 11:36:47 +00:00 committed by GitHub
parent fa63677603
commit 9715d0e3f7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -823,7 +823,7 @@ class Worker:
self._apply_update()
self._print_message(self.template.message_after_update)
def _apply_update(self):
def _apply_update(self): # noqa: C901
git = get_git()
subproject_top = Path(
git(

View File

@ -344,7 +344,7 @@ class Question:
"""Render and obtain the placeholder."""
return self.render_value(self.placeholder)
def get_questionary_structure(self) -> AnyByStrDict:
def get_questionary_structure(self) -> AnyByStrDict: # noqa: C901
"""Get the question in a format that the questionary lib understands."""
lexer = None
result: AnyByStrDict = {

View File

@ -110,7 +110,7 @@ style = "pep440"
vcs = "git"
[tool.ruff.lint]
extend-select = ["ARG", "B", "D", "E", "F", "FA", "I", "PGH", "UP"]
extend-select = ["ARG", "B", "C90", "D", "E", "F", "FA", "I", "PGH", "UP"]
extend-ignore = ['B028', "B904", "D105", "D107", "E501"]
[tool.ruff.lint.per-file-ignores]