flake8-datetimez
flake8-datetimez copied to clipboard
Support for detecting Faker unsafe naive datetimes
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.