Skip to content

pylint complains about fs fixture name #609

@AustinScola

Description

@AustinScola

I'm using the pytest pyfakefs fixture in a project. The project is linted with pylint. pylint warns C0103: Argument name "fs" doesn't conform to snake_case naming style (invalid-name). I know that I could add fs to the list of good-names for pylint, but I would prefer not to do that because then the name would be accepted everywhere. I could also add # pylint: disable=invalid-name everywhere I use the fixture, but that isn't very clean.

Could we add another name for the pytest fixture? Something like fake_filesystem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions