mirror of
https://github.com/copier-org/copier.git
synced 2025-05-05 15:32:54 +00:00
style: add ruff C90
lint group (#1523)
Co-authored-by: daniel.eades <daniel.eades@seebyte.com>
This commit is contained in:
parent
fa63677603
commit
9715d0e3f7
@ -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(
|
||||
|
@ -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 = {
|
||||
|
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user