@@ -26,9 +26,6 @@ build: buildext ## build the package
26
26
debug : # # build debug build of the package
27
27
DEBUG=1 $(PYTHON ) setup.py build
28
28
29
- js : # # build the js assets
30
- cd js; yarn build
31
-
32
29
install : # # install the package
33
30
$(PYTHON ) -m pip install .
34
31
@@ -41,9 +38,6 @@ testpycpp: ## Make unit tests
41
38
# AAT_USE_CPP=1 $(PYTHON) -m pytest -vvv ./aat/tests --cov=aat --junitxml=python_junit.xml --cov-report=xml --cov-branch --capture=no
42
39
AAT_USE_CPP=1 $(PYTHON ) -m pytest -vs ./aat/tests
43
40
44
- testjs : # # Make js tests
45
- cd js; yarn test
46
-
47
41
testruns : testrunscsv testrunsiex # # Run a few examples as a live end-to-end test
48
42
49
43
testrunscsv :
@@ -57,28 +51,22 @@ testrunsiex:
57
51
TESTING=1 $(PYTHON ) -m aat.strategy.sample.iex.momentum
58
52
TESTING=1 $(PYTHON ) -m aat.strategy.sample.iex.golden_death
59
53
60
- lint : lintpy lintjs lintcpp # # run all linters
54
+ lint : lintpy lintcpp # # run all linters
61
55
62
56
lintpy : # # run python linter
63
57
$(PYTHON ) -m flake8 aat setup.py
64
58
65
- lintjs : # # run js linter
66
- cd js; yarn lint
67
-
68
59
lintcpp : # # run cpp linter
69
60
cpplint --linelength=120 --recursive aat/cpp/{src,include}
70
61
71
- fix : fixpy fixjs fixcpp # # run all fixers
62
+ fix : fixpy fixcpp # # run all fixers
72
63
73
64
fixpy : # # run autopep8 fix
74
65
$(PYTHON ) -m black aat/ setup.py
75
66
76
67
fixcpp : # # run clang-format
77
68
clang-format -i -style=file ` find ./aat/cpp/{src,include} -name " *.*pp" `
78
69
79
- fixjs : # # run clang-format
80
- cd js; yarn fix
81
-
82
70
annotate : # # MyPy type annotation check
83
71
$(PYTHON ) -m mypy aat
84
72
@@ -92,14 +80,13 @@ docs: ## Build the sphinx docs
92
80
make -C docs html
93
81
open ./docs/_build/html/index.html
94
82
95
- dist : js # # create dists
83
+ dist : # # create dists
96
84
rm -rf dist build
97
85
python setup.py sdist bdist_wheel
98
86
python -m twine check dist/*
99
87
100
88
publish : dist # # dist to pypi and npm
101
89
python -m twine upload dist/* --skip-existing
102
- cd js; npm publish || echo " can't publish - might already exist"
103
90
104
91
clean : # # clean the repository
105
92
find . -name " __pycache__" | xargs rm -rf
@@ -117,5 +104,5 @@ help:
117
104
print-% :
118
105
@echo ' $*=$($*)'
119
106
120
- .PHONY : run buildext build js install tests lint fix docs dist clean help fixcpp
107
+ .PHONY : run buildext build install tests lint fix docs dist clean help fixcpp
121
108
0 commit comments