-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cdc577c
commit 7e9a37c
Showing
19 changed files
with
145 additions
and
187 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Lint | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.11' | ||
cache: pip | ||
- name: check sort imports with isort | ||
uses: isort/isort-action@v1 | ||
with: | ||
configuration: "--check-only --diff --verbose" | ||
sortPaths: "./myid ./tests" | ||
|
||
- name: check code formatting with black | ||
uses: psf/black@stable | ||
with: | ||
options: "--check --verbose" | ||
src: "./myid ./tests" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
repos: | ||
# - repo: https://github.com/pycqa/isort | ||
# rev: 5.12.0 | ||
# hooks: | ||
# - id: isort | ||
|
||
- repo: https://github.com/psf/black | ||
rev: 23.3.0 | ||
hooks: | ||
- id: black | ||
# https://pre-commit.com/#top_level-default_language_version | ||
language_version: python3.11 | ||
args: [--line-length=120] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
class APIPath: | ||
# IV WAS | ||
# GET | ||
R_DID = '/v1/did/' | ||
GET_VC = '/v1/credential' | ||
IS_VALID_VC = '/v1/credential/isValid' | ||
R_DID = "/v1/did/" | ||
GET_VC = "/v1/credential" | ||
IS_VALID_VC = "/v1/credential/isValid" | ||
|
||
# POST | ||
C_DID = '/v1/did/create' | ||
U_DID = '/v1/did/update' | ||
REG_VC = '/v1/credential/register' | ||
REV_VC = '/v1/credential/revoke' | ||
C_DID = "/v1/did/create" | ||
U_DID = "/v1/did/update" | ||
REG_VC = "/v1/credential/register" | ||
REV_VC = "/v1/credential/revoke" | ||
|
||
ISS_VC_LOG = '/v1/log/issueCredential' | ||
ISS_VP_LOG = '/v1/log/issuePresentation' | ||
VRF_VP_LOG = '/v1/log/verifyPresentation' | ||
ISS_VC_LOG = "/v1/log/issueCredential" | ||
ISS_VP_LOG = "/v1/log/issuePresentation" | ||
VRF_VP_LOG = "/v1/log/verifyPresentation" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.