Skip to content

Commit efdb177

Browse files
committed
papis-html: add setup.cfg with flake8 configuration
1 parent f7bb665 commit efdb177

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

papis-html/Makefile

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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+
12+
ci-lint:
13+
python -m flake8 papis_html
14+
python -m mypy --show-error-codes papis_html
15+
.PHONY: ci-lint
16+
17+
tags: ## Generate ctags for main codebase
18+
ctags -f tags \
19+
--recurse=yes \
20+
--tag-relative=yes \
21+
--fields=+l \
22+
--kinds-python=-i \
23+
--language-force=python \
24+
papis
25+
.PHONY: tags
26+

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)