flake8-datetimez icon indicating copy to clipboard operation
flake8-datetimez copied to clipboard

Support for detecting Faker unsafe naive datetimes

Open BartlomiejSkwira opened this issue 2 years ago • 0 comments

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.

BartlomiejSkwira avatar Sep 29 '22 10:09 BartlomiejSkwira