Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Unify pre-commit config across repos (#867)
Dhruv Bhanushali29985091d05a
diff --git a/.github/ISSUE_TEMPLATE/image_provider_api_integration_request.yml b/.github/ISSUE_TEMPLATE/image_provider_api_integration_request.ymlindex eacd01595..13b374ee9 100644--- a/.github/ISSUE_TEMPLATE/image_provider_api_integration_request.yml+++ b/.github/ISSUE_TEMPLATE/image_provider_api_integration_request.yml@@ -40,7 +40,7 @@ body:attributes:label: Checklist to complete before beginning developmentdescription: |- Please do not modify this section. No development should be done on a Provider API Script until the following info is gathered:+ Please do not modify this section. No development should be done on a Provider API Script until the following info is gathered:options:- label: Verify there is a way to retrieve the entire relevant portion of the provider's collection in a systematic way via their API.required: falsediff --git a/.pre-commit-config.yaml b/.pre-commit-config.yamlindex c683244bc..770cb4bc2 100644--- a/.pre-commit-config.yaml+++ b/.pre-commit-config.yaml@@ -1,10 +1,11 @@-exclude: archive+exclude: Pipfile\.lock|migrations|\.idea|node_modules|archiverepos:- repo: https://github.com/pre-commit/pre-commit-hooksrev: v4.0.1hooks:- id: trailing-whitespace+ args: [--markdown-linebreak-ext=md]- id: check-docstring-first- id: check-executables-have-shebangs- id: check-json@@ -20,6 +21,7 @@ repos:args:- --remove- id: pretty-format-json+ exclude: package(-lock)?\.jsonargs:- --autofix- id: requirements-txt-fixer@@ -28,7 +30,6 @@ repos:rev: 5.9.1hooks:- id: isort- name: Run isort to sort importsfiles: \.py$exclude: ^build/.*$|^.tox/.*$|^venv/.*$args:@@ -47,22 +48,36 @@ repos:args:- --py310-plus- - repo: https://gitlab.com/pycqa/flake8+ - repo: https://github.com/PyCQA/flake8rev: 3.9.2hooks:- - id: flake8- args:- - --per-file-ignores=test_*:E501- - --max-line-length=88- - --ignore=E203,W503+ - id: flake8- repo: https://github.com/ambv/blackrev: 22.3.0hooks:- - id: black- args:- - --safe+ - id: black+ args:+ - --safe++ - repo: https://github.com/pre-commit/mirrors-eslint+ rev: v8.3.0+ hooks:+ - id: eslint+ files: ^js/.*$+ additional_dependencies:++ - repo: https://github.com/pre-commit/mirrors-prettier+ rev: v2.5.0+ hooks:+ - id: prettier+ files: ^js/.*$+ - id: prettier+ types: [yaml]+- repo: https://github.com/koalaman/shellcheck-precommitrev: v0.8.0hooks:- - id: shellcheck+ - id: shellcheckdiff --git a/docker-compose.override.yml b/docker-compose.override.ymlindex 38dc8a801..ffd5daf9b 100644--- a/docker-compose.override.yml+++ b/docker-compose.override.yml@@ -1,4 +1,4 @@-version: '3'+version: "3"services:# Services only needed for local developmentdiff --git a/docker-compose.yml b/docker-compose.ymlindex 78c5cdf38..c0885e646 100644--- a/docker-compose.yml+++ b/docker-compose.yml@@ -1,7 +1,6 @@-version: '3'+version: "3"services:-webserver:image: ghcr.io/wordpress/openverse-catalog:${DOCKER_IMAGE_TAG:-latest}env_file: .env