-
Notifications
You must be signed in to change notification settings - Fork 0
/
clean.sh
executable file
·21 lines (19 loc) · 1.04 KB
/
clean.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env bash
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
echo ----------------------------------------------
echo Running isort to automatically sort imports
echo ----------------------------------------------
echo Command: isort "$SCRIPT_DIR" --settings ~/.gen3/.github/.github/linters
isort "$SCRIPT_DIR" --settings ~/.gen3/.github/.github/linters
echo
echo ----------------------------------------------
echo Running black to automatically format Python
echo ----------------------------------------------
echo Command: black "$SCRIPT_DIR" --config ~/.gen3/.github/.github/linters/.python-black
black "$SCRIPT_DIR" --config ~/.gen3/.github/.github/linters/.python-black
echo
echo ----------------------------------------------
echo Running pylint to detect lint
echo ----------------------------------------------
echo Command: pylint -vv "$SCRIPT_DIR/gen3discoveryai" --rcfile ~/.gen3/.github/linters/.python-lint
pylint -vv "$SCRIPT_DIR/gen3discoveryai" --rcfile ~/.gen3/.github/.github/linters/.python-lint