Skip to content

Commit ef48952

Browse files
committed
fix(refactoring): fixed pep8 lint that was breaking cc
1 parent 62259fe commit ef48952

File tree

7 files changed

+10
-5
lines changed

7 files changed

+10
-5
lines changed

conventions/changelog.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from os import system
22
from utils import get_text
33

4+
45
def changelog_convention():
56
tag, msg = get_text()
67
tag = tag.upper()
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# FUTURE: implement
22
def custom_convention():
3-
pass
3+
pass

conventions/karma_angular.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from os import system
22
from utils import get_text
33

4+
45
def angular_convention():
56
tag, msg, context = get_text(context=True)
67
tag = tag.lower()

conventions/no_convention.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from os import system
2-
from utils import get_text
2+
33

44
def just_message():
55
msg = str(input("commit message: "))

conventions/symphony_cmf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
from os import system
22
from utils import get_text
33

4+
45
def symphony_convention():
56
tag, msg = get_text()
67
tag = tag.capitalize()
7-
system("git commit -m '[%s] %s'" % (tag, msg))
8+
system("git commit -m '[%s] %s'" % (tag, msg))

generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
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'] != None else ''
18+
convention = str(config['convention']).lower() if config['convention'] is not None else ''
1919
if convention == 'angular' or convention == 'karma':
2020
print('You are using the %s convention' % convention)
2121
angular_convention()

utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from yaml import dump
22

3+
34
def get_text(context=False):
45
if context:
56
tag = str(input("type the tag: "))
@@ -11,9 +12,10 @@ def get_text(context=False):
1112
msg = str(input("type the commit message: ")).lower()
1213
return tag, msg
1314

15+
1416
def create_file(convention_name):
1517
data = dict(
16-
convention = convention_name
18+
convention=convention_name
1719
)
1820
with open('commiter.yml', 'w') as output_file:
1921
dump(data, output_file, default_flow_style=False)

0 commit comments

Comments
 (0)