File: Makefile

package info (click to toggle)
staticsite 2.5-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 14,648 kB
  • sloc: javascript: 33,722; python: 9,851; makefile: 46; sh: 4
file content (32 lines) | stat: -rw-r--r-- 636 bytes parent folder | download
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
PYTHON_ENVIRONMENT := PYTHONASYNCDEBUG=1 PYTHONDEBUG=1

check: flake8 mypy

format: pyupgrade autoflake isort black

pyupgrade:
	pyupgrade --exit-zero-even-if-changed --py311-plus ssite $(shell find staticsite tests -name "*.py")

black:
	black ssite staticsite tests

autoflake:
	autoflake --in-place --recursive ssite staticsite tests

isort:
	isort ssite staticsite tests

flake8:
	flake8 ssite staticsite tests

mypy:
	mypy ssite staticsite tests

unittest:
	$(PYTHON_ENVIRONMENT) nose2-3

coverage:
	$(PYTHON_ENVIRONMENT) nose2-3 --coverage staticsite --coverage-report html 

.PHONY: check pyupgrade black mypy unittest coverage