Skip to content

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

🔄 Synced file(s) with WordPress/openverse (#1010)

Openverse (Bot)a16947942cea
diff --git a/.github/auto-label.json b/.github/auto-label.json
index e85b03992..43e0d0a1b 100644
--- a/.github/auto-label.json
+++ b/.github/auto-label.json
@@ -1,7 +1,5 @@
{
"rules": {
- "migrations": [
- "**/migrations/**/*"
- ]
+ "migrations": ["**/migrations/**/*"]
}
}
diff --git a/.github/subscribe-to-label.json b/.github/subscribe-to-label.json
index cab54ca30..517d63ef4 100644
--- a/.github/subscribe-to-label.json
+++ b/.github/subscribe-to-label.json
@@ -1,8 +1,4 @@
{
- "WordPress/gutenberg-design": [
- "\ud83d\uddbc\ufe0f aspect: design"
- ],
- "WordPress/openverse": [
- "\ud83d\uddbc\ufe0f aspect: design"
- ]
+ "WordPress/gutenberg-design": ["🖼️ aspect: design"],
+ "WordPress/openverse": ["🖼️ aspect: design"]
}
diff --git a/.github/subscribe_to_label.json b/.github/subscribe_to_label.json
deleted file mode 100644
index cab54ca30..000000000
--- a/.github/subscribe_to_label.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "WordPress/gutenberg-design": [
- "\ud83d\uddbc\ufe0f aspect: design"
- ],
- "WordPress/openverse": [
- "\ud83d\uddbc\ufe0f aspect: design"
- ]
-}
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 770cb4bc2..e8b6d14f8 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -20,10 +20,6 @@ repos:
- id: fix-encoding-pragma
args:
- --remove
- - id: pretty-format-json
- exclude: package(-lock)?\.json
- args:
- - --autofix
- id: requirements-txt-fixer
- repo: https://github.com/PyCQA/isort
@@ -73,9 +69,7 @@ repos:
rev: v2.5.0
hooks:
- id: prettier
- files: ^js/.*$
- - id: prettier
- types: [yaml]
+ exclude: .*\.md$
- repo: https://github.com/koalaman/shellcheck-precommit
rev: v0.8.0
diff --git a/.prettierignore b/.prettierignore
new file mode 100644
index 000000000..4510e68c1
--- /dev/null
+++ b/.prettierignore
@@ -0,0 +1,4 @@
+# Jinja templates
+api/catalog/templates/drf-yasg/redoc.html
+api/docs/_templates/sidebar/brand.html
+api/docs/_templates/page.html
diff --git a/api/catalog/templates/drf-yasg/redoc.html b/api/catalog/templates/drf-yasg/redoc.html
index 576034100..7f77309ff 100644
--- a/api/catalog/templates/drf-yasg/redoc.html
+++ b/api/catalog/templates/drf-yasg/redoc.html
@@ -9,7 +9,7 @@
{% block extra_styles %}
<style>
- img[alt='logo'] {
+ img[alt="logo"] {
padding: 20px; /* same as other sidebar items */
}
</style>