Revision cce56f83db35c7f3e9c50cd00006d82a5c69a5db authored by sc336 on 02 December 2022, 15:19:29 UTC, committed by GitHub on 02 December 2022, 15:19:29 UTC
* Avoid loss of precision in to_default_float when input is a python float (#2021) * avoid loss of precision in to_default_float * add tests * release management * Updated to compensate for new mypy version (#2016) * Updated to ignore mypy's new type-abstract error * Looks like mypy won't quit on this one. * More type hinting * Sort * Another try * Another try * Another try * Go away mypy * format * More mypy wards * Is this error connected? * Removed unnecessary dummy package * Another mypy error * Format * Fix mypy error. (#2009) Co-authored-by: sc336 <s.chiu.00@gmail.com> Co-authored-by: Jesper Nielsen <44195043+jesnie@users.noreply.github.com> * Some corrections to RELEASE.md (#2022) * Update VERSION * Update version Co-authored-by: John Mcleod <43960404+johnamcleod@users.noreply.github.com> Co-authored-by: Jesper Nielsen <44195043+jesnie@users.noreply.github.com> Co-authored-by: Chris Morter <chris@prowler.io>
1 parent ef0b32c
Makefile
NOTEBOOK_BLACK_CONFIG=-t py37 -l 80
NOTEBOOK_BLACK_TARGETS=doc/sphinx/notebooks
NOTEBOOK_ISORT_CONFIG=--atomic -l 80 --trailing-comma --remove-redundant-aliases --multi-line 3
NOTEBOOK_ISORT_TARGETS=doc/sphinx/notebooks
BLACK_CONFIG=-t py37 -l 100
BLACK_TARGETS=gpflow tests benchmark doc/*.py setup.py
ISORT_CONFIG=--atomic -l 100 --trailing-comma --remove-redundant-aliases --multi-line 3
ISORT_TARGETS=gpflow tests benchmark doc/*.py setup.py
MYPY_TARGETS=gpflow tests benchmark doc/*.py doc/sphinx/notebooks/getting_started setup.py
.PHONY: help clean dev-install install package format format-check type-check test check-all
help:
@echo "The following make targets are available:"
@echo " dev-install install all dependencies for dev environment and sets a egg link to the project sources"
@echo " install install all dependencies and the project in the current environment"
@echo " package build pip package"
@echo " clean removes package, build files and egg info"
@echo " format auto-format code"
@echo " format-check check that code has been formatted correctly"
@echo " type-check check that mypy is happy with type annotations"
@echo " test run all tests"
@echo " check-all run format-check, type-check, and test (as run by the continuous integration system)"
clean:
rm -rf dist *.egg-info build
dev-install:
pip install -r tests_requirements.txt -e .
install:
pip install .
package:
python setup.py bdist
format:
black $(BLACK_CONFIG) $(BLACK_TARGETS)
black $(NOTEBOOK_BLACK_CONFIG) $(NOTEBOOK_BLACK_TARGETS)
isort $(ISORT_CONFIG) $(ISORT_TARGETS)
isort $(NOTEBOOK_ISORT_CONFIG) $(NOTEBOOK_ISORT_TARGETS)
format-check:
black --check $(BLACK_CONFIG) $(BLACK_TARGETS)
black --check $(NOTEBOOK_BLACK_CONFIG) $(NOTEBOOK_BLACK_TARGETS)
isort --check-only $(ISORT_CONFIG) $(ISORT_TARGETS)
isort --check-only $(NOTEBOOK_ISORT_CONFIG) $(NOTEBOOK_ISORT_TARGETS)
type-check:
mypy `python -m gpflow.mypy_flags` $(MYPY_TARGETS)
test:
pytest -n auto --dist loadfile -v --durations=10 tests/
check-all: format-check type-check test
Computing file changes ...