Skip to content

Commit 9c948df

Browse files
committed
papis-html: add setup.cfg with flake8 configuration
1 parent 9ca7ce6 commit 9c948df

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

papis-html/Makefile

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
PYTHON=python
2+
3+
all: help
4+
5+
help: ## Show this help
6+
@echo -e "Specify a command. The choices are:\n"
7+
@grep -E '^[0-9a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[0;36m%-18s\033[m %s\n", $$1, $$2}'
8+
@echo ""
9+
.PHONY: help
10+
11+
ci-install:
12+
$(PYTHON) -m pip install --upgrade pip setuptools wheel
13+
$(PYTHON) -m pip install -e .[develop]
14+
.PHONY: ci-install
15+
16+
ci-lint:
17+
python -m flake8 papis_html
18+
python -m mypy --show-error-codes papis_html
19+
.PHONY: ci-lint
20+
21+
tags: ## Generate ctags for main codebase
22+
ctags -f tags \
23+
--recurse=yes \
24+
--tag-relative=yes \
25+
--fields=+l \
26+
--kinds-python=-i \
27+
--language-force=python \
28+
papis
29+
.PHONY: tags
30+

papis-html/setup.cfg

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[flake8]
2+
select = B, D, E, F, N, Q, W
3+
extend-ignore = B019, E123, N818, W503
4+
max-line-length = 88
5+
inline-quotes = double
6+
multiline-quotes = double
7+
8+
[mypy]
9+
strict = True
10+
show_column_numbers = True
11+
hide_error_codes = False
12+
pretty = True
13+
files = papis

0 commit comments

Comments
 (0)