feat: add black formatting to linting rules
This commit is contained in:
parent
3e0856ada2
commit
648ef787b8
5 changed files with 17 additions and 6 deletions
3
Makefile
3
Makefile
|
@ -1,3 +1,6 @@
|
||||||
.PHONY: lint
|
.PHONY: lint
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
shfmt -s -w $(shell shfmt -f .)
|
shfmt -s -w $(shell shfmt -f .)
|
||||||
|
black $(shell find -type f -name "*.py")
|
||||||
|
|
||||||
|
|
|
@ -48,6 +48,7 @@ def dots():
|
||||||
|
|
||||||
console.print(Text(" ").join([Text("●", style=color) for color in colors[:8]]))
|
console.print(Text(" ").join([Text("●", style=color) for color in colors[:8]]))
|
||||||
|
|
||||||
|
|
||||||
def double_dots():
|
def double_dots():
|
||||||
"""
|
"""
|
||||||
● ● ● ● ● ● ● ●
|
● ● ● ● ● ● ● ●
|
||||||
|
@ -57,6 +58,7 @@ def double_dots():
|
||||||
console.print(Text(" ").join([Text("●", style=color) for color in colors[:8]]))
|
console.print(Text(" ").join([Text("●", style=color) for color in colors[:8]]))
|
||||||
console.print(Text(" ").join([Text("●", style=color) for color in colors[8:]]))
|
console.print(Text(" ").join([Text("●", style=color) for color in colors[8:]]))
|
||||||
|
|
||||||
|
|
||||||
def wave_w_dots():
|
def wave_w_dots():
|
||||||
"""
|
"""
|
||||||
Alternating colors from red to white with
|
Alternating colors from red to white with
|
||||||
|
@ -80,7 +82,12 @@ def wave_w_dots():
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
prompts = {"wave": wave, "dots": dots,'double-dots':double_dots, "wave-dots": wave_w_dots}
|
prompts = {
|
||||||
|
"wave": wave,
|
||||||
|
"dots": dots,
|
||||||
|
"double-dots": double_dots,
|
||||||
|
"wave-dots": wave_w_dots,
|
||||||
|
}
|
||||||
parser = argparse.ArgumentParser(
|
parser = argparse.ArgumentParser(
|
||||||
description="generate ansi color coded login prompts"
|
description="generate ansi color coded login prompts"
|
||||||
)
|
)
|
||||||
|
|
|
@ -12,6 +12,7 @@ Regenerate with generate_install_scripts.py
|
||||||
|
|
||||||
FILE_DIR = Path(__file__).parent
|
FILE_DIR = Path(__file__).parent
|
||||||
|
|
||||||
|
|
||||||
def shell_script_writer(extensions_dict, filename):
|
def shell_script_writer(extensions_dict, filename):
|
||||||
with Path(filename).open("w") as f:
|
with Path(filename).open("w") as f:
|
||||||
f.write("#!/bin/bash\n")
|
f.write("#!/bin/bash\n")
|
||||||
|
|
Loading…
Reference in a new issue