diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f1da5de97ec9fd60a5ca4bf292ca40e986129fd2..51fc70b908332e03c8357bfc19df0d372f3359f7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,8 +1,4 @@ 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: diff --git a/ruff.toml b/ruff.toml index 622b1a91e3f25fabdce9ac83d884101a9db3c0ec..d14e149d84c88b14c3ea363299e958e3e6adffed 100644 --- a/ruff.toml +++ b/ruff.toml @@ -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", +]