Skip to content

Conversation

@erosselli
Copy link
Collaborator

@erosselli erosselli commented Mar 6, 2025

Description

Bumps validators version 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 /event endpoint still worked. Tested with a valid URL and an invalid URL in the endpoint field of the payload.
I also added a unit test for this.

@erosselli erosselli force-pushed the LJ-421-bump-validators branch from 82f0c99 to f9fc853 Compare March 6, 2025 14:59
Comment on lines +52 to +60
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!"

Copy link
Collaborator Author

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

Copy link
Collaborator

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!

@erosselli erosselli requested a review from adamsachs March 6, 2025 15:05
Copy link
Collaborator

@adamsachs adamsachs left a 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 👍

Comment on lines +52 to +60
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!"

Copy link
Collaborator

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!

@erosselli erosselli merged commit 22f8e5f into main Mar 6, 2025
7 checks passed
@erosselli erosselli deleted the LJ-421-bump-validators branch March 6, 2025 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants