-
Notifications
You must be signed in to change notification settings - Fork 26
/
Makefile
69 lines (51 loc) · 1.48 KB
/
Makefile
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
install:
@pip install ".[dev,test]" .
@pnpm install
@pre-commit install
check:
@trufflehog --debug --only-verified git file://./ --since-commit main --branch HEAD --fail
@ggshield secret scan repo .
@pre-commit run --all-files
codeql:
@codeql database create --source-root yawsso/ --language=python local/codeqldb --overwrite
@codeql query run -d local/codeqldb/ ~/Projects/oss/codeql/python/ql/src/Security/CWE-312/CleartextLogging.ql
codeclimate:
@codeclimate analyze yawsso
cc: codeclimate
test:
@py.test
unit:
@python -m unittest
coverage:
@coverage run --source=yawsso -m pytest --cov-report xml tests/
coveralls: coverage
@coveralls
tox:
@tox -vv
nose:
@nose2 -vv
tf:
@AWS_PROFILE=dev terraform refresh
smoke:
@terraform plan
@npx cdk synth --app "python cdk.py" --profile dev
@AWS_PROFILE=dev cw ls groups
.PHONY: doc
doc:
@py.test --cov-report html:local/coverage --cov=yawsso tests/
@py.test --cov-report xml:local/coverage.xml --cov=yawsso tests/
clean:
@rm -rf build/
@rm -rf yawsso.egg-info/
.PHONY: dist
dist: clean
@python3 -m build
# Usage: make ver version=0.1.0
ver: dist/yawsso-$(version).tar.gz
@echo $(version)
testpypi: dist/yawsso-$(version).tar.gz
@python3 -m twine upload --repository testpypi dist/yawsso-$(version).tar.gz
@python3 -m twine upload --repository testpypi dist/yawsso-$(version)-*.whl
pypi: dist/yawsso-$(version).tar.gz
@python3 -m twine upload dist/yawsso-$(version).tar.gz
@python3 -m twine upload dist/yawsso-$(version)-*.whl