Skip to content

Commit 6464e87

Browse files
committed
Save space by cleaning packages from apt/dnf cache
Update isort to recommended config: https://pycqa.github.io/isort/docs/configuration/pre-commit/
1 parent 02db4ae commit 6464e87

File tree

5 files changed

+6
-2
lines changed

5 files changed

+6
-2
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ repos:
2828
hooks:
2929
- id: doc8
3030
- repo: https://github.com/pycqa/isort
31-
rev: develop
31+
rev: 5.6.3
3232
hooks:
33-
- id: isort
33+
- id: isort
3434
- repo: https://github.com/pocc/pre-commit-hooks
3535
rev: master
3636
hooks:

scripts/install_linux_apt.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@
77
COMPONENTS=$(echo "$1" | sed "s/,/ /g")
88
#shellcheck disable=SC2086
99
sudo apt-get install -y $COMPONENTS
10+
sudo apt-get clean

scripts/install_linux_apt_no_sudo.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@
66

77
COMPONENTS=$(echo "$1" | sed "s/,/ /g")
88
apt-get install -y "$COMPONENTS"
9+
apt-get clean

scripts/install_linux_dnf.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@
77
COMPONENTS=$(echo "$1" | sed "s/,/ /g")
88
#shellcheck disable=SC2086
99
sudo dnf -y install $COMPONENTS
10+
sudo dnf clean packages

scripts/install_linux_dnf_no_sudo.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@
77
COMPONENTS=$(echo "$1" | sed "s/,/ /g")
88
#shellcheck disable=SC2086
99
dnf -y install $COMPONENTS
10+
dnf clean packages

0 commit comments

Comments
 (0)