Skip to content
Snippets Groups Projects
Commit e05861d2 authored by Yoann Schneider's avatar Yoann Schneider :tennis: Committed by Erwan Rouchet
Browse files

Use ruff for isort

parent a605966c
No related branches found
No related tags found
1 merge request!2282Use ruff for isort
repos: repos:
- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.10.1
hooks:
- id: isort
- repo: https://github.com/astral-sh/ruff-pre-commit - repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version. # Ruff version.
rev: v0.3.7 rev: v0.3.7
......
...@@ -15,6 +15,8 @@ select = [ ...@@ -15,6 +15,8 @@ select = [
"E", "E",
# request-without-timeout # request-without-timeout
"S113", "S113",
# isort
"I",
# flake8-debugger # flake8-debugger
"T10", "T10",
# escape-sequence-in-docstring # escape-sequence-in-docstring
...@@ -23,3 +25,31 @@ select = [ ...@@ -23,3 +25,31 @@ select = [
"RET", "RET",
] ]
ignore = ["E501", "RET502", "RET503"] ignore = ["E501", "RET502", "RET503"]
[lint.isort]
default-section = "first-party"
known-third-party = [
"SolrClient",
"bleach",
"boto3",
"botocore",
"cryptography",
"corsheaders",
"django",
"django_admin_hstore_widget",
"django_rq",
"drf_spectacular",
"enumfields",
"gitlab",
"psycopg2",
"requests",
"responses",
"rest_framework",
"rq",
"setuptools",
"sqlparse",
"teklia_toolbox",
"tenacity",
"tripoli",
"yaml",
]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment