Skip to content

Commit

Permalink
Merge pull request #38 from tisnik/use-radon-2-4
Browse files Browse the repository at this point in the history
Use Radon 2.4.0 instead of 3.0.0
  • Loading branch information
tisnik authored Jan 31, 2019
2 parents 666be79 + 6c19658 commit fabcabb
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion f8a_version_comparator/comparable_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def parse_version(self):

ver_char = version[_ch]

if ver_char is ".":
if ver_char == ".":

if _ch == _start_index:
ref_list.add_item(IntegerItem(0))
Expand Down
2 changes: 1 addition & 1 deletion f8a_version_comparator/item_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def compare_to(self, item):
result = -1 * r_obj.compare_to(l_obj)
else:
result = l_obj.compare_to(r_obj)
if result is not 0:
if result != 0:
return result

return 0
Expand Down
2 changes: 1 addition & 1 deletion measure-cyclomatic-complexity.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function prepare_venv() {
VIRTUALENV=$(which virtualenv-3)
fi

${VIRTUALENV} -p python3 venv && source venv/bin/activate && python3 "$(which pip3)" install radon
${VIRTUALENV} -p python3 venv && source venv/bin/activate && python3 "$(which pip3)" install radon==2.4.0
}

[ "$NOVENV" == "1" ] || prepare_venv || exit 1
Expand Down
2 changes: 1 addition & 1 deletion measure-maintainability-index.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function prepare_venv() {
VIRTUALENV=$(which virtualenv-3)
fi

${VIRTUALENV} -p python3 venv && source venv/bin/activate && python3 "$(which pip3)" install radon
${VIRTUALENV} -p python3 venv && source venv/bin/activate && python3 "$(which pip3)" install radon==2.4.0
}

[ "$NOVENV" == "1" ] || prepare_venv || exit 1
Expand Down

0 comments on commit fabcabb

Please sign in to comment.