diff --git a/.isort.cfg b/.isort.cfg new file mode 100644 index 0000000000000000000000000000000000000000..c6548d6c0e353efe990fa510cd4d25a5a4ff7281 --- /dev/null +++ b/.isort.cfg @@ -0,0 +1,5 @@ +[settings] +profile = black +default_section = THIRDPARTY +known_first_party = django + diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..17396d4c3cf815796badc1ed55266c8f86bfa47e --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,14 @@ +repos: + - repo: https://github.com/psf/black + rev: 22.1.0 + hooks: + - id: black + language_version: python3.9 + - repo: https://github.com/PyCQA/isort + rev: 5.9.3 + hooks: + - id: isort + - repo: https://github.com/PyCQA/flake8 + rev: 4.0.1 + hooks: + - id: flake8