-
Notifications
You must be signed in to change notification settings - Fork 2
LJ-421 Bump validators version #105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
82f0c99 to
f9fc853
Compare
| lint: | ||
| @echo "Running all static checks..." | ||
| @$(RUN_NO_DEPS) black --exclude="sdk/python/_version\.py" fideslog/ tests/ | ||
| @$(RUN_NO_DEPS) isort fideslog/ tests/ | ||
| @$(RUN_NO_DEPS) mypy | ||
| @$(RUN_NO_DEPS) pylint fideslog/ | ||
| @$(RUN_NO_DEPS) xenon fideslog --max-absolute B --max-modules B --max-average A --ignore "tests" --exclude "fideslog/sdk/python/_version.py" | ||
| @echo "Completed all static checks!" | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there was no command to run formatters all together, and the ones to run black / isort individually are used for CI and have the --check flag so they don't actually format the files , so I added this command
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
leaving the world (fideslog) a better place than you found it!
adamsachs
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice, thanks for taking the time to do this and unblock other things 👍
| lint: | ||
| @echo "Running all static checks..." | ||
| @$(RUN_NO_DEPS) black --exclude="sdk/python/_version\.py" fideslog/ tests/ | ||
| @$(RUN_NO_DEPS) isort fideslog/ tests/ | ||
| @$(RUN_NO_DEPS) mypy | ||
| @$(RUN_NO_DEPS) pylint fideslog/ | ||
| @$(RUN_NO_DEPS) xenon fideslog --max-absolute B --max-modules B --max-average A --ignore "tests" --exclude "fideslog/sdk/python/_version.py" | ||
| @echo "Completed all static checks!" | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
leaving the world (fideslog) a better place than you found it!
Description
Bumps
validatorsversion to 0.43 and adds a test for the URL validation it performs.I also had to update our github action yaml because we were using a deprecated action that no longer runs.
Testing
To test the change, I ran the api server locally and made sure the
POST /eventendpoint still worked. Tested with a valid URL and an invalid URL in theendpointfield of the payload.I also added a unit test for this.