Skip to content

Commit fd92690

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 4b56613 commit fd92690

File tree

10 files changed

+15
-18
lines changed

10 files changed

+15
-18
lines changed

bash/dotfiles.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,3 @@ else
3030
cd $DOTFILES_BRODIE
3131
git pull
3232
fi
33-

bash/flameshot.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,3 @@
33
git clone https://github.com/flameshot-org/flameshot.git
44
cd flameshot
55
cmake -S . -B build && cmake --build build
6-
7-

bash/font/roboto.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,3 @@ else
2424
echo "Error: Font installation failed." >&2
2525
exit 1
2626
fi
27-
28-
29-
30-

bash/nix/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ debian:
44
nix-channel --update
55

66
klayout:
7-
nix-shell -p klayout
7+
nix-shell -p klayout
88

99
paraview:
10-
nix-shell -p paraview
10+
nix-shell -p paraview

bash/nvm.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,3 @@
33
# nvm install node
44

55
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash
6-

bash/python/conda.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,3 @@ if [[ ! -d "$HOME/miniconda3" ]]; then
5151
else
5252
echo "Conda is already installed."
5353
fi
54-

bash/python/conda_python311.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
def is_conda_installed():
88
return os.path.isdir(os.path.expanduser("~/miniconda3"))
99

10+
1011
def install_conda(version):
1112
os_name = platform.system()
1213
architecture = platform.machine()
@@ -15,7 +16,9 @@ def install_conda(version):
1516
if os_name == "Darwin":
1617
if architecture == "arm64":
1718
# arm64 installer for Apple Silicon
18-
print("Detected arm64 architecture. Using arm-specific Miniconda installer.")
19+
print(
20+
"Detected arm64 architecture. Using arm-specific Miniconda installer."
21+
)
1922
installer_url = f"https://repo.anaconda.com/miniconda/Miniconda3-{version}-MacOSX-arm64.sh"
2023
else:
2124
# x86_64 installer for Intel Macs
@@ -24,7 +27,9 @@ def install_conda(version):
2427
elif os_name == "Linux":
2528
# Linux installer
2629
print("Detected Linux. Using Linux Miniconda installer.")
27-
installer_url = f"https://repo.anaconda.com/miniconda/Miniconda3-{version}-Linux-x86_64.sh"
30+
installer_url = (
31+
f"https://repo.anaconda.com/miniconda/Miniconda3-{version}-Linux-x86_64.sh"
32+
)
2833
else:
2934
print("Unsupported operating system.")
3035
sys.exit(1)
@@ -33,7 +38,9 @@ def install_conda(version):
3338
# Download installer
3439
subprocess.run(["curl", "-o", installer_path, installer_url], check=True)
3540
# Install Miniconda
36-
subprocess.run(["bash", installer_path, "-b", "-u", "-p", f"{home_dir}/miniconda3"], check=True)
41+
subprocess.run(
42+
["bash", installer_path, "-b", "-u", "-p", f"{home_dir}/miniconda3"], check=True
43+
)
3744
# Remove installer
3845
os.remove(installer_path)
3946

@@ -51,6 +58,7 @@ def install_conda(version):
5158
subprocess.run(["bash", "-c", "source ~/.bashrc"], check=True)
5259
print("Conda installation completed and added to PATH.")
5360

61+
5462
def main(version):
5563
print("Checking conda installation for Python 3 (64-bit)...")
5664
if not is_conda_installed():
@@ -59,7 +67,7 @@ def main(version):
5967
else:
6068
print("Conda is already installed.")
6169

70+
6271
if __name__ == "__main__":
6372
version = "py311_24.7.1-0"
6473
main(version)
65-

bash/python/conda_python311.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,3 @@ if [[ ! -d "$HOME/miniconda3" ]]; then
5151
else
5252
echo "Conda is already installed."
5353
fi
54-

bash/python/uv.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
curl -LsSf https://astral.sh/uv/install.sh | sh
1+
curl -LsSf https://astral.sh/uv/install.sh | sh

tutorials/python/decorators.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
55
"""
66

7-
87
import logging
98
from functools import partial, wraps
109

0 commit comments

Comments
 (0)