Skip to content

Commit 2e5d43e

Browse files
committed
Reformat file with ruff
1 parent 83d36c5 commit 2e5d43e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

argcomplete/scripts/activate_global_python_argcomplete.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,12 @@ def append_to_config_file(path, shellcode):
121121
fh.write(shellcode)
122122
print("Added.", file=sys.stderr)
123123

124+
124125
def link_zsh_user_rcfile(zsh_fpath=None):
125126
zsh_rcfile = os.path.join(os.path.expanduser(os.environ.get("ZDOTDIR", "~")), ".zshenv")
126127
append_to_config_file(zsh_rcfile, zsh_shellcode.format(zsh_fpath=zsh_fpath or get_activator_dir()))
127128

129+
128130
def link_bash_user_rcfile():
129131
bash_completion_user_file = os.path.expanduser("~/.bash_completion")
130132
append_to_config_file(bash_completion_user_file, bash_shellcode.format(activator=get_activator_path()))
@@ -135,6 +137,7 @@ def link_user_rcfiles():
135137
link_zsh_user_rcfile()
136138
link_bash_user_rcfile()
137139

140+
138141
def add_zsh_system_dir_to_fpath_for_user():
139142
if "zsh" not in os.environ.get("SHELL", ""):
140143
return
@@ -148,6 +151,7 @@ def add_zsh_system_dir_to_fpath_for_user():
148151
except (FileNotFoundError, subprocess.CalledProcessError):
149152
pass
150153

154+
151155
def main():
152156
global args
153157
args = parser.parse_args()

0 commit comments

Comments
 (0)