Skip to content

Commit 1dbf781

Browse files
Prepare for version 0.3.0 (#84)
* Prepare for version 0.3.0 * Fixes * Update changelog --------- Signed-off-by: LouisCarpentier42 <louis.carpentier@kuleuven.be>
1 parent 60ae353 commit 1dbf781

File tree

11 files changed

+74
-11
lines changed

11 files changed

+74
-11
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Changelog updated
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
check-changelog:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
17+
- name: Fetch main branch
18+
run: git fetch origin main
19+
20+
- name: Check if changelog is updated
21+
run: |
22+
if git diff --name-only origin/main ${{ github.sha }} | grep -q 'docs/additional_information/changelog.rst'; then
23+
echo "Changelog has been updated."
24+
else
25+
echo "::error::Changelog has not been updated."
26+
exit 1
27+
fi
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Print statements
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
check-print-statements:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
17+
- name: Check for print statements in source code
18+
run: |
19+
print_files=$(grep -rnw --include="*.py" dtaianomaly -e 'print(' || true)
20+
if [ -n "$print_files" ]; then
21+
echo "::error::Print statements found in the following files and lines:"
22+
echo "$print_files"
23+
exit 1
24+
else
25+
echo "No print statements found."
26+
fi

.github/workflows/unit-tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@ on:
1111

1212
jobs:
1313
unit-test:
14-
runs-on: ubuntu-latest
14+
runs-on: ${{ matrix.os }}
1515

1616
strategy:
1717
fail-fast: false
1818
matrix:
19+
os: [ubuntu-latest, macos-latest, windows-latest]
1920
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
2021

2122
steps:

.readthedocs.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,14 @@ build:
1414
# Build documentation in the "docs/" directory with Sphinx
1515
sphinx:
1616
configuration: docs/conf.py
17+
fail_on_warning: true
1718

1819
# Optional but recommended, declare the Python requirements required
1920
# to build your documentation
2021
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
2122
python:
22-
install:
23-
- requirements: requirements.txt
24-
- requirements: requirements-dev.txt
23+
install:
24+
- method: pip
25+
path: .
26+
extra_requirements:
27+
- docs

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,16 @@
55
<h1 align="center">dtaianomaly</h1>
66
<h2 align="center">Time series anomaly detection</h2>
77

8-
[![Documentation Status](https://readthedocs.org/projects/dtaianomaly/badge/?version=stable)](https://dtaianomaly.readthedocs.io/en/stable/?badge=stable)
8+
[![Unit tests](https://github.com/ML-KULeuven/dtaianomaly/actions/workflows/unit-tests.yml/badge.svg)](https://github.com/ML-KULeuven/dtaianomaly/actions/workflows/unit-tests.yml)
9+
[![Doctest](https://github.com/ML-KULeuven/dtaianomaly/actions/workflows/doctest.yml/badge.svg)](https://github.com/ML-KULeuven/dtaianomaly/actions/workflows/doctest.yml)
10+
[![docs-stable](https://img.shields.io/readthedocs/aeon-toolkit/latest?logo=readthedocs&label=docs%20%28stable%29)](https://dtaianomaly.readthedocs.io/en/stable)
11+
[![docs-latest](https://img.shields.io/readthedocs/aeon-toolkit/latest?logo=readthedocs&label=docs%20%28latest%29)](https://dtaianomaly.readthedocs.io/en/latest)
912
[![PyPi Version](https://img.shields.io/pypi/v/dtaianomaly.svg)](https://pypi.org/project/dtaianomaly/)
1013
[![Downloads](https://static.pepy.tech/badge/dtaianomaly)](https://pepy.tech/project/dtaianomaly)
1114
[![PyPI pyversions](https://img.shields.io/pypi/pyversions/dtaianomaly)](https://pypi.python.org/pypi/dtaianomaly/)
1215
[![PyPI license](https://img.shields.io/pypi/l/dtaianomaly.svg)](https://pypi.python.org/pypi/dtaianomaly/)
16+
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
17+
1318

1419
A simple-to-use Python package for the development and analysis of time series anomaly
1520
detection techniques. Here we describe the main usage of `dtaianomaly`, but be sure to

docs/additional_information/changelog.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ Changelog
44
All notable changes to this project will be documented in this file.
55

66

7-
Latest
8-
------
7+
[0.3.0] - 2025-01-31
8+
--------------------
99

1010
Added
1111
^^^^^

docs/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
# Add any paths that contain custom static files (such as style sheets) here,
7373
# relative to this directory. They are copied after the builtin static files,
7474
# so a file named "default.css" will overwrite the builtin "default.css".
75+
os.makedirs("_static", exist_ok=True) # Ensure the _static directory exists
7576
html_static_path = ['_static']
7677

7778
# -- Options for HTMLHelp output ------------------------------------------

docs/getting_started/examples.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ to implement an anomaly detector), after which the component can be used is if i
5454
is natively a part of ``dtaianomaly``.
5555

5656
.. seealso::
57-
Check out the :doc:`custom model example<examples/custom_models>` for more information!
57+
Check out the :doc:`extensibility example<examples/extensibility>` for more information!
5858

5959

6060
.. rubric:: Quantitative evaluation with a workflow

docs/getting_started/examples/custom_models.rst renamed to docs/getting_started/examples/extensibility.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
:orphan:
22

3-
Custom models
3+
Extensibility
44
=============
55

66
Even though ``dtaianomaly`` already offers a lot of functionality, there is always room

dtaianomaly/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.2.3.dev"
1+
__version__ = "0.3.0"

0 commit comments

Comments
 (0)