Skip to content

Commit 44d37d2

Browse files
committed
Add flake8 config, flake8 and watch_flake8 make command
1 parent 78ef3a5 commit 44d37d2

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,11 @@ build_docs:
99

1010
watch_docs:
1111
cd doc && $(MAKE) watch_docs
12+
13+
flake8:
14+
flake8 tmuxp
15+
16+
watch_flake8:
17+
if command -v entr > /dev/null; then find . -type f -not -path '*/\.*' | grep -i '.*[.][py]' | entr -c make flake8; else make flake8; echo "\nInstall entr(1) to automatically run tests on file change.\n See http://entrproject.org/"; fi
18+
19+
.PHONY: flake8

setup.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[flake8]
2+
exclude = .tox,*.egg,tmuxp/_compat.py,tmuxp/__*__.py,
3+
select = E,W,F,N

0 commit comments

Comments
 (0)