|
1 | 1 | repos: |
2 | | -- repo: https://github.com/pre-commit/pre-commit-hooks |
| 2 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
3 | 3 | rev: v5.0.0 |
4 | 4 | hooks: |
5 | | - - id: trailing-whitespace |
6 | | - - id: check-added-large-files |
| 5 | + - id: trailing-whitespace |
| 6 | + - id: check-added-large-files |
7 | 7 | exclude: '^.+?\.ttf$' |
8 | | - - id: debug-statements |
9 | | - - id: end-of-file-fixer |
| 8 | + - id: debug-statements |
| 9 | + - id: end-of-file-fixer |
10 | 10 | exclude: '^.+?\.json.+?\.yml$' |
11 | | -- repo: https://github.com/PyCQA/flake8 |
| 11 | + - repo: https://github.com/PyCQA/flake8 |
12 | 12 | rev: 7.1.2 |
13 | 13 | hooks: |
14 | | - - id: flake8 |
15 | | -- repo: https://github.com/asottile/reorder_python_imports |
| 14 | + - id: flake8 |
| 15 | + additional_dependencies: [ |
| 16 | + 'flake8-print==5.0.0' |
| 17 | + ] |
| 18 | + - repo: https://github.com/asottile/reorder_python_imports |
16 | 19 | rev: v3.14.0 |
17 | 20 | hooks: |
18 | | - - id: reorder-python-imports |
| 21 | + - id: reorder-python-imports |
19 | 22 | language_version: python3 |
20 | | -- repo: local |
| 23 | + - repo: local |
21 | 24 | hooks: |
22 | | - - id: frontend-lint |
23 | | - name: Linting of JS, Vue, SCSS and CSS files |
24 | | - description: This hook handles all frontend linting for Kolibri Studio |
25 | | - entry: pnpm run lint-frontend:format |
26 | | - language: system |
27 | | - files: \.(js|vue|scss|css)$ |
| 25 | + - id: frontend-lint |
| 26 | + name: Linting of JS, Vue, SCSS and CSS files |
| 27 | + description: This hook handles all frontend linting for Kolibri Studio |
| 28 | + entry: pnpm run lint-frontend:format |
| 29 | + language: system |
| 30 | + files: \.(js|vue|scss|css)$ |
| 31 | + - repo: local |
| 32 | + hooks: |
| 33 | + - id: no-auto-migrations |
| 34 | + name: no auto-named migrations |
| 35 | + entry: We do not allow _auto_ in migration names. Please give the migration a telling name. |
| 36 | + language: fail |
| 37 | + files: .*/migrations/.*_auto_.*\.py$ |
| 38 | + exclude: (?x)^( |
| 39 | + contentcuration/kolibri_content/migrations/0014_auto_20210603_1536.py| |
| 40 | + contentcuration/kolibri_content/migrations/0023_auto_20250417_1516.py| |
| 41 | + contentcuration/kolibri_content/migrations/0007_auto_20200613_0050.py| |
| 42 | + contentcuration/kolibri_content/migrations/0004_auto_20180910_2342.py| |
| 43 | + contentcuration/kolibri_content/migrations/0002_auto_20180327_1414.py| |
| 44 | + contentcuration/kolibri_content/migrations/0022_auto_20240915_1414.py| |
| 45 | + contentcuration/kolibri_content/migrations/0011_auto_20210504_1744.py| |
| 46 | + contentcuration/kolibri_content/migrations/0010_auto_20210202_0604.py| |
| 47 | + contentcuration/kolibri_content/migrations/0018_auto_20220224_2031.py| |
| 48 | + contentcuration/kolibri_content/migrations/0019_auto_20230207_0116.py| |
| 49 | + contentcuration/kolibri_content/migrations/0005_auto_20190424_1709.py| |
| 50 | + contentcuration/kolibri_content/migrations/0006_auto_20191028_2325.py| |
| 51 | + contentcuration/kolibri_content/migrations/0015_auto_20210707_1606.py| |
| 52 | + contentcuration/kolibri_content/migrations/0013_auto_20210519_1759.py| |
| 53 | + contentcuration/kolibri_content/migrations/0012_auto_20210511_1605.py| |
| 54 | + contentcuration/kolibri_content/migrations/0021_auto_20240612_1847.py| |
| 55 | + contentcuration/search/migrations/0002_auto_20201215_2110.py| |
| 56 | + contentcuration/contentcuration/migrations/0001_squashed_0094_auto_20180910_2342.py| |
| 57 | + contentcuration/contentcuration/migrations/0002_auto_20181220_1734.py| |
| 58 | + contentcuration/contentcuration/migrations/0102_auto_20190904_1627.py| |
| 59 | + contentcuration/contentcuration/migrations/0110_auto_20200511_2245.py| |
| 60 | + contentcuration/contentcuration/migrations/0104_auto_20191028_2325.py| |
| 61 | + contentcuration/contentcuration/migrations/0111_auto_20200513_2252.py| |
| 62 | + contentcuration/contentcuration/migrations/0130_auto_20210706_2005.py| |
| 63 | + contentcuration/contentcuration/migrations/0098_auto_20190424_1709.py| |
| 64 | + contentcuration/contentcuration/migrations/0128_auto_20210511_1605.py| |
| 65 | + contentcuration/contentcuration/migrations/0112_auto_20200613_0050.py| |
| 66 | + contentcuration/contentcuration/migrations/0127_auto_20210504_1744.py| |
| 67 | + contentcuration/contentcuration/migrations/0106_auto_20191113_0217.py| |
| 68 | + contentcuration/contentcuration/migrations/0103_auto_20190905_0408.py| |
| 69 | + contentcuration/contentcuration/migrations/0121_auto_20210305_2028.py| |
| 70 | + contentcuration/contentcuration/migrations/0133_auto_20220124_2149.py| |
| 71 | + contentcuration/contentcuration/migrations/0132_auto_20210708_0011.py| |
| 72 | + contentcuration/contentcuration/migrations/0120_auto_20210128_1646.py| |
| 73 | + contentcuration/contentcuration/migrations/0131_auto_20210707_2326.py| |
| 74 | + contentcuration/contentcuration/migrations/0126_auto_20210219_2314.py| |
| 75 | + contentcuration/contentcuration/migrations/0107_auto_20191115_2344.py| |
| 76 | + contentcuration/contentcuration/migrations/0151_auto_20250417_1516.py| |
| 77 | + contentcuration/contentcuration/migrations/0099_auto_20190715_2201.py| |
| 78 | + contentcuration/contentcuration/migrations/0123_auto_20210407_0057.py| |
| 79 | + contentcuration/contentcuration/migrations/0129_auto_20210519_2213.py| |
| 80 | + contentcuration/contentcuration/migrations/0109_auto_20191202_1759.py| |
| 81 | + contentcuration/kolibri_public/migrations/0004_auto_20240612_1847.py| |
| 82 | + contentcuration/kolibri_public/migrations/0006_auto_20250417_1516.py| |
| 83 | + )$ |
| 84 | + # Always keep black as the final hook so it reformats any other reformatting. |
| 85 | + - repo: https://github.com/python/black |
| 86 | + rev: 20.8b1 |
| 87 | + hooks: |
| 88 | + - id: black |
| 89 | + additional_dependencies: [ |
| 90 | + 'click==8.0.4' |
| 91 | + ] |
0 commit comments