Skip to content

Commit

Permalink
Merge pull request #135 from brittonsmith/fl8
Browse files Browse the repository at this point in the history
fix flake8 tests
  • Loading branch information
brittonsmith committed Jun 9, 2020
2 parents eaaae0c + 5929a30 commit 25e6dee
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 21 deletions.
13 changes: 13 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,16 @@ commands:
popd
fi
lint:
description: "Lint."
steps:
- run:
name: "Lint."
command: |
source $BASH_ENV
source $HOME/venv/bin/activate
flake8 trident
run-tests:
description: "Build trident and run tests."
parameters:
Expand Down Expand Up @@ -185,6 +195,7 @@ jobs:

- install-dependencies:
yttag: << parameters.yttag >>

- configure-trident

- save_cache:
Expand All @@ -195,6 +206,8 @@ jobs:
- ~/venv
- ~/yt-git

- lint

- restore_cache:
name: "Restore test data cache."
key: test-data-v1
Expand Down
20 changes: 0 additions & 20 deletions tests/test_flake8.py

This file was deleted.

2 changes: 1 addition & 1 deletion trident/roman.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def from_roman(s):
if not s:
raise InvalidRomanNumeralError('Input can not be blank')
if not romanNumeralPattern.search(s):
raise InvalidRomanNumeralError('Invalid Roman numeral: {s}'.format(s))
raise InvalidRomanNumeralError('Invalid Roman numeral: {0}'.format(s))

result = 0
index = 0
Expand Down

0 comments on commit 25e6dee

Please sign in to comment.