Skip to content

Commit

Permalink
double-quote-string-fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
Spitfire1900 committed Mar 28, 2024
1 parent a5882b8 commit c35c25c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions xontrib/pygitstatus/entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

def _load_xontrib_(xsh: XonshSession, **_):
# getting environment variable
var = xsh.env.get("VAR", "default")
var = xsh.env.get('VAR', 'default')

print("Autoloading xontrib: xontrib-pygitstatus")
print('Autoloading xontrib: xontrib-pygitstatus')

# I don't think I need event_hooks for a PROMPT
# from .event_hooks import listen_cd
Expand Down
8 changes: 4 additions & 4 deletions xontrib/pygitstatus/prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
### .venv/Lib/site-packages/xonsh/prompt/gitstatus.py


@PromptField.wrap(prefix="↑·", info="ahead")
@PromptField.wrap(prefix='↑·', info='ahead')
def ahead(fld: PromptField, ctx: PromptFields):
ahead, behind = (0, 0)
with contextlib.suppress(GitError):
Expand All @@ -24,7 +24,7 @@ def ahead(fld: PromptField, ctx: PromptFields):
fld.value = str(ahead) if ahead else ''


@PromptField.wrap(prefix="↓·", info="behind")
@PromptField.wrap(prefix='↓·', info='behind')
def behind(fld: PromptField, ctx: PromptFields):
ahead, behind = (0, 0)
with contextlib.suppress(GitError):
Expand All @@ -39,14 +39,14 @@ def behind(fld: PromptField, ctx: PromptFields):
fld.value = str(behind) if behind else ''


@PromptField.wrap(prefix="{CYAN}", info="branch")
@PromptField.wrap(prefix='{CYAN}', info='branch')
def branch(fld: PromptField, ctx: PromptFields):
with contextlib.suppress(GitError):
repo = Repo('.')
fld.value = repo.head.shorthand


@PromptField.wrap(prefix="{BOLD_GREEN}", suffix="{RESET}", symbol="✓")
@PromptField.wrap(prefix='{BOLD_GREEN}', suffix='{RESET}', symbol='✓')
def clean(fld: PromptField, ctx: PromptFields):

# symbol attribute is auto-populated by wrap function
Expand Down

0 comments on commit c35c25c

Please sign in to comment.