Skip to content

Commit

Permalink
Add flake8 config globally (#732)
Browse files Browse the repository at this point in the history
* Add flake config globally

* Remove un-used import
  • Loading branch information
cadnce authored Oct 16, 2022
1 parent a356703 commit 9449c37
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[flake8]
# E121: Continuation line under-indented for hanging indent
# E123: Continuation line missing indentation or outdented
# E125: Continuation line with same indent as next logical line
# E128: Continuation line under-indented for visual indent
# E226: Missing whitespace around arithmetic operator
# W503: Line break occurred before a binary operator
ignore=E121,E123,E125,E128,E226,W503
max-line-length=110
2 changes: 1 addition & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
run: python -m pip install flake8

- name: Run flake8 linter (source)
run: flake8 --ignore E12,E226,W503 --max-line-length 110 --show-source smart_open
run: flake8 --show-source smart_open

unit_tests:
needs: [linters]
Expand Down
1 change: 0 additions & 1 deletion integration-tests/test_s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import io
import os
import random
import subprocess
import string

import boto3
Expand Down

0 comments on commit 9449c37

Please sign in to comment.