From 7f74c96f6b751d5780d6368e51b0ac3eedd87970 Mon Sep 17 00:00:00 2001 From: Ernesto Rico Schmidt <ernesto@helsinki.at> Date: Mon, 14 Mar 2022 19:17:01 -0400 Subject: [PATCH] Add isort configuration and pre-commit --- .isort.cfg | 5 +++++ .pre-commit-config.yaml | 14 ++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 .isort.cfg create mode 100644 .pre-commit-config.yaml diff --git a/.isort.cfg b/.isort.cfg new file mode 100644 index 00000000..c6548d6c --- /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 00000000..17396d4c --- /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 -- GitLab