Skip to content

Commit

Permalink
Add trailing-whitespace pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
replaceafill committed Mar 15, 2024
1 parent 13285ae commit 470040d
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 6 deletions.
8 changes: 8 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,11 @@ repos:
(?x)^(
style_guide\.md
)
- repo: "https://github.com/pre-commit/pre-commit-hooks"
rev: "v4.5.0"
hooks:
- id: "trailing-whitespace"
exclude: |
(?x)^(
locale/.*
)
1 change: 0 additions & 1 deletion dev-manual/api/_code/admin_levels_of_desc_req.curl
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@
-H 'Cache-Control: no-cache' \
-H 'Connection: keep-alive' \
-H 'Host: mytestinstance.archivematica.net'

1 change: 0 additions & 1 deletion dev-manual/api/_code/completed_request.curl
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ curl -X GET \
http://test.archivematica.org/api/transfer/completed/ \
-H 'Accept: */*' \
-H 'Authorization: ApiKey [_your_username_]:[_your_ApiKey_]' \

4 changes: 2 additions & 2 deletions dev-manual/api/_code/reingest_aip_response.curl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"error": false,
"message": "Package 868a7ecd-c31b-4773-ad6d-d736a35b8a6e sent to pipeline
Archivematica on test-vm (85f9db99-b187-47c3-9b5b-abc123)
"message": "Package 868a7ecd-c31b-4773-ad6d-d736a35b8a6e sent to pipeline
Archivematica on test-vm (85f9db99-b187-47c3-9b5b-abc123)
for re-ingest",
"reingest_uuid": "affa2d71-3fdb-423f-8fe2-91c8d5ecc324",
"status_code": 202
Expand Down
1 change: 0 additions & 1 deletion dev-manual/api/_code/sips-waiting_request.curl
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ curl -X GET \
http://mytestinstance.archivematica.net/api/ingest/waiting \
-H 'Authorization: ApiKey admin:ooha0sshie8O' \
-H 'Host: mytestinstsance.archivematica.net' \

1 change: 0 additions & 1 deletion dev-manual/api/_code/status_request.curl
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@ curl -X GET \
status/89fd478d-c896-461a-baec-5d1faf661020/ \
-H 'Authorization: ApiKey [_your_username_]:[_your_ApiKey_]' \
-H 'Host: my_archivematica_instance.archivematica.org'

0 comments on commit 470040d

Please sign in to comment.