microsoft/TypeAgent

Public

mirrored from https://github.com/microsoft/TypeAgentAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
aeb802854fa1b0f1aa92f4ccbf839cb2a48ad3cb

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

python/ta/Makefile

45lines · modecode

1# Copyright (c) Microsoft Corporation.
2# Licensed under the MIT License.
3
4# This is Guido's Makefile. Please don't make it complicated.
5
6.PHONY: all
7all: venv format check test build
8
9.PHONY: format
10format: venv
11 venv/bin/black typeagent
12
13.PHONY: check
14check: venv
15 venv/bin/pyright --pythonpath venv/bin/python typeagent
16
17.PHONY: test
18test: venv
19 venv/bin/python -m typeagent.memconv testdata/npr.txt
20
21.PHONY: build
22build: venv
23 venv/bin/python -m build --wheel
24
25# Not phony -- the venv directory is the product of this rule.
26venv:
27 python -m venv venv || (rm -rf venv && exit 1)
28 venv/bin/pip -q install -r requirements.txt
29
30.PHONY: clean
31clean:
32 rm -rf build dist venv *.egg-info
33
34.PHONY: help
35help:
36 @echo "Usage: make [target]"
37 @echo "make help # Help (this message)"
38 @echo "make # Same as 'make all'"
39 @echo "make all # venv, format, check, test, build"
40 @echo "make format # Run black"
41 @echo "make check # Run pyright"
42 @echo "make test # Run import_podcast test"
43 @echo "make build # Build the wheel (under dist/)"
44 @echo "make venv # Create venv/"
45 @echo "make clean # Remove build/, dist/, venv/, *.egg-info/"
46