chore: bump ruff

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
Akhil Narang 2024-12-04 13:17:59 +05:30
parent 2fda32887c
commit df584ab891
No known key found for this signature in database
GPG key ID: 9DCC61E211BF645F
2 changed files with 24 additions and 23 deletions

View file

@ -21,7 +21,7 @@ repos:
exclude: ^frappe/tests/classes/context_managers\.py$ exclude: ^frappe/tests/classes/context_managers\.py$
- repo: https://github.com/astral-sh/ruff-pre-commit - repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.2.0 rev: v0.8.1
hooks: hooks:
- id: ruff - id: ruff
name: "Run ruff import sorter" name: "Run ruff import sorter"

View file

@ -103,27 +103,27 @@ dev = [
"responses==0.23.1", "responses==0.23.1",
# typechecking # typechecking
"basedmypy", "basedmypy",
"types-PyMySQL", "types-PyMySQL",
"types-PyYAML", "types-PyYAML",
"types-Pygments", "types-Pygments",
"types-beautifulsoup4", "types-beautifulsoup4",
"types-bleach", "types-bleach",
"types-cffi", "types-cffi",
"types-colorama", "types-colorama",
"types-croniter", "types-croniter",
"types-decorator", "types-decorator",
"types-ldap3", "types-ldap3",
"types-oauthlib", "types-oauthlib",
"types-openpyxl", "types-openpyxl",
"types-passlib", "types-passlib",
"types-psutil", "types-psutil",
"types-psycopg2", "types-psycopg2",
"types-python-dateutil", "types-python-dateutil",
"types-pytz", "types-pytz",
"types-requests", "types-requests",
"types-six", "types-six",
"types-vobject", "types-vobject",
"types-zxcvbn", "types-zxcvbn",
] ]
test = [ test = [
"unittest-xml-reporting~=3.2.0", "unittest-xml-reporting~=3.2.0",
@ -188,8 +188,9 @@ ignore = [
"F722", # syntax error in forward type annotation "F722", # syntax error in forward type annotation
"W191", # indentation contains tabs "W191", # indentation contains tabs
"RUF001", # string contains ambiguous unicode character "RUF001", # string contains ambiguous unicode character
"UP032", # Use f-string instead of `format` call (translations)
"UP030", # Use implicit references for positional format fields (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"] typing-modules = ["frappe.types.DF"]