From 17f1a74913758cdf41de1c14ec97d6a821d80252 Mon Sep 17 00:00:00 2001 From: Steve Jalim Date: Mon, 11 Oct 2021 18:40:48 +0100 Subject: [PATCH] 10575: Update black configs to stop it skipping migration files This brings it into line with isort running on all things. Note: removing the `migrations` dir from the exclusions will broaden the scope of other tools that pre-commit uses, but this makes sense as black and isort will be targetting these, so why not flake8 too? --- .pre-commit-config.yaml | 1 - pyproject.toml | 5 ----- 2 files changed, 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f9cd10805af..eb8fa278569 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,7 +7,6 @@ exclude: > | assets | static | bedrock/externalfiles/files_cache - | ^.*\b(migrations)\b.*$ | git-repos | lib/fluent_migrations ) diff --git a/pyproject.toml b/pyproject.toml index d8f7ffd81e4..ea724a80a09 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,11 +2,6 @@ line-length = 150 # To match flake8 target-version = ['py37'] include = '\.pyi?$' -exclude = ''' -/( - .+/migrations -) -''' [tool.isort] combine_as_imports = true