mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-12 10:05:39 +00:00
refactor: remove blank lines after docstring (#5736)
There shouldn't be any blank lines after the function docstring. Remove the blank lines to fix this issue. Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
This commit is contained in:
8
tasks.py
8
tasks.py
@ -98,7 +98,6 @@ def yarn(c, cmd, pty: bool = False):
|
||||
cmd: Yarn command to run.
|
||||
pty (bool, optional): Run an interactive session. Defaults to False.
|
||||
"""
|
||||
|
||||
path = managePyDir().parent.joinpath('src').joinpath('frontend')
|
||||
c.run(f'cd "{path}" && {cmd}', pty=pty)
|
||||
|
||||
@ -246,7 +245,6 @@ def translate_stats(c):
|
||||
|
||||
The file generated from this is needed for the UI.
|
||||
"""
|
||||
|
||||
# Recompile the translation files (.mo)
|
||||
# We do not run 'invoke translate' here, as that will touch the source (.po) files too!
|
||||
try:
|
||||
@ -281,7 +279,6 @@ def translate(c):
|
||||
@task
|
||||
def backup(c):
|
||||
"""Backup the database and media files."""
|
||||
|
||||
print("Backing up InvenTree database...")
|
||||
manage(c, "dbbackup --noinput --clean --compress")
|
||||
print("Backing up InvenTree media files...")
|
||||
@ -291,7 +288,6 @@ def backup(c):
|
||||
@task
|
||||
def restore(c):
|
||||
"""Restore the database and media files."""
|
||||
|
||||
print("Restoring InvenTree database...")
|
||||
manage(c, "dbrestore --noinput --uncompress")
|
||||
print("Restoring InvenTree media files...")
|
||||
@ -339,7 +335,6 @@ def update(c, skip_backup=False, frontend: bool = False):
|
||||
- clean_settings
|
||||
- translate_stats
|
||||
"""
|
||||
|
||||
# Ensure required components are installed
|
||||
install(c)
|
||||
|
||||
@ -690,7 +685,6 @@ def test(c, disable_pty=False, runtest='', migrations=False, report=False, cover
|
||||
@task(help={'dev': 'Set up development environment at the end'})
|
||||
def setup_test(c, ignore_update=False, dev=False, path="inventree-demo-dataset"):
|
||||
"""Setup a testing environment."""
|
||||
|
||||
from InvenTree.InvenTree.config import get_media_dir
|
||||
|
||||
if not ignore_update:
|
||||
@ -790,7 +784,6 @@ def frontend_compile(c):
|
||||
Args:
|
||||
c: Context variable
|
||||
"""
|
||||
|
||||
frontend_install(c)
|
||||
frontend_trans(c)
|
||||
frontend_build(c)
|
||||
@ -863,7 +856,6 @@ def frontend_download(c, ref=None, tag=None, file=None, repo="InvenTree/inventre
|
||||
3. invoke frontend-download --file /home/vscode/Downloads/frontend-build.zip
|
||||
This will extract your zip file and place the contents at the correct destination
|
||||
"""
|
||||
|
||||
import functools
|
||||
import subprocess
|
||||
from tempfile import NamedTemporaryFile
|
||||
|
Reference in New Issue
Block a user