Skip to content

Commit 2d23ab9

Browse files
authored
Merge pull request #1237 from mulkieran/tidy-up-formatting
Tidy up formatting
2 parents 7e1a12a + a937ffd commit 2d23ab9

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ else
44
PYTHON = monkeytype run
55
endif
66

7+
ISORT_MODULES = monkeytype_config.py setup.py bin/stratis src tests
8+
79
MONKEYTYPE_MODULES = stratis_cli._actions._bind \
810
stratis_cli._actions._constants \
911
stratis_cli._actions._data \
@@ -54,12 +56,13 @@ lint:
5456
.PHONY: fmt
5557
fmt:
5658
(cd src; yes | abs2rel)
57-
isort setup.py bin/stratis src tests
59+
isort ${ISORT_MODULES}
5860
black ./bin/stratis .
5961

6062
.PHONY: fmt-ci
6163
fmt-ci:
62-
isort --diff --check-only setup.py bin/stratis src tests
64+
(cd src; yes | abs2rel)
65+
isort --diff --check-only ${ISORT_MODULES}
6366
black ./bin/stratis . --check
6467

6568
.PHONY: fmt-shell

monkeytype_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
# isort: STDLIB
66
import os
7-
from typing import Any, Union
87
from types import CodeType
8+
from typing import Any, Union
99

1010
# isort: THIRDPARTY
1111
from monkeytype.config import DefaultConfig

0 commit comments

Comments
 (0)