Skip to content
Snippets Groups Projects
Verified Commit b113fd2a authored by Yoann Schneider's avatar Yoann Schneider :tennis:
Browse files

Use ruff for Isort

parent c76fdeeb
No related branches found
No related tags found
1 merge request!2282Use ruff for isort
repos:
- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.10.1
hooks:
- id: isort
- repo: https://github.com/pycqa/flake8
rev: 3.9.2
hooks:
......
......@@ -5,8 +5,45 @@ line-length = 120
quote-style = "double"
[lint]
select = ["Q0", "F", "W", "E",
select = [
# flake8-quotes
"Q0",
# pyflakes
"F",
# pycodestyle
"W",
"E",
# request-without-timeout
"S113",
# isort
"I",
]
ignore = ["E501"]
[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