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

Support for detecting Faker unsafe naive datetimes #8

Open
BartlomiejSkwira opened this issue Sep 29, 2022 · 0 comments
Open

Support for detecting Faker unsafe naive datetimes #8

BartlomiejSkwira opened this issue Sep 29, 2022 · 0 comments

Comments

@BartlomiejSkwira
Copy link

BartlomiejSkwira commented Sep 29, 2022

Would it be possible to also lint datetimes from Faker? It has a whole provider for datetimes https://faker.readthedocs.io/en/master/providers/faker.providers.date_time.html?highlight=future_datetime

For example this usecase:

FAKE = Faker()
FAKE.future_datetime()

Would fail linting with a message The use of Faker().future_datetime() is not allowed. Use Faker().future_datetime(tzinfo=) instead.

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

No branches or pull requests

1 participant