Skip to content
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

fix: accept preset arg standardise-validate #119

Merged
merged 5 commits into from
Aug 30, 2022

Conversation

amfage
Copy link
Contributor

@amfage amfage commented Aug 29, 2022

No description provided.

@amfage amfage marked this pull request as ready for review August 29, 2022 23:11
@amfage amfage requested a review from a team as a code owner August 29, 2022 23:11

start_standardising(source, arguments.preset, concurrency)
source = parse_source()
start_standardising(source, "lzw", 1)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this also be able to run with webp and mutlithreaded?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we agreed to revisit that when there was a need to run standardise alone. Otherwise mypy complains about code duplication.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mypy or pylint?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it time to disable that lint rule? seems very onerous

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

another approach would be to allow x lines of duplicated code

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not allowing 4 lines of duplicated code seems like a overly strict rule?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've reverted the standardising script to take arguments, pylint seems happy so 🤷

@kodiakhq kodiakhq bot merged commit aa86be8 into master Aug 30, 2022
@kodiakhq kodiakhq bot deleted the fix/allow-webp-standardising-validation branch August 30, 2022 02:15
@github-actions github-actions bot mentioned this pull request Aug 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants