Skip to content

Commit

Permalink
Add end-of-file-fixer pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
replaceafill committed Mar 16, 2024
1 parent 827cfca commit 2a97626
Show file tree
Hide file tree
Showing 31 changed files with 35 additions and 30 deletions.
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,8 @@ repos:
(?x)^(
locale/.*
)
- id: "end-of-file-fixer"
exclude: |
(?x)^(
locale/.*
)
2 changes: 1 addition & 1 deletion dev-manual/api/_code/admin_levels_of_desc_response.curl
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@
{
"0a05620c-1e35-11ea-887c-fa163e461c4e": "Subseries"
}
]
]
2 changes: 1 addition & 1 deletion dev-manual/api/_code/approve_transfer_response.curl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"message": "Approval successful.",
"uuid": "a8791a46-ac73-4c7d-8c60-0673524226e3"
}
}
2 changes: 1 addition & 1 deletion dev-manual/api/_code/completed_ingest_response.curl
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
"de2692d2-05c6-4762-9708-38046699d870",
"ee1ab6d9-0cb5-4641-8e7e-198ed2fb9db4"
]
}
}
2 changes: 1 addition & 1 deletion dev-manual/api/_code/completed_response.curl
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
"e6efb7fb-eb27-4def-963e-31dfc2d55d61",
"f4e12ba4-d2e2-4a4a-973c-7babd1da0cc4"
]
}
}
2 changes: 1 addition & 1 deletion dev-manual/api/_code/fetch_levels.curl
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ curl -X GET \
-H 'Postman-Token: a6a5e394-ff95-46ff-9aca-233386024f20,e40e9ab1-3cb0-4de4-8da8-c6aeea862ea0' \
-H 'User-Agent: PostmanRuntime/7.15.0' \
-H 'accept-encoding: gzip, deflate' \
-H 'cache-control: no-cache'
-H 'cache-control: no-cache'
2 changes: 1 addition & 1 deletion dev-manual/api/_code/fetch_levels_response.curl
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@
{
"bfbc21ca-1e3b-11ea-887c-fa163e461c4e": "Subseries"
}
]
]
2 changes: 1 addition & 1 deletion dev-manual/api/_code/hide_request.curl
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ curl -X DELETE \
http://my_archivematica_instance.archivematica.org/api/transfer/status/
89fd478d-c896-461a-baec-5d1faf661020/ \
-H 'Authorization: ApiKey [_your_username_]:[_your_ApiKey_]' \
-H 'Host: my_archivematica_instance.archivematica.org'
-H 'Host: my_archivematica_instance.archivematica.org'
2 changes: 1 addition & 1 deletion dev-manual/api/_code/hide_response.curl
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"removed": true
}
}
2 changes: 1 addition & 1 deletion dev-manual/api/_code/list_transfer.curl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
curl -X GET \
http://my_archivematica_instance.archivematica.org/api/transfer/unapproved/ \
-H 'Authorization: ApiKey [_your_username_]:[_your_ApiKey_]' \
-H 'Content-Type: application/x-www-form-urlencoded'
-H 'Content-Type: application/x-www-form-urlencoded'
2 changes: 1 addition & 1 deletion dev-manual/api/_code/list_transfer_response.curl
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
"uuid": "3ed192dc-8fa4-4698-ab03-00688a4a2553"
}
]
}
}
2 changes: 1 addition & 1 deletion dev-manual/api/_code/list_transfer_unit_request.curl
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
-H 'accept-encoding: gzip, deflate' \
-H 'authorization: ApiKey analyst:oohah5chashie8OwEih6udie4choo3la' \
-H 'cookie: csrftoken=sb52U8S35EpdB2T1K4lWXFl5jNnOrXrA' \
-b csrftoken=sb52U8S35EpdB2T1K4lWXFl5jNnOrXrA
-b csrftoken=sb52U8S35EpdB2T1K4lWXFl5jNnOrXrA
2 changes: 1 addition & 1 deletion dev-manual/api/_code/list_transfer_unit_response.curl
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
"microservice": "Store AIP",
"name": "Store the AIP"
}
]
]
2 changes: 1 addition & 1 deletion dev-manual/api/_code/reingest_aip_response.curl
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
for re-ingest",
"reingest_uuid": "affa2d71-3fdb-423f-8fe2-91c8d5ecc324",
"status_code": 202
}
}
2 changes: 1 addition & 1 deletion dev-manual/api/_code/sips-waiting_response.curl
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
"sip_uuid": "e5a5808d-2ee8-4896-9ed5-1b692feb9b87"
}
]
}
}
2 changes: 1 addition & 1 deletion dev-manual/api/_code/ss_browse_space_path_request.curl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
curl --location --request GET 'http://test-machine.archivematica.net:8000/
api/v2/space/218caeb7-fd59-4b7b-99b1-f5771a2dd34f/' \
--header 'Authorization: ApiKey test-user:ow7ioGh2reephua8uPaiWee6EiHeev9u' \
--header 'Cookie: csrftoken=sb52U8S35EpdB2T1K4lWXFl5jNnOrXrA'
--header 'Cookie: csrftoken=sb52U8S35EpdB2T1K4lWXFl5jNnOrXrA'
2 changes: 1 addition & 1 deletion dev-manual/api/_code/ss_browse_space_path_response.curl
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
"used": "186549173",
"uuid": "218caeb7-fd59-4b7b-99b1-f5771a2dd34f",
"verified": false
}
}
2 changes: 1 addition & 1 deletion dev-manual/api/_code/ss_get_all_spaces_request.curl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
curl --location --request GET 'http://test-machine.archivematica.net:8000/
api/v2/space/' \
--header 'Authorization: ApiKey test-user:ow7ioGh2reephua8uPaiWee6EiHeev9u' \
--header 'Cookie: csrftoken=sb52U8S35EpdB2T1K4lWXFl5jNnOrXrA'
--header 'Cookie: csrftoken=sb52U8S35EpdB2T1K4lWXFl5jNnOrXrA'
2 changes: 1 addition & 1 deletion dev-manual/api/_code/ss_get_all_spaces_response.curl
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@
"verified": false
}
]
}
}
2 changes: 1 addition & 1 deletion dev-manual/api/_code/ss_get_all_spaces_responses.curl
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@
"verified": false
}
]
}
}
2 changes: 1 addition & 1 deletion dev-manual/api/_code/ss_get_pipeline_details_request.curl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
curl --location --request GET 'http://test-machine.archivematica.net:8000/
api/v2/pipeline/?uuid=a64e061a-5688-49b5-95c1-0b6885c40c04' \
--header 'Authorization: ApiKey test-user:ow7ioGh2reephua8uPaiWee6EiHeev9u' \
--header 'Cookie: csrftoken=sb52U8S35EpdB2T1K4lWXFl5jNnOrXrA'
--header 'Cookie: csrftoken=sb52U8S35EpdB2T1K4lWXFl5jNnOrXrA'
2 changes: 1 addition & 1 deletion dev-manual/api/_code/ss_get_pipeline_details_response.curl
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
"uuid": "a64e061a-5688-49b5-95c1-0b6885c40c04"
}
]
}
}
2 changes: 1 addition & 1 deletion dev-manual/api/_code/ss_get_space_details_request.curl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
curl --location --request GET 'http://test-machine.archivematica.net:8000/
api/v2/space/218caeb7-fd59-4b7b-99b1-f5771a2dd34f/' \
--header 'Authorization: ApiKey test-user:ow7ioGh2reephua8uPaiWee6EiHeev9u' \
--header 'Cookie: csrftoken=sb52U8S35EpdB2T1K4lWXFl5jNnOrXrA'
--header 'Cookie: csrftoken=sb52U8S35EpdB2T1K4lWXFl5jNnOrXrA'
2 changes: 1 addition & 1 deletion dev-manual/api/_code/ss_get_space_details_response.curl
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
"used": "186549173",
"uuid": "218caeb7-fd59-4b7b-99b1-f5771a2dd34f",
"verified": false
}
}
2 changes: 1 addition & 1 deletion dev-manual/api/_code/start_transfer_response.curl
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ Content-Language: en
"path": "/var/archivematica/sharedDirectory/watchedDirectories/
activeTransfers/standardTransfer/mc_api_transfer_1/",
"message": "Copy successful."
}
}
2 changes: 1 addition & 1 deletion dev-manual/api/_code/status_response.curl
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
successfully.",
"type": "transfer",
"uuid": "89fd478d-c896-461a-baec-5d1faf661020"
}
}
2 changes: 1 addition & 1 deletion dev-manual/api/_code/task_request.curl
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ curl -X GET \
-H 'accept-encoding: gzip, deflate' \
-H 'authorization: ApiKey test:oohah5chashie8OwEih6udie4choo3la' \
-H 'cookie: csrftoken=sb52U8S35EpdB2T1K4lWXFl5jNnOrXrA' \
-b csrftoken=sb52U8S35EpdB2T1K4lWXFl5jNnOrXrA
-b csrftoken=sb52U8S35EpdB2T1K4lWXFl5jNnOrXrA
2 changes: 1 addition & 1 deletion dev-manual/api/_code/task_response.curl
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
"file_uuid": "5be8e4d0-6819-420f-ad17-b8ebd44e728d",
"duration": 3,
"time_started": "2020-01-17T00:44:37"
}
}
2 changes: 1 addition & 1 deletion user-manual/transfer/_csv/rights.csv
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ file,basis,status,determination_date,jurisdiction,start_date,end_date,terms,cita
objects/beihai.tif ,copyright ,copyrighted ,01/01/2011,ca ,01/01/2011,31/12/2013,Terms of copyright. ,,Note about copyright. ,disseminate ,Disallow,01/01/2011,31/12/2013,Grant note ,Copyright documentation identifier type. ,Copyright documentation identifier value. ,Copyright documentation identifier role.
objects/beihai.tif ,copyright ,copyrighted ,01/01/2011,ca ,01/01/2011,31/12/2013,Terms of copyright. ,,Note about copyright. ,use ,Disallow,01/01/2011,31/12/2013,Grant note ,Copyright documentation identifier type. ,Copyright documentation identifier value. ,Copyright documentation identifier role.
objects/audio/bird.mp3,license , , , ,09/09/2000,08/09/2010,Terms of license. ,,migrate ,allow ,Conditional, ,2000-09-00 ,Grant note ,License documentation identifier type. ,License documentation identifier value. ,License documentation identifier role.
objects/audio/bird.mp3,statute,,01/01/2003,ca ,01/01/2003,,,Act 2003 no. 12 part 3 s14,note about statute,disseminate ,Conditional,01/01/2011,01/01/2050,Grant note ,Statute documentation identifier type.,Statute documentation identifier value.,Statute documentation identifier role
objects/audio/bird.mp3,statute,,01/01/2003,ca ,01/01/2003,,,Act 2003 no. 12 part 3 s14,note about statute,disseminate ,Conditional,01/01/2011,01/01/2050,Grant note ,Statute documentation identifier type.,Statute documentation identifier value.,Statute documentation identifier role
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@
</oai_dc:dc>
</mets:xmlData>
</mets:mdWrap>
</mets:dmdSec>
</mets:dmdSec>
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@
</oai_dc:dc>
</mets:xmlData>
</mets:mdWrap>
</mets:dmdSec>
</mets:dmdSec>

0 comments on commit 2a97626

Please sign in to comment.