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

Added SCRUBBER_VALIDATION_WHITELIST and excluded Django core test model #56

Merged

Conversation

GitRon
Copy link
Contributor

@GitRon GitRon commented Aug 19, 2024

No description provided.

@lociii
Copy link
Member

lociii commented Aug 20, 2024

Thanks for the contribution. Just a few questions about it.

@GitRon
Copy link
Contributor Author

GitRon commented Aug 20, 2024

@lociii Sure! Where did you post the questions? 🙂

django_scrubber/__init__.py Show resolved Hide resolved

if model_path in whitelisted_models:
print(f'Model {model_path!r} was excluded via \'SCRUBBER_VALIDATION_WHITELIST\' and will '
f'not be validated.')
Copy link
Member

Choose a reason for hiding this comment

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

f-string is unnecessary here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The !r notation takes care of the ticks, don't you think that's a plus?

Copy link
Member

Choose a reason for hiding this comment

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

Sorry, I just meant the second line of the string.
f'not be validated.' could be 'not be validated.'

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed.

@lociii
Copy link
Member

lociii commented Aug 20, 2024

@lociii Sure! Where did you post the questions? 🙂

Sorry. Forgot to finish the review.

Copy link
Contributor Author

@GitRon GitRon left a comment

Choose a reason for hiding this comment

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

Thanks for the review! Here are my answers.

@lociii
Copy link
Member

lociii commented Aug 20, 2024

Great. Thanks. I'll make a new release later today.

@lociii lociii merged commit ef1538e into RegioHelden:master Aug 20, 2024
35 checks passed
@GitRon GitRon deleted the feature/scrubber-validation-whitelist-added branch August 20, 2024 09:03
@GitRon
Copy link
Contributor Author

GitRon commented Aug 20, 2024

Great. Thanks. I'll make a new release later today.

Awesome! Thanks a lot! 💪

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.

2 participants