From bcef9c736cb9b618d98b0c4f7c9bac2e4b587f71 Mon Sep 17 00:00:00 2001 From: "Economou, Matthew (NIH/NIAID) [C]" Date: Wed, 24 Jan 2024 22:59:41 -0500 Subject: [PATCH] ci: enforce the Black code style as well as sorted imports --- .isort.cfg | 3 +++ .pre-commit-config.yaml | 8 ++++++++ 2 files changed, 11 insertions(+) create mode 100644 .isort.cfg diff --git a/.isort.cfg b/.isort.cfg new file mode 100644 index 00000000..449ea8b0 --- /dev/null +++ b/.isort.cfg @@ -0,0 +1,3 @@ +[settings] +profile = black +skip_gitignore = true diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 688131a2..3ccb4c2c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,3 +10,11 @@ repos: rev: 7.0.0 hooks: - id: flake8 + - repo: https://github.com/pycqa/isort + rev: 5.12.0 + hooks: + - id: isort + - repo: https://github.com/psf/black + rev: 23.11.0 + hooks: + - id: black