From 1603e13637d7e6efa0f8886b13b8a15e3835472a Mon Sep 17 00:00:00 2001 From: Marko Hinkkanen <76600872+mhinkkan@users.noreply.github.com> Date: Sun, 8 Sep 2024 13:35:28 +0300 Subject: [PATCH] Add pre-commit to workflow, change the version number (#168) --- docs/source/conf.py | 2 +- docs/source/contributing.rst | 3 ++- pyproject.toml | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index be6e1497..c24810b7 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -25,7 +25,7 @@ author = "Aalto Electric Drives" # The full version, including alpha/beta/rc tags -release = "0.4.0" +release = "0.5.0" # -- General configuration --------------------------------------------------- diff --git a/docs/source/contributing.rst b/docs/source/contributing.rst index d35fc28f..b7a23e0b 100644 --- a/docs/source/contributing.rst +++ b/docs/source/contributing.rst @@ -35,7 +35,8 @@ When contributing code, please follow this workflow: 1. Create a new `issue `_ to discuss your proposal before starting. 2. Create your own fork and clone the repository to your local machine. 3. Commit and push your changes to your fork. -4. When your code is finished, create a pull request. +4. Run ``pre-commit run --all-files`` to ensure that your code is properly formatted. +5. When your code is finished, create a pull request. Once a pull request has been created, it will be reviewed, and changes might be suggested, which you can make by simply adding new commits to your branch. After the successful review, we will merge your changes into the main repository. diff --git a/pyproject.toml b/pyproject.toml index 3a94e826..b5604771 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "motulator" -version = "0.4.0" +version = "0.5.0" dependencies = [ "numpy", "scipy",