-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
14 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,13 +25,10 @@ repos: | |
- id: fix-encoding-pragma | ||
args: | ||
- --remove | ||
|
||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.0.1 | ||
hooks: | ||
- id: check-docstring-first | ||
- id: requirements-txt-fixer | ||
|
||
# Use the `.isort.cfg` file to configure project-specific requirements. | ||
- repo: https://github.com/PyCQA/isort | ||
rev: 5.9.1 | ||
hooks: | ||
|
@@ -54,6 +51,7 @@ repos: | |
args: | ||
- --py310-plus | ||
|
||
# Use the `.flake8` file to configure project-specific requirements. | ||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 3.9.2 | ||
hooks: | ||
|
@@ -71,7 +69,7 @@ repos: | |
hooks: | ||
- id: eslint | ||
files: ^js/.*$ | ||
'types': [file] # ESLint only accepts [javascript] by default | ||
'types': [file] # ESLint only accepts [javascript] by default. | ||
args: | ||
- --ignore-path=.gitignore | ||
- --ignore-path=.eslintignore | ||
|
@@ -80,11 +78,12 @@ repos: | |
- [email protected] | ||
- [email protected] | ||
|
||
# Use the `.prettierignore` and `.prettier.config.js` files to configure project-specific requirements. | ||
- repo: https://github.com/pre-commit/mirrors-prettier | ||
rev: v2.6.0 | ||
hooks: | ||
- id: prettier | ||
exclude: \.md$ | ||
exclude: \.md$ # TODO: https://github.com/WordPress/openverse/issues/333 | ||
additional_dependencies: | ||
- [email protected] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,14 +29,13 @@ repos: | |
- id: fix-encoding-pragma | ||
args: | ||
- --remove | ||
|
||
{% if contains_python_code | default(true) %} | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.0.1 | ||
hooks: | ||
{% if contains_python_code | default(true) %} | ||
- id: check-docstring-first | ||
- id: requirements-txt-fixer | ||
{% endif %} | ||
|
||
{% if contains_python_code | default(true) %} | ||
# Use the `.isort.cfg` file to configure project-specific requirements. | ||
- repo: https://github.com/PyCQA/isort | ||
rev: 5.9.1 | ||
hooks: | ||
|
@@ -59,6 +58,7 @@ repos: | |
args: | ||
- --py310-plus | ||
|
||
# Use the `.flake8` file to configure project-specific requirements. | ||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 3.9.2 | ||
hooks: | ||
|
@@ -79,9 +79,9 @@ repos: | |
- id: eslint | ||
files: {{ eslint_files | default('^js/.*$') }} | ||
{% if eslint_exclude %} | ||
exclude: {{ eslint_exclude }} | ||
exclude: {{ eslint_exclude }} # ESLint raises warnings for ignored files. | ||
{% endif %} | ||
'types': [file] # ESLint only accepts [javascript] by default | ||
'types': [file] # ESLint only accepts [javascript] by default. | ||
args: | ||
- --ignore-path=.gitignore | ||
- --ignore-path=.eslintignore | ||
|
@@ -93,11 +93,12 @@ repos: | |
{% endblock %} | ||
|
||
{% endif %} | ||
# Use the `.prettierignore` and `.prettier.config.js` files to configure project-specific requirements. | ||
- repo: https://github.com/pre-commit/mirrors-prettier | ||
rev: v2.6.0 | ||
hooks: | ||
- id: prettier | ||
exclude: \.md$ | ||
exclude: \.md$ # TODO: https://github.com/WordPress/openverse/issues/333 | ||
additional_dependencies: | ||
{% block prettier_dependencies %} | ||
- [email protected] | ||
|