Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
.DEFAULT_GOAL := help

.PHONY: help
help:
@echo "Please use 'make <target>' where <target> is one of:"
@echo ""
@echo " format-check Formatting tools: only checks for errors"
@echo " format-fix Formatting tools: fixes errors where possible"
@echo " lint-check Linting tools: only checks for errors"
@echo " type-check Static type checker: only checks for errors"
@echo " docstring-check Docstring checker: checks missing doctrings"
@echo " static-check Runs format-check, lint and typing"
@echo " static-fix Runs format-fix, lint and typing"
@echo " unit-test Runs the unit tests"
@echo " run-examples runs the examples in the example folder."

.PHONY: format-check
format-check:
black --check examples/ src/ tests/
isort --check-only --profile black examples/ src/ tests/

.PHONY: format-fix
format-fix:
black examples/ src/ tests/
isort --profile black examples/ src/ tests/

.PHONY: lint-check
lint-check:
flake8 examples/ src/ tests/

.PHONY: type-check
type-check:
mypy examples/ src/ tests/

.PHONY: docstring-check
docstring-check:
pydocstyle examples/ src/ tests/

.PHONY: static-check
static-check: format-check lint-check type-check

.PHONY: static-fix
static-fix: format-fix lint-check type-check

.PHONY: unit-test
unit-test:
pytest --cov-report term-missing --cov=src/ -vv -W ignore::DeprecationWarning

.PHONY: run-examples
run-examples:
examples/run_examples.sh
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ If you wish to find more about it you can check my thesis where I give a brief e

```
-------------------------

2018-2025 [João Camacho](https://github.com/jdavidrcamacho)

19 changes: 0 additions & 19 deletions artgpn/__init__.py

This file was deleted.

1 change: 1 addition & 0 deletions examples/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Examples folder"""
1,263 changes: 1,263 additions & 0 deletions poetry.lock

Large diffs are not rendered by default.

46 changes: 46 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
[tool.isort]
profile = "black"

[tool.pytest.ini_options]
testpaths = [
"tests",
]

[tool.coverage.run]
omit = [
"tests/*"
]

[tool.poetry]
name = "artgpn"
version = "2.0.0"
description = "implementation of a ARTificial Gaussian Processes Network in python3"
authors = ["joao.camacho <joao.camacho@astro.up.pt>"]
repository = "https://github.com/jdavidrcamacho/artgpn"
license = "MIT"
readme = "README.md"

[tool.poetry.dependencies]
python = "^3.11"
numpy = "^2.0.1"
scipy = "^1.14.0"
emcee = "^3.1.6"
matplotlib = "^3.9.1"
loguniform = "^2.0.1"
corner = "^2.2.2"
ipython = "^8.26.0"
dynesty = "^2.1.5"

[tool.poetry.group.dev.dependencies]
black = "*"
flake8 = "*"
mypy = "*"
pytest = "*"
pytest-cov = "*"
pydocstyle = "*"
isort = "*"


[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
8 changes: 0 additions & 8 deletions requirements.txt

This file was deleted.

19 changes: 0 additions & 19 deletions setup.py

This file was deleted.

3 changes: 3 additions & 0 deletions src/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
"""Source code folder."""

__version__ = "2.0.0"
1 change: 1 addition & 0 deletions src/artgpn/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""artgpn main folder"""
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Tests folder"""