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

Recursive linting stopped working in 1.35.0 #1140

Open
3 tasks done
awcrosby opened this issue Feb 10, 2025 · 0 comments
Open
3 tasks done

Recursive linting stopped working in 1.35.0 #1140

awcrosby opened this issue Feb 10, 2025 · 0 comments
Labels
🔍 linter 🦠 bug Something isn't working

Comments

@awcrosby
Copy link

System Info

  • OS: Debian GNU/Linux 12 (bookworm)
  • Python Version Python 3.12.9
  • djLint Version djlint, version 1.36.4
  • template language: django template language

Issue

I have been successfully linting all html files in my template dir via:

$ djlint django/api/templates --profile=django --lint
$ djlint django/api/templates --profile=django --check

$ tree django/api/templates/
django/api/templates/
├── workflow_panel
│   ├── workflow_detail.html
│   └── workflow_row.html
├── workflow_start
│   └── start_form.html
└── base.html

In older versions (1.34.1, 1.34.2) this works locally on Ubuntu as well as self-hosted Debian gitlab runners. Starting in 1.35.0 (and 1.36.4) it works only locally but Debian gitlab runners yield:

$ djlint django/api/templates --profile=django --lint
No files to check! 😢
$ djlint django/api/templates --profile=django --check
No files to check! 😢

The following only finds the one base.html file

$ djlint django/api/templates/* --profile=django --lint
Linting 1/1 files ━━━━━━━━━━ 00:00

Other recursive linting works ok like: $ ruff check django/ --diff --unsafe-fixes

How To Reproduce

In this Debian env (I have not tried any others)

  • have a TEMPLATE_DIR with subdirs of html templates
  • Install djlint 1.34.2
  • See this lint successfully: djlint $TEMPLATE_DIR --profile=django --lint
  • Install djlint 1.35.0 or 1.36.4
  • See this find no files: djlint $TEMPLATE_DIR --profile=django --lint

Contents of djlint.toml/.djlintrc/pyproject.toml [tool.djlint]

None.

@awcrosby awcrosby added 🔍 linter 🦠 bug Something isn't working labels Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔍 linter 🦠 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant