Skip to content

Commit d39a0fc

Browse files
authoredDec 14, 2023
Add linter for translations (CTFd#2440)
* Add dennis linter for translations
1 parent cfd814b commit d39a0fc

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed
 

‎.github/workflows/lint.yml

+4
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,7 @@ jobs:
4242
python -m pip install docker-compose==1.26.0
4343
docker-compose -f docker-compose.yml config
4444
45+
- name: Lint translations
46+
run: |
47+
make translations-lint
48+

‎Makefile

+4-1
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,7 @@ translations-update:
4242
pybabel update --ignore-obsolete -i messages.pot -d CTFd/translations
4343

4444
translations-compile:
45-
pybabel compile -f -d CTFd/translations
45+
pybabel compile -f -d CTFd/translations
46+
47+
translations-lint:
48+
dennis-cmd lint CTFd/translations

‎linting.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
black==22.3.0
22
isort==4.3.21
33
ruff==0.0.260
4+
dennis==1.1.0

0 commit comments

Comments
 (0)