Skip to content

[IMP] Allow disabling autoreload on start #554

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

david-banon-tecnativa
Copy link
Contributor

@david-banon-tecnativa david-banon-tecnativa commented Jul 15, 2025

Also fixes color for pre-commit on updatepot

@Tecnativa

@pedrobaeza
Copy link
Member

Please only one commit per unrelated fix, and check CI.

@david-banon-tecnativa david-banon-tecnativa force-pushed the imp-allow_disabling_reload branch from fafa3a5 to f33ca8e Compare July 15, 2025 15:00
@@ -537,14 +537,14 @@ def lint(c, verbose=False):


@task()
def start(c, detach=True, debugpy=False):
def start(c, detach=True, debugpy=False, _reload=True):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does the variable name start with an underscore?

Suggested change
def start(c, detach=True, debugpy=False, _reload=True):
def start(c, detach=True, debugpy=False, reload=True):

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reload used to be a python keyword, and the editor highlighted as such, and i didn't like that.
Invoke ignores underscores leding a variable name for arguments, ex this would still be used like --reload and --no-reload on cli.

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

Successfully merging this pull request may close these issues.

3 participants