Skip to content

[FEATURE] Add --rules CLI option to make path to .djlint_rules.yaml configurable #1473

Description

@filipsnastins

Feature Request

djLint supports custom rules by creating the .djlint_rules.yaml alongside pyproject.toml.

I would like to make the path to the rules file configurable to accommodate a more flexible project layout, similar to how the path to .djlintrc can be configurable with --configuration FILE.

We can add a --rules FILE option to the CLI command. If you agree with the change, I can contribute and submit a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions