Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Ignore cookiecutter imports #242

Open
adam-grant-hendry opened this issue Nov 21, 2024 · 0 comments
Open

[FEATURE] Ignore cookiecutter imports #242

adam-grant-hendry opened this issue Nov 21, 2024 · 0 comments
Labels
enhancement New feature or request feature New things

Comments

@adam-grant-hendry
Copy link

adam-grant-hendry commented Nov 21, 2024

cookiecutter templates use jinja templating syntax in a python file to import the template package:

e.g.

import {{ cookiecutter\.project_slug }}

Even with a # nopycln: import, pycln errors when run because the above is invalid syntax in python:

SyntaxError: invalid syntax 'import {{ cookiecutter.project_slug }}'

Is there a way to completely ignore this line when parsing? My only other option at this point is to exclude the entire file.

@adam-grant-hendry adam-grant-hendry added enhancement New feature or request feature New things labels Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature New things
Projects
None yet
Development

No branches or pull requests

1 participant