-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (28 loc) · 1011 Bytes
/
Copy pathMakefile
File metadata and controls
38 lines (28 loc) · 1011 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
VENV_PATH = venv
VENV = ./venv/Scripts/
CODE = ./pika_wrapper
setup-dev: create-venv pip-update
create-venv:
python -m venv ${VENV_PATH}
pip-install-dev:
${VENV}pip install --upgrade pip pip-tools
${VENV}pip-sync requirements.txt requirements-dev.txt
pip-install:
${VENV}pip install --upgrade pip pip-tools
${VENV}pip-sync requirements.txt
pip-update:
${VENV}python -m pip install --upgrade pip pip-tools
${VENV}pip-compile requirements.in
${VENV}pip-compile requirements-dev.in
${VENV}pip-sync requirements.txt requirements-dev.txt
lint:
${VENV}flake8 ${CODE} --exit-zero --per-file-ignores="__init__.py:F401" --max-line-length 90
${VENV}pylint ${CODE} --ignore=migrations/{0000..1000}_something --disable=C0116 --disable=C0111 --disable=C0114 --exit-zero
${VENV}mypy ${CODE}
black:
${VENV}black ${CODE}
cleanimports:
${VENV}isort ${CODE}
autoflake:
${VENV}autoflake -r -i --remove-all-unused-imports --ignore-init-module-imports ${CODE}
clean-lint: autoflake cleanimports black lint