From 9715d0e3f76763cb8fefcf8c041abbe133d44b7e Mon Sep 17 00:00:00 2001 From: danieleades <33452915+danieleades@users.noreply.github.com> Date: Fri, 23 Feb 2024 11:36:47 +0000 Subject: [PATCH] style: add ruff `C90` lint group (#1523) Co-authored-by: daniel.eades --- copier/main.py | 2 +- copier/user_data.py | 2 +- pyproject.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/copier/main.py b/copier/main.py index 70c0afb..8a7d8d1 100644 --- a/copier/main.py +++ b/copier/main.py @@ -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( diff --git a/copier/user_data.py b/copier/user_data.py index 6d63e98..6064bbc 100644 --- a/copier/user_data.py +++ b/copier/user_data.py @@ -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 = { diff --git a/pyproject.toml b/pyproject.toml index 31ccacf..d9f7c5b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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]