File size: 383 Bytes
3adea03
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
.PHONY: quality style

check_dirs := promptsource

# Check that source code meets quality standards

quality:
	black --check --line-length 119 --target-version py38 $(check_dirs)
	isort --check-only $(check_dirs)
	flake8 $(check_dirs) --max-line-length 119

# Format source code automatically

style:
	black --line-length 119 --target-version py38 $(check_dirs)
	isort $(check_dirs)