Skip to content

Commit 2db3d76

Browse files
authored
merge(#13): configuration for ci
Config ci
2 parents ef48952 + 608a697 commit 2db3d76

File tree

4 files changed

+28
-7
lines changed

4 files changed

+28
-7
lines changed

.travis.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
language: python
2+
python:
3+
- "3.4"
4+
- "3.5"
5+
- "3.6"
6+
install:
7+
- pip install -r requirements.txt
8+
script:
9+
# - pytest
10+
- pycodestyle *.py
11+
notification:
12+
email: false

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,11 @@ Sometimes we, the developers, go _full-loco_ while programming and make mistakes
1616
Just follow the commands below:
1717

1818
```bash
19-
2019
# make sure you have the dependencies installed in your machine and
2120
# have git ready to use
22-
2321
$ sudo apt install python3-pip git
2422

25-
$ pip3 install pyyaml
23+
$ pip3 install -r requirements.txt
2624

2725
# clone the repo into your home
2826
$ git clone https://github.com/andre-filho/commit-helper.git ~/.commit-helper
@@ -32,7 +30,6 @@ Just follow the commands below:
3230

3331
# reload terminal
3432
$ source ~/.bashrc
35-
3633
```
3734

3835
## Usage and configuration
@@ -55,8 +52,6 @@ convention: symphony # [Tag] commit message
5552
convention: none # Commit message
5653
```
5754
58-
59-
6055
Supported conventions available:
6156
<!-- list here all tags that are used in configuration file -->
6257
@@ -84,3 +79,8 @@ Running default script...
8479
| **Name** | **Username** |
8580
| :--------: | :-----: |
8681
| André de Sousa Costa Filho | @andre-filho |
82+
83+
## Our collaborators
84+
| **Name** | **Username** |
85+
| :------: | :----------: |
86+
| Arthur José Benedito de Oliveira Assis | @arthur120496 |

generator.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@
1515
with open(str(file_path), 'r') as stream:
1616
try:
1717
config = safe_load(stream)
18-
convention = str(config['convention']).lower() if config['convention'] is not None else ''
18+
19+
if config['convention'] is not None:
20+
convention = str(config['convention']).lower()
21+
else:
22+
convention = 'none'
23+
1924
if convention == 'angular' or convention == 'karma':
2025
print('You are using the %s convention' % convention)
2126
angular_convention()
@@ -29,6 +34,7 @@
2934
just_message()
3035
elif convention == 'custom':
3136
custom_convention()
37+
3238
except YAMLError as exc:
3339
print(exc)
3440
else:

requirements.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
pyyaml==3.13
2+
pytest==3.8.1
3+
pycodestyle==2.4.0

0 commit comments

Comments
 (0)