mirror of
https://github.com/agateau/pixelwheels.git
synced 2025-10-05 17:32:39 +02:00
pre-commit: run po-update and font-update
This commit is contained in:
5
.github/workflows/main.yml
vendored
5
.github/workflows/main.yml
vendored
@@ -19,6 +19,11 @@ jobs:
|
||||
- name: Install pre-commit
|
||||
run: pipx install pre-commit
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
pip install -r requirements.txt
|
||||
sudo apt-get install -y gettext
|
||||
|
||||
- name: Run pre-commit
|
||||
run: pre-commit run --all
|
||||
|
||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@@ -87,3 +87,4 @@ fastlane/google-play-api.json
|
||||
## Python
|
||||
__pycache__/
|
||||
.conf-backup
|
||||
env.mk
|
||||
|
@@ -27,7 +27,13 @@ repos:
|
||||
- id: isort
|
||||
args: [--profile, black]
|
||||
|
||||
# Java
|
||||
# Check GitHub workflows
|
||||
- repo: https://github.com/python-jsonschema/check-jsonschema
|
||||
rev: 0.23.1
|
||||
hooks:
|
||||
- id: check-github-workflows
|
||||
|
||||
# Local checks
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: codingstyle
|
||||
@@ -36,8 +42,20 @@ repos:
|
||||
language: script
|
||||
files: \.java$
|
||||
|
||||
# Check GitHub workflows
|
||||
- repo: https://github.com/python-jsonschema/check-jsonschema
|
||||
rev: 0.23.1
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: check-github-workflows
|
||||
- id: po-update
|
||||
name: po-update
|
||||
language: system
|
||||
files: \.(java|gdxui)$
|
||||
entry: make po-update
|
||||
pass_filenames: false
|
||||
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: font-update
|
||||
name: font-update
|
||||
language: system
|
||||
files: \.(po|ttc)$
|
||||
entry: make font-update
|
||||
pass_filenames: false
|
||||
|
5
Makefile
5
Makefile
@@ -11,6 +11,9 @@ SHELL := bash
|
||||
MAKEFLAGS += --warn-undefined-variables
|
||||
MAKEFLAGS += --no-builtin-rules
|
||||
|
||||
# Give the user the opportunity to customize environment variables
|
||||
-include ./env.mk
|
||||
|
||||
DESKTOP_JAR=$(CURDIR)/desktop/build/libs/desktop-1.0.jar
|
||||
TOOLS_JAR=$(CURDIR)/tools/build/libs/tools-1.0.jar
|
||||
GRADLEW=./gradlew
|
||||
@@ -21,7 +24,7 @@ endif
|
||||
GAME_CP=com.agateau.pixelwheels
|
||||
EXECUTABLE=pixelwheels
|
||||
|
||||
include version.properties
|
||||
include ./version.properties
|
||||
|
||||
DIST_OUT_BASE_DIR=dist-out
|
||||
DIST_NAME=$(EXECUTABLE)-$(VERSION)
|
||||
|
Reference in New Issue
Block a user