Skip to content

Commit

Permalink
fix(generator): codacy warnings on pr
Browse files Browse the repository at this point in the history
  • Loading branch information
andre-filho committed Sep 11, 2018
1 parent 8bdd7c6 commit e3f44ed
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions generator.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
import os

from pathlib import Path
from yaml import load
from yaml import safe_load
from yaml import YAMLError

from utils import run_config
from utils import angular_convention
from utils import changelog_convention
from utils import symphony_convention
from utils import possible_configurations

tag = ''
# msg = ''
tag_is_lowercase = False
tag_is_uppercase = False
tag_is_capitalized = False
Expand All @@ -22,7 +20,7 @@
if file_path.is_file():
with open(str(file_path), 'r') as stream:
try:
config = load(stream)
config = safe_load(stream)
tag, tag_is_capitalized, tag_is_lowercase, tag_is_uppercase, convention = run_config(config, tag, tag_is_capitalized, tag_is_lowercase, tag_is_uppercase, convention)
if convention != '' or convention != 'custom':
if convention == 'angular':
Expand Down

0 comments on commit e3f44ed

Please sign in to comment.