mirror of
https://github.com/RoboSats/robosats.git
synced 2025-07-17 08:13:19 +00:00
Add collect_phrases pre-commit hook; run new collect phrases (#610)
This commit is contained in:
3
.github/pull_request_template.md
vendored
3
.github/pull_request_template.md
vendored
@ -4,5 +4,4 @@ Fixes #<ISSUE_NUMBER>
|
|||||||
This PR introduces/refactors/...
|
This PR introduces/refactors/...
|
||||||
|
|
||||||
## Checklist before merging
|
## 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.
|
- [ ] 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'
|
- '--fix=lf'
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
- id: pretty-format-json
|
- id: pretty-format-json
|
||||||
|
exclude: ^frontend/
|
||||||
args:
|
args:
|
||||||
- '--autofix'
|
- '--autofix'
|
||||||
- '--no-sort-keys'
|
- '--no-sort-keys'
|
||||||
@ -22,15 +23,15 @@ repos:
|
|||||||
- id: check-docstring-first
|
- id: check-docstring-first
|
||||||
- repo: local
|
- repo: local
|
||||||
hooks:
|
hooks:
|
||||||
# - id: collect-phrases
|
- id: collect-phrases
|
||||||
# name: Collect i18n phrases
|
name: Collect i18n phrases
|
||||||
# stages:
|
stages:
|
||||||
# - commit
|
- commit
|
||||||
# - merge-commit
|
- merge-commit
|
||||||
# language: system
|
language: system
|
||||||
# files: ^frontend/
|
files: ^frontend/src/
|
||||||
# types_or: [javascript, jsx, ts, tsx] # uses https://github.com/pre-commit/identify
|
types_or: [javascript, jsx, ts, tsx] # uses https://github.com/pre-commit/identify
|
||||||
# entry: bash -c 'cd frontend/static/locales && python3 collect_phrases.py'
|
entry: bash -c 'cd frontend/static/locales && python3 collect_phrases.py'
|
||||||
- id: prettier-frontend
|
- id: prettier-frontend
|
||||||
name: prettier-frontend
|
name: prettier-frontend
|
||||||
stages:
|
stages:
|
||||||
@ -72,4 +73,4 @@ repos:
|
|||||||
- merge-commit
|
- merge-commit
|
||||||
language: system
|
language: system
|
||||||
types: [python]
|
types: [python]
|
||||||
entry: flake8
|
entry: flake8
|
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
Reference in New Issue
Block a user