Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Run black before flake8 in pre-commit hook (#861)

Ritesh Pandey180943da8fca
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index d878f8e98..72fca94ca 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -30,11 +30,6 @@ repos:
files: \.py$
exclude: ^build/.*$|^.tox/.*$|^venv/.*$
- - repo: https://github.com/PyCQA/flake8
- rev: 3.9.2
- hooks:
- - id: flake8
-
- repo: https://github.com/ambv/black
rev: 22.3.0
hooks:
@@ -42,6 +37,11 @@ repos:
args:
- --safe
+ - repo: https://github.com/PyCQA/flake8
+ rev: 3.9.2
+ hooks:
+ - id: flake8
+
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.5.0
hooks: