-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (26 loc) · 818 Bytes
/
Makefile
File metadata and controls
34 lines (26 loc) · 818 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
all: ruff flake lint
flake:
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 astropix_analysis bin tests --count --exit-zero --max-complexity=10 --max-line-length=100 --statistics
ruff:
ruff check astropix_analysis bin tests
lint:
pylint astropix_analysis bin tests \
--disable too-many-ancestors \
--disable too-many-arguments \
--disable too-many-function-args \
--disable too-many-instance-attributes \
--disable c-extension-no-member \
--disable use-dict-literal \
--disable too-many-positional-arguments \
--disable too-many-public-methods \
--disable too-many-lines
test:
python -m pytest tests -s
doc:
cd docs; make html
clean:
rm -rf astropix_analysis/__pycache__ tests/__pycache__ .pytest_cache
cleandoc:
cd docs; make clean
cleanall: clean cleandoc