Skip to content

Support for detecting Faker unsafe naive datetimes #8

@BartlomiejSkwira

Description

@BartlomiejSkwira

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions