Skip to content

Commit

Permalink
Update flake8 to 3.8.3 (#41)
Browse files Browse the repository at this point in the history
* Update flake8 from 3.7.9 to 3.8.3

* Fix flake8 violation

Co-authored-by: Shinya Ohyanagi <heavenshell.jp@gmail.com>
  • Loading branch information
pyup-bot and heavenshell authored Jun 16, 2020
1 parent 7fc20ff commit 4a4f60f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion doq/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def find_files(basedir):
def get_lines(file, start, end):
lines = []
with contextlib.closing(file) as f:
lines = [l.strip('\n') for l in f]
lines = [line.strip('\n') for line in f]
start = start - 1
end = len(lines) if end == 0 else end

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
bandit==1.6.2
flake8==3.7.9
flake8==3.8.3
flake8-coding==1.3.2
flake8-commas==2.0.0
flake8-comprehensions==3.2.3
Expand Down
2 changes: 1 addition & 1 deletion tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def test_no_files(self):
def test_get_lines(self):
path = os.path.join(self.fixtures_path, 'defs.txt')
with open(path) as f:
expected = [l.rstrip() for l in f.readlines()]
expected = [line.rstrip() for line in f.readlines()]

with open(path) as f:
actual = get_lines(f, 1, 0)
Expand Down

0 comments on commit 4a4f60f

Please sign in to comment.