Skip to content

Commit 2a47e4f

Browse files
committed
add(installation): fixed issue of codacy and added installation script
Co-authored-by:
1 parent d56894b commit 2a47e4f

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

install.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#! /bin/bash
2+
3+
if [command -v git]; then
4+
sudo apt-get update -qq;
5+
sudo apt install git;
6+
fi
7+
8+
if [command -v python3]; then
9+
sudo apt install python3;
10+
fi
11+
12+
if [command -v pip3]; then
13+
sudo apt install python3-pip;
14+
fi
15+
16+
git clone https://github.com/andre-filho/commit-helper.git ~/.commit-helper;
17+
18+
pip3 install --user ~/.commit-helper/requirements.txt;
19+
20+
chmod +x $HOME/.commit-helper/generator.py;
21+
22+
echo "commit(){ ./$HOME/.commit-helper/generator.py; }" >> $HOME/.bashrc;

test/test_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import utils
2-
import yaml
2+
# import yaml
33

44

55
def test_get_text_no_context():

0 commit comments

Comments
 (0)