Skip to content

Commit 5a1f4f7

Browse files
authored
Merge pull request #2 from LexMachinaInc/all-file-returns
Fail on flake8 Errors for Any File
2 parents d6b879b + 8c3e19a commit 5a1f4f7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

flake8_per_file/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def main():
4040
stderr=subprocess.STDOUT,
4141
encoding='utf8',
4242
)
43-
returncode = sp_result.returncode
43+
returncode = max(sp_result.returncode, returncode)
4444
all_output += sp_result.stdout
4545

4646
sys.stdout.write(all_output)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "flake8_per_file"
3-
version = "0.3.0"
3+
version = "0.4.0"
44
description = "Per file flake8"
55
authors = ["Gavin Carothers <[email protected]>"]
66
license = "Apache-2.0"

0 commit comments

Comments
 (0)