We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
jinja2
I'm working on a cookiecutter template where we have something like this
cookiecutter
[project] classifiers = [ "Programming Language :: Python :: 3", "Programming Language :: Python :: 3 :: Only", {%- for python_version in range( cookiecutter.min_python_version | replace('3.', '') | int, cookiecutter.max_python_version | replace('3.', '') | int + 1 ) %} "Programming Language :: Python :: 3.{{ python_version }}", {%- endfor %} ] [tool.tomlsort] all = true spaces_indent_inline_array = 4 trailing_comma_inline_array = true overrides."project.classifiers".inline_arrays = false
This works fine but toml-sort panics (understandably so). For now, I'm excluding the templated pyproject.toml from the pre-commit hooks at the top level and creating a dummy project inside that and linting in there, i.e. https://github.com/UCL-ARC/python-template/blob/paddys-improvement/.github/workflows/linting.yml. Is there a way for this to work nicely?
toml-sort
pyproject.toml
pre-commit
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm working on a
cookiecutter
template where we have something like thisThis works fine but
toml-sort
panics (understandably so). For now, I'm excluding the templatedpyproject.toml
from thepre-commit
hooks at the top level and creating a dummy project inside that and linting in there, i.e. https://github.com/UCL-ARC/python-template/blob/paddys-improvement/.github/workflows/linting.yml. Is there a way for this to work nicely?The text was updated successfully, but these errors were encountered: