Skip to content

Commit 76ff0a9

Browse files
committed
Fixes error
1 parent cf839d9 commit 76ff0a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tailwind/management/commands/tailwind.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ def handle_plugin_install_command(self, *labels, **options):
217217
content = f.read()
218218

219219
# Check if plugin is already included
220-
plugin_line = f'@plugin "{plugin_name}";'
220+
plugin_line = f'@plugin "{plugin_name}";' # noqa: E702
221221
if plugin_line in content:
222222
self.stdout.write(self.style.WARNING(f"Plugin {plugin_name} is already included in styles.css"))
223223
return
@@ -228,7 +228,7 @@ def handle_plugin_install_command(self, *labels, **options):
228228
raise CommandError('Could not find @import "tailwindcss"; in styles.css')
229229

230230
# Insert plugin line after the import
231-
new_content = content.replace(import_line, f'{import_line}\n@plugin "{plugin_name}";\n')
231+
new_content = content.replace(import_line, f'{import_line}\n@plugin "{plugin_name}";\n') # noqa: E702
232232

233233
# Write updated content back to file
234234
with open(styles_path, "w") as f:

0 commit comments

Comments
 (0)