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

Use settings from pyproject.toml #39

Closed
adinhodovic opened this issue Nov 29, 2023 · 0 comments
Closed

Use settings from pyproject.toml #39

adinhodovic opened this issue Nov 29, 2023 · 0 comments

Comments

@adinhodovic
Copy link

adinhodovic commented Nov 29, 2023

Hi,

I add these options to use settings from pyproject.toml.

  "htmldjango.djlint.addLinterArgs": [
    "--configuration=pyproject.toml"
  ],
  "htmldjango.djlint.addFormatterArgs": [
    "--configuration=pyproject.toml"
  ],

But I think coc-htmldjango settings for indentation overwrites it.

Settings from django-cookiecutter

# ==== djLint ====
[tool.djlint]
blank_line_after_tag = "load,extends"
close_void_tags = true
format_css = true
format_js = true
# TODO: remove T002 when fixed https://github.com/Riverside-Healthcare/djLint/issues/687
ignore = "H006,H030,H031,T002"
include = "H017,H035"
indent = 2
max_line_length = 119
profile = "django"

[tool.djlint.css]
indent_size = 2

[tool.djlint.js]
indent_size = 2

djlint . --reformat and coc-htmldjango linting has different output.

I would like coc-htmldjango to pick up project settings and not have IDE settings as defaults.

Any suggesitons? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant