From 3c7c14607b0678dc45871d2ec6e5442595983429 Mon Sep 17 00:00:00 2001 From: WeberJulian Date: Wed, 23 Mar 2022 17:23:36 +0100 Subject: [PATCH] Add formatting tests (#1437) * Add style checks to `make lint` * Bump target-version in black config --- Makefile | 2 ++ pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d04cd9761d..69f34c79ea 100644 --- a/Makefile +++ b/Makefile @@ -44,6 +44,8 @@ style: ## update code style. lint: ## run pylint linter. pylint ${target_dirs} + black ${target_dirs} --check + isort ${target_dirs} --check-only system-deps: ## install linux system deps sudo apt-get install -y libsndfile1-dev diff --git a/pyproject.toml b/pyproject.toml index 0941a90681..b775f12ab3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ max-line-length=120 [tool.black] line-length = 120 -target-version = ['py38'] +target-version = ['py39'] exclude = ''' (