-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
54 lines (48 loc) · 1021 Bytes
/
Makefile
File metadata and controls
54 lines (48 loc) · 1021 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
.PHONY: clean
clean:
find . -type f -name '*.pyc' -delete
find . -type d -name '__pycache__' -delete
find packages -type d -name 'build' -exec rm -rf {} +
find packages -type d -name 'dist' -exec rm -rf {} +
find packages -type d -name '*.egg-info' -exec rm -rf {} +
.PHONY: install
install:
./scripts/prepare-dev.sh --clean
./scripts/build-info.sh
.PHONY: dev-install
dev-install:
pip install -r requirements.dev.txt
.PHONY: code-style
code-style:
flake8 \
--count
--max-complexity=12
--max-line-length=130
--statistics \
packages
.PHONY: lint
lint:
pylint \
--rcfile=.pylintrc.ini \
--recursive y \
--verbose \
packages/*/dsw
.PHONY: spelling
spelling:
cspell \
--no-progress \
--no-summary \
--config .cspell/cspell.json \
packages/**/*.py \
packages/**/*.md \
packages/**/*.json \
packages/**/*.toml \
packages/**/*.yml \
packages/**/*.yaml
.PHONY: type-check
type-check:
mypy \
--install-types \
--check-untyped-defs \
--non-interactive \
packages/*/dsw