From df584ab891643020e69f8cd6b641a35022d1cf0e Mon Sep 17 00:00:00 2001 From: Akhil Narang Date: Wed, 4 Dec 2024 13:17:59 +0530 Subject: [PATCH] chore: bump ruff Signed-off-by: Akhil Narang --- .pre-commit-config.yaml | 2 +- pyproject.toml | 45 +++++++++++++++++++++-------------------- 2 files changed, 24 insertions(+), 23 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index be02212e57..ef3d02e220 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -21,7 +21,7 @@ repos: exclude: ^frappe/tests/classes/context_managers\.py$ - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.2.0 + rev: v0.8.1 hooks: - id: ruff name: "Run ruff import sorter" diff --git a/pyproject.toml b/pyproject.toml index 8f3e28c2d2..a1abc28f02 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -103,27 +103,27 @@ dev = [ "responses==0.23.1", # typechecking "basedmypy", - "types-PyMySQL", - "types-PyYAML", - "types-Pygments", - "types-beautifulsoup4", - "types-bleach", - "types-cffi", - "types-colorama", - "types-croniter", - "types-decorator", - "types-ldap3", - "types-oauthlib", - "types-openpyxl", - "types-passlib", - "types-psutil", - "types-psycopg2", - "types-python-dateutil", - "types-pytz", - "types-requests", - "types-six", - "types-vobject", - "types-zxcvbn", + "types-PyMySQL", + "types-PyYAML", + "types-Pygments", + "types-beautifulsoup4", + "types-bleach", + "types-cffi", + "types-colorama", + "types-croniter", + "types-decorator", + "types-ldap3", + "types-oauthlib", + "types-openpyxl", + "types-passlib", + "types-psutil", + "types-psycopg2", + "types-python-dateutil", + "types-pytz", + "types-requests", + "types-six", + "types-vobject", + "types-zxcvbn", ] test = [ "unittest-xml-reporting~=3.2.0", @@ -188,8 +188,9 @@ ignore = [ "F722", # syntax error in forward type annotation "W191", # indentation contains tabs "RUF001", # string contains ambiguous unicode character - "UP032", # Use f-string instead of `format` call (translations) "UP030", # Use implicit references for positional format fields (translations) + "UP031", # Use format specifiers instead of percent format + "UP032", # Use f-string instead of `format` call (translations) ] typing-modules = ["frappe.types.DF"]