line-length = 120

[format]
# Like Black, use double quotes for strings.
quote-style = "double"

[lint]
select = [
    # flake8-quotes
    "Q",
    # pyflakes
    "F",
    # pycodestyle
    "W",
    "E",
    # request-without-timeout
    "S113",
    # isort
    "I",
    # flake8-debugger
    "T10",
    # escape-sequence-in-docstring
    "D301",
    # flake8-return
    "RET",
    # eradicate
    "ERA",
    # pyupgrade
    "UP",
]
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",
]