# What this PR does - Updates `black` and `flake8` to latest - Removes `F541` from flake8 ignore (`F541 f-string is missing placeholders`) - Enables ["float to top" option](https://pycqa.github.io/isort/docs/configuration/options.html#float-to-top) for `isort`
15 lines
597 B
INI
15 lines
597 B
INI
[flake8]
|
|
max-line-length = 180
|
|
extend-ignore = E203
|
|
extend-exclude = */migrations/*
|
|
ban-relative-imports = parents
|
|
banned-modules =
|
|
jinja2.Template = Use apply_jinja_template instead
|
|
django.apps.apps = Import models directly instead
|
|
|
|
[pytest]
|
|
# https://pytest-django.readthedocs.io/en/latest/configuring_django.html#order-of-choosing-settings
|
|
# https://pytest-django.readthedocs.io/en/latest/database.html
|
|
addopts = --no-migrations --color=yes --showlocals
|
|
# https://pytest-django.readthedocs.io/en/latest/faq.html#my-tests-are-not-being-found-why
|
|
python_files = tests.py test_*.py *_tests.py
|