Commit graph

338 commits

Author SHA1 Message Date
Christopher Pickering
9d42baf626
fix(handlebars each): fixed bug in handlebars tags w/ trailing pipe
closes #529
2023-01-23 11:09:31 -06:00
Christopher Pickering
70e4220c93
naturalized line endings when beginning formatting 2023-01-19 11:53:56 -06:00
Christopher Pickering
64eb26be3f
fixed line ending conversion for windows 2023-01-19 10:24:37 -06:00
Christopher Pickering
7a0a442fec
build(removed unused dep): removed metadata import
closes #523
2023-01-19 09:57:50 -06:00
Christopher Pickering
7c0a272150
fix(formatter): preserve windows line endings
Line ending from first line will now be preserved in the output.

closes #502
2023-01-19 08:30:31 -06:00
Christopher Pickering
ebd099f011
fix(linter): fixes false positive on D018
closes #501
2023-01-04 09:03:24 -06:00
Christopher Pickering
9812f601e9
fix(check): fixed issue where check was reformatting files that contained a hyphen in the name
closes #494
2022-12-26 10:30:41 -06:00
Christopher Pickering
57e1eecedb
fix(stdin --check): stdin with the --check flag should return a formatted output
stdin with --check was returning the original code, but should be returning the formatted code.

closes #486
2022-12-16 10:42:47 -06:00
Christopher Pickering
5890161d2c
fix(settings): fixed pyproject loader
closes #469
2022-12-15 11:32:45 -06:00
Christopher Pickering
dff02dcdc3
fix(attributes): fixed outer quotes being stripped from attribute values
closes #471
2022-12-15 10:46:39 -06:00
Christopher Pickering
ddb3da04b5
Merge branch 'dev' of github.com:Riverside-Healthcare/djLint into dev 2022-12-15 10:32:12 -06:00
Christopher Pickering
e7c904e8f0
fix(textarea): fixed textarea attribute formatting
closes #486
2022-12-15 10:31:59 -06:00
luxcem
442dc91a51
Allow data: for links. 2022-11-14 12:09:06 +01:00
Christopher Pickering
6c2d843c2f
fix(formatter): fixed a few broken alpinejs attributes
closes #448
2022-11-09 15:08:58 +01:00
Christopher Pickering
10e593f623
fix(css/js): fixed extra blank lines being appended to blank lines in css/js formatter
closes #451
2022-11-08 08:33:45 +01:00
Christopher Pickering
1bd0bf7ef0
fix(linter): make attribute pattern on H025 more accepting. Prevent false positive
closes #447
2022-11-07 09:13:12 +01:00
Christopher Pickering
0d170aab6c
fix(image tag): added image tag to template break tag list. srcset formatting
closes #444
2022-11-03 11:40:09 +01:00
Christopher Pickering
907a1bfb9c
fix(attributes): prevented attribute indentation for url type attributes
Also fixed attribute quoting issues

closes #320, closes #86, closes #195
2022-11-03 11:15:35 +01:00
Christopher Pickering
19136329d7
removed extra comments 2022-10-28 14:08:37 +02:00
Christopher Pickering
bd90f08065
fix(attributes): fixed poor django attribute parsing
Allow multiple attribute styles inside a quoted value. Split the attribute name into a group to help
resolve #427

closes #438
2022-10-28 14:00:14 +02:00
Christopher Pickering
62a88796f4
fix(formatter): fixed poor formatting on long inline blocks
closes #432
2022-10-24 15:16:06 +02:00
Christopher Pickering
280e1fc29c
fix(windows+py3.9): fixed an issue on windows with py3.9 and stdin
On windows python 3.9 the stdin path of - was "sometimes" recognized as the cwd, and sometimes as
the system root. This update sets the cwd manually for paths of -.

re https://github.com/monosans/djlint-vscode/issues/83
2022-10-21 09:14:18 +02:00
Christopher Pickering
4a0bee6dc2
fix(formatter): fixed indent on inline block followed by inline template block
closes #425
2022-10-13 12:20:40 +02:00
Christopher Pickering
b4cbcb45cd
feat(configuration): allow local configuration to override global config
closes #422
2022-10-12 09:29:31 +02:00
Christopher Pickering
a86df438b5
fix(formatter): fixed formatting on nested inline comments
closes #423
2022-10-12 08:49:55 +02:00
Christopher Pickering
b53f670af8
feat(quiet): updated output of the --quiet flag to reduce unneeded verbose stuff 2022-09-26 13:47:41 +02:00
Christopher Pickering
67e8c64762
fix(linter): fixed false positive on T002. Added tests
closes #405
2022-09-26 09:02:07 +02:00
Christopher Pickering
17ff881045
fix(linter): fixed false positive on H017. Added test
closes #406
2022-09-26 08:51:04 +02:00
Christopher Pickering
31161ce1aa
fix(formatter): fixed issue with blank links added between blocks
closes #402
2022-09-22 09:41:20 +02:00
Christopher Pickering
8f36fec142
fix(formatter): fixed poor indentation on span tags with leading text
closes #398
2022-09-21 09:52:38 +02:00
Christopher Pickering
dd2172f01c
Merge branch 'dev' of github.com:Riverside-Healthcare/djLint into dev 2022-09-21 09:32:56 +02:00
Christopher Pickering
e23ee4627d
fix(t002): fixed false positive in t002. Added test
closes #399
2022-09-21 09:32:39 +02:00
sur.la.route
3e29af7a51
Update src/djlint/output.py
Co-authored-by: Christian Clauss <cclauss@me.com>
2022-09-20 14:25:17 +02:00
Christopher Pickering
90f023d325
feat(stats): moved linter stats to be appended to lint output
closes #396
2022-09-20 08:34:58 +02:00
Christopher Pickering
190ad01ff3
fix(linter): t002
Fixed bad match on t002.
2022-09-19 10:00:32 +02:00
Christopher Pickering
489decb2e1
feat(linter): added --statistics flag to print summary of linter findings
closes #389
2022-09-19 09:41:54 +02:00
Christopher Pickering
d31ce52b3b
fix(formatter): fixed formatting of repeating inline tags
closes #387
2022-09-16 10:47:42 +02:00
Christopher Pickering
532c5b8d94
feat(linter): t002 added a few more tags to the check
closes #386
2022-09-16 10:06:00 +02:00
Christopher Pickering
ecb95bbee0
feat(linter t034): added linter T034 to check for {% ... }% typo
closes #385
2022-09-16 09:54:17 +02:00
Christopher Pickering
4ac5fd0da8
fix(span): fixed indent on nested inline tags on a span
closes #383
2022-09-15 09:44:21 +02:00
Christopher Pickering
f0d37a59d1
fix(alpine js): fix incorrect indent on alpinejs attribs w/ nested HTML
closes #381
2022-09-14 09:43:31 +02:00
Christopher Pickering
bbcde2b426
feat(config): allow source files to be specified in the config file
This update allows a file list to be set in the config file.

closes #371
2022-09-12 12:43:04 +02:00
Christopher Pickering
2c46e976db
chore(lint): updated tox config 2022-09-12 09:58:45 +02:00
Christopher Pickering
3cdb7a7b97
feat(windows): added a better progress bar char for windows
closes #286
2022-09-07 13:25:00 -05:00
Christopher Pickering
83297bd15b
feat(config): added option for custom configuration file path
This can be used for a global .djlintrc file.

closes #170
2022-09-07 13:10:13 -05:00
Christopher Pickering
8a3c60c72b
fix(cssbeautify): added support for ignore in cssbeautifier 2022-09-07 11:28:51 -05:00
Christopher Pickering
b8bf071d16
fix(js formatting): added support for jsbeautify ignore blocks
closes #367
2022-09-07 11:15:21 -05:00
Christopher Pickering
fdb65c9dd7
fix(release): trigger a release to remove the print statment 2022-09-07 09:20:48 -05:00
Christopher Pickering
ed182c6c11
test(stdin): added test for stdin --check
re #359
2022-09-01 08:44:17 -05:00
Christopher Pickering
bffb093c4c
fix(macro): allow html tags inside macro functions to skip formatting
closes #353
2022-08-29 09:27:26 -05:00