Skip to content

Commit 94cc935

Browse files
authored
Update Makefile for ruff, remove js stuff
1 parent 78b9548 commit 94cc935

File tree

1 file changed

+13
-28
lines changed

1 file changed

+13
-28
lines changed

Makefile

Lines changed: 13 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,30 @@
11
#########
22
# BUILD #
33
#########
4-
.PHONY: develop build-py build-js build install serverextension labextension
4+
.PHONY: develop build install
55

66
develop: ## install dependencies and build library
77
python -m pip install -e .[develop]
88

9-
build-py: ## build the python library
9+
build: ## build the python library
1010
python setup.py build build_ext --inplace
1111

12-
build: build-py ## build the library
13-
1412
install: ## install library
1513
python -m pip install .
1614

1715
#########
1816
# LINTS #
1917
#########
20-
.PHONY: lint-py lint-js lint-cpp lint lints fix-py fix-js fix-cpp fix format
18+
.PHONY: lint lints fix format
2119

22-
lint-py: ## run python linter with flake8 and black
20+
lint: ## run python linter with ruff
2321
python -m ruff python_template setup.py
24-
python -m black --check python_template setup.py
25-
26-
lint: lint-py ## run all lints
2722

2823
# Alias
2924
lints: lint
3025

31-
fix-py: ## fix python formatting with black
32-
python -m black python_template/ setup.py
33-
python -m ruff python_template/ setup.py --fix
34-
35-
fix: fix-py ## run all autofixers
26+
fix: ## fix python formatting with ruff
27+
python -m ruff format python_template setup.py
3628

3729
# alias
3830
format: fix
@@ -59,18 +51,14 @@ annotate: ## run python type annotation checks with mypy
5951
#########
6052
# TESTS #
6153
#########
62-
.PHONY: test-py test-js coverage-py test coverage tests
54+
.PHONY: test coverage tests
6355

64-
test-py: ## run python tests
56+
test: ## run python tests
6557
python -m pytest -v python_template/tests --junitxml=junit.xml
6658

67-
coverage-py: ## run tests and collect test coverage
59+
coverage: ## run tests and collect test coverage
6860
python -m pytest -v python_template/tests --junitxml=junit.xml --cov=python_template --cov-branch --cov-fail-under=75 --cov-report term-missing --cov-report xml
6961

70-
test: test-py ## run all tests
71-
72-
coverage: coverage-py ## run all tests with coverage collection
73-
7462
# Alias
7563
tests: test
7664

@@ -105,20 +93,17 @@ major: ## bump a major version
10593
########
10694
# DIST #
10795
########
108-
.PHONY: dist-py dist-py-sdist dist-py-local-wheel publish-py publish-js publish
96+
.PHONY: dist dist-build dist-sdist dist-local-wheel publish
10997

110-
dist-py: # build python dists
98+
dist-build: # build python dists
11199
python setup.py sdist bdist_wheel
112100

113101
dist-check: ## run python dist checker with twine
114102
python -m twine check dist/*
115103

116-
dist: clean build dist-py dist-check ## build all dists
117-
118-
publish-py: # publish python assets
119-
python -m twine upload dist/* --skip-existing
104+
dist: clean build dist-build dist-check ## build all dists
120105

121-
publish: dist publish-py ## publish all dists
106+
publish: dist # publish python assets
122107

123108
#########
124109
# CLEAN #

0 commit comments

Comments
 (0)