Skip to content
This repository was archived by the owner on Mar 27, 2026. It is now read-only.

Commit 40b5b79

Browse files
committed
Add flake8 linting
1 parent 9a37687 commit 40b5b79

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

.travis.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,7 @@ jobs:
2222
include:
2323
- stage: lint
2424
python: 3.7
25-
install: pip install black
26-
script: black --check .
25+
install: pip install black flake8
26+
script:
27+
- black --check ./emv
28+
- flake8 ./emv

emv/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def format_bytes(data):
4444

4545

4646
def unformat_bytes(data):
47-
data = re.split("\s+", data)
47+
data = re.split(r"\s+", data)
4848
return [int(i, 16) for i in data]
4949

5050

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
[flake8]
22
max-line-length=110
3+
ignore=E203,W503

0 commit comments

Comments
 (0)