Skip to content

Commit

Permalink
Fix typescript pre-commit hook file inclusion #11249
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtylerwalls committed Aug 13, 2024
1 parent ac76107 commit 9ce801d
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 7 deletions.
8 changes: 6 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
---
repos:

- repo: meta
hooks:
- id: check-hooks-apply

- repo: https://github.com/psf/black
rev: 24.4.2
hooks:
Expand All @@ -22,9 +26,9 @@ repos:
files: arches/app/src
- id: typescript
name: typescript
entry: npm run ts:check
entry: bash -c 'npm run ts:check'
language: system
types: [
types_or: [
"ts",
"vue",
]
8 changes: 6 additions & 2 deletions arches/install/arches-templates/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
---
repos:

- repo: meta
hooks:
- id: check-hooks-apply

- repo: https://github.com/psf/black
rev: 24.4.2
hooks:
Expand All @@ -22,9 +26,9 @@ repos:
files: {{ project_name }}/src
- id: typescript
name: typescript
entry: npm run ts:check
entry: bash -c 'npm run ts:check'
language: system
types: [
types_or: [
"ts",
"vue",
]
2 changes: 1 addition & 1 deletion arches/install/arches-templates/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ dev = [
"sst",
"coverage",
"django-silk==5.1.0",
"pre-commit",
"pre-commit==3.8.0",
"black==24.4.2",
]

Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# these tests can be run from the command line via
# python manage.py test tests/views --pattern="*.py" --settings="tests.test_settings"
# python manage.py test tests.search_indexes --pattern="*.py" --settings="tests.test_settings"
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ dev = [
"coverage",
"django-silk==5.1.0",
"livereload",
"pre-commit",
"pre-commit==3.8.0",
"sst",
]

Expand Down

0 comments on commit 9ce801d

Please sign in to comment.