mirror of
https://github.com/RoboSats/robosats.git
synced 2024-12-13 19:06:26 +00:00
Add collect_phrases pre-commit hook; run new collect phrases (#610)
This commit is contained in:
parent
6a1c8c32ef
commit
cdc5f3deef
1
.github/pull_request_template.md
vendored
1
.github/pull_request_template.md
vendored
@ -5,4 +5,3 @@ This PR introduces/refactors/...
|
||||
|
||||
## Checklist before merging
|
||||
- [ ] Install [pre-commit](https://pre-commit.com/#installation) and initialize it: `pip install pre-commit`, then `pre-commit install`. Pre-commit installs git hooks that automatically check the codebase. If pre-commit fails when you commit your changes, please fix the problems it points out.
|
||||
- [ ] If I added new phrases to the user interface, I have ran `cd frontend/static/locales; python collect_phrases.py` to collect them for translation.
|
@ -14,6 +14,7 @@ repos:
|
||||
- '--fix=lf'
|
||||
- id: trailing-whitespace
|
||||
- id: pretty-format-json
|
||||
exclude: ^frontend/
|
||||
args:
|
||||
- '--autofix'
|
||||
- '--no-sort-keys'
|
||||
@ -22,15 +23,15 @@ repos:
|
||||
- id: check-docstring-first
|
||||
- repo: local
|
||||
hooks:
|
||||
# - id: collect-phrases
|
||||
# name: Collect i18n phrases
|
||||
# stages:
|
||||
# - commit
|
||||
# - merge-commit
|
||||
# language: system
|
||||
# files: ^frontend/
|
||||
# types_or: [javascript, jsx, ts, tsx] # uses https://github.com/pre-commit/identify
|
||||
# entry: bash -c 'cd frontend/static/locales && python3 collect_phrases.py'
|
||||
- id: collect-phrases
|
||||
name: Collect i18n phrases
|
||||
stages:
|
||||
- commit
|
||||
- merge-commit
|
||||
language: system
|
||||
files: ^frontend/src/
|
||||
types_or: [javascript, jsx, ts, tsx] # uses https://github.com/pre-commit/identify
|
||||
entry: bash -c 'cd frontend/static/locales && python3 collect_phrases.py'
|
||||
- id: prettier-frontend
|
||||
name: prettier-frontend
|
||||
stages:
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user