Skip to content
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.

Commit

Permalink
chore: crlf -> lf
Browse files Browse the repository at this point in the history
  • Loading branch information
Mouwrice committed Apr 29, 2024
1 parent 615e066 commit 49cfea0
Show file tree
Hide file tree
Showing 12 changed files with 712 additions and 712 deletions.
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* text=lf
* text=lf
48 changes: 24 additions & 24 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
on:
push:
branches:
- main

permissions:
contents: write
pull-requests: write

name: Release Please

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v4
with:
# this assumes that you have created a personal access token
# (PAT) and configured it as a GitHub action secret named
# `MY_RELEASE_PLEASE_TOKEN` (this secret name is not important).
token: ${{ secrets.RELEASE_PLEASE_PAT }}
# this is a built-in strategy in release-please, see "Action Inputs"
# for more options
release-type: python
on:
push:
branches:
- main

permissions:
contents: write
pull-requests: write

name: Release Please

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v4
with:
# this assumes that you have created a personal access token
# (PAT) and configured it as a GitHub action secret named
# `MY_RELEASE_PLEASE_TOKEN` (this secret name is not important).
token: ${{ secrets.RELEASE_PLEASE_PAT }}
# this is a built-in strategy in release-please, see "Action Inputs"
# for more options
release-type: python
82 changes: 41 additions & 41 deletions .github/workflows/ruff.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
name: Ruff

on:
push:
branches: [ main ]
pull_request:

jobs:
ruff:
runs-on: ubuntu-latest
name: Ruff

steps:
- name: Check-out repository
uses: actions/checkout@v4.1.4

- name: Install Poetry
uses: snok/install-poetry@v1

- name: Export dependencies
run: poetry export -f requirements.txt --output requirements.txt --without-hashes

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'
cache-dependency-path: |
**/requirements*.txt
- name: Install Dependencies
run: |
pip install -r requirements.txt
- uses: chartboost/ruff-action@v1
name: Ruff Lint

- uses: chartboost/ruff-action@v1
name: Ruff Format Check
with:
args: 'format --check'
name: Ruff

on:
push:
branches: [ main ]
pull_request:

jobs:
ruff:
runs-on: ubuntu-latest
name: Ruff

steps:
- name: Check-out repository
uses: actions/checkout@v4.1.4

- name: Install Poetry
uses: snok/install-poetry@v1

- name: Export dependencies
run: poetry export -f requirements.txt --output requirements.txt --without-hashes

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'
cache-dependency-path: |
**/requirements*.txt
- name: Install Dependencies
run: |
pip install -r requirements.txt
- uses: chartboost/ruff-action@v1
name: Ruff Lint

- uses: chartboost/ruff-action@v1
name: Ruff Format Check
with:
args: 'format --check'
52 changes: 26 additions & 26 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Changelog

# Changelog

## [0.2.1](https://github.com/Mouwrice/DrumPy/compare/v0.2.0...v0.2.1) (2024-04-27)


Expand Down Expand Up @@ -97,28 +97,28 @@
* delete unneeded resources ([1a4a465](https://github.com/Mouwrice/DrumPy/commit/1a4a46546bc93393b683d937e08881c957b21d21))
* upload to release ([84ec35c](https://github.com/Mouwrice/DrumPy/commit/84ec35c06c733c83a3ab4be709bec3eeeb564eab))

## [0.1.0](https://github.com/Mouwrice/DrumPy/compare/v0.0.1...v0.1.0) (2024-04-24)


### Features

* add drum back ([de38177](https://github.com/Mouwrice/DrumPy/commit/de3817793984798ca07988fdd7fb2ceb1042f4f2))
* build linux binary script ([fa4fbc9](https://github.com/Mouwrice/DrumPy/commit/fa4fbc9a01be0269ffe7409ef65802f50f4d8c04))
* cli ([7a7cacb](https://github.com/Mouwrice/DrumPy/commit/7a7cacb53abcba28d0b719f9af0a04dc6fa33419))
* init result processor ([a27bfe8](https://github.com/Mouwrice/DrumPy/commit/a27bfe8e7fefb897e7a4dd5bb38c036c58566c19))
* interpolate between predicted and actual landmark position ([0cc5fa6](https://github.com/Mouwrice/DrumPy/commit/0cc5fa674d07efed3df817151fcb78566bfe6bf0))
* normalized vs world coords ([b4abab9](https://github.com/Mouwrice/DrumPy/commit/b4abab9f1c1fb135f64fd191830a36786e1f0d52))
* parameter fine tuning ([c83350e](https://github.com/Mouwrice/DrumPy/commit/c83350eb103203cfd13d001a11df267c446d504b))
* predict and smooth results ([9dc8611](https://github.com/Mouwrice/DrumPy/commit/9dc8611357221844ec8ecdacfb5ead9874d37a68))
* qtm label to marker enum ([d4912ba](https://github.com/Mouwrice/DrumPy/commit/d4912babb3b880d87ef9d109b9e222e446fd64e8))
* square input ratio ([2777a3c](https://github.com/Mouwrice/DrumPy/commit/2777a3c50d7c034ddf88453d0cab895209b9649c))


### Bug Fixes

* **deps:** update dependency pygame-gui to v0.6.10 ([#36](https://github.com/Mouwrice/DrumPy/issues/36)) ([a268e7e](https://github.com/Mouwrice/DrumPy/commit/a268e7e548dcd581bc9b43b322d059c894951f4a))
* **deps:** use poetry build system ([e8f7230](https://github.com/Mouwrice/DrumPy/commit/e8f72308161b0fa58296607427febdb21f6eb455))
* fix refactor issues ([4bed9dd](https://github.com/Mouwrice/DrumPy/commit/4bed9ddb551fffc511b1779aec962c996b7a17c6))
* fix writing to file ([bd9ee9a](https://github.com/Mouwrice/DrumPy/commit/bd9ee9a032fdc344f15b2de408e84fbbaef10672))
* intellij stuff ([f93571c](https://github.com/Mouwrice/DrumPy/commit/f93571c58e588dbb5a080055e74316a45fd4dd16))
## [0.1.0](https://github.com/Mouwrice/DrumPy/compare/v0.0.1...v0.1.0) (2024-04-24)


### Features

* add drum back ([de38177](https://github.com/Mouwrice/DrumPy/commit/de3817793984798ca07988fdd7fb2ceb1042f4f2))
* build linux binary script ([fa4fbc9](https://github.com/Mouwrice/DrumPy/commit/fa4fbc9a01be0269ffe7409ef65802f50f4d8c04))
* cli ([7a7cacb](https://github.com/Mouwrice/DrumPy/commit/7a7cacb53abcba28d0b719f9af0a04dc6fa33419))
* init result processor ([a27bfe8](https://github.com/Mouwrice/DrumPy/commit/a27bfe8e7fefb897e7a4dd5bb38c036c58566c19))
* interpolate between predicted and actual landmark position ([0cc5fa6](https://github.com/Mouwrice/DrumPy/commit/0cc5fa674d07efed3df817151fcb78566bfe6bf0))
* normalized vs world coords ([b4abab9](https://github.com/Mouwrice/DrumPy/commit/b4abab9f1c1fb135f64fd191830a36786e1f0d52))
* parameter fine tuning ([c83350e](https://github.com/Mouwrice/DrumPy/commit/c83350eb103203cfd13d001a11df267c446d504b))
* predict and smooth results ([9dc8611](https://github.com/Mouwrice/DrumPy/commit/9dc8611357221844ec8ecdacfb5ead9874d37a68))
* qtm label to marker enum ([d4912ba](https://github.com/Mouwrice/DrumPy/commit/d4912babb3b880d87ef9d109b9e222e446fd64e8))
* square input ratio ([2777a3c](https://github.com/Mouwrice/DrumPy/commit/2777a3c50d7c034ddf88453d0cab895209b9649c))


### Bug Fixes

* **deps:** update dependency pygame-gui to v0.6.10 ([#36](https://github.com/Mouwrice/DrumPy/issues/36)) ([a268e7e](https://github.com/Mouwrice/DrumPy/commit/a268e7e548dcd581bc9b43b322d059c894951f4a))
* **deps:** use poetry build system ([e8f7230](https://github.com/Mouwrice/DrumPy/commit/e8f72308161b0fa58296607427febdb21f6eb455))
* fix refactor issues ([4bed9dd](https://github.com/Mouwrice/DrumPy/commit/4bed9ddb551fffc511b1779aec962c996b7a17c6))
* fix writing to file ([bd9ee9a](https://github.com/Mouwrice/DrumPy/commit/bd9ee9a032fdc344f15b2de408e84fbbaef10672))
* intellij stuff ([f93571c](https://github.com/Mouwrice/DrumPy/commit/f93571c58e588dbb5a080055e74316a45fd4dd16))
* processing ([c513005](https://github.com/Mouwrice/DrumPy/commit/c5130056ff44817c7052019cad088b723fad4f39))
108 changes: 54 additions & 54 deletions DEVELOPING.md
Original file line number Diff line number Diff line change
@@ -1,54 +1,54 @@
# Development guide

## Project structure

This python project is built using the [poetry](https://python-poetry.org/) dependency manager.
All the project dependencies are defined in the `pyproject.toml` file. The code resides in the `drumpy` folder.

Some tools are used to maintain the code quality and to automate the development process. These tools are defined in the `pyproject.toml` file as well.
These are:
- [ruff](https://docs.astral.sh/ruff/) for code formatting and linting. With optionally the ruff-lsp extension for providing integration in the editor.
- [pyright](https://github.com/microsoft/pyright) for static type checking.
- [deptry](https://deptry.com/) to check for issues with dependencies, such as unused or missing dependencies.
- [pre-commit](https://pre-commit.com/) to run the above tools before committing changes.

## GitHub Actions

The project uses GitHub actions to automate the release and deployment process. The workflow files are defined in the `.github/workflows` folder.

### Release Please (https://github.com/googleapis/release-please)

The [release-please-action](https://github.com/marketplace/actions/release-please-action) is used to automate the release process. It creates a pull request with the changes in the `CHANGELOG.md` file and the version bump in the `pyproject.toml` file.
Based on the commit messages, it determines the type of change and the version bump.

### Docker build and push

The `docker.yml` workflow file builds the docker image and pushes it to the GitHub Container Registry.

### Nuitka build

The `nuitka.yml` workflow file builds the application using [Nuitka](https://nuitka.net/) and uploads the binaries as an artifact.
Note that the nuitka build action installs the dependencies using pip and requires the `requirements.txt` file to be present.
This file is generated using the `poetry export` command.
```shell
poetry export -f requirements.txt --output requirements.txt --without-hashes
```
This command is executed in the `nuitka.yml` workflow file, so it is not necessary to run it manually.
It is provided by the [Poetry Export Plugin](https://github.com/python-poetry/poetry-plugin-export).


#### Building locally

For testing and debugging purposes, it is possible to build the application locally using Nuitka.
You can find the required nuitka command in the [build_exe.nu](build_exe.nu) file. Or you can run the following command:
```shell
poetry run python -m nuitka
--include-plugin-directory=.venv/Lib/site-packages/pygame_gui/data/
--include-data-files=.venv/Lib/site-packages/pygame_gui/data/*.*=pygame_gui/data/
--include-data-files=.venv/Lib/site-packages/pygame_gui/data/translations/*=pygame_gui/data/translations/
--include-data-files=./*.task=./
--include-data-dir=./DrumSamples=./DrumSamples
--enable-console
--enable-plugin=no-qt
--standalone ./drumpy/cli.py
```
# Development guide

## Project structure

This python project is built using the [poetry](https://python-poetry.org/) dependency manager.
All the project dependencies are defined in the `pyproject.toml` file. The code resides in the `drumpy` folder.

Some tools are used to maintain the code quality and to automate the development process. These tools are defined in the `pyproject.toml` file as well.
These are:
- [ruff](https://docs.astral.sh/ruff/) for code formatting and linting. With optionally the ruff-lsp extension for providing integration in the editor.
- [pyright](https://github.com/microsoft/pyright) for static type checking.
- [deptry](https://deptry.com/) to check for issues with dependencies, such as unused or missing dependencies.
- [pre-commit](https://pre-commit.com/) to run the above tools before committing changes.

## GitHub Actions

The project uses GitHub actions to automate the release and deployment process. The workflow files are defined in the `.github/workflows` folder.

### Release Please (https://github.com/googleapis/release-please)

The [release-please-action](https://github.com/marketplace/actions/release-please-action) is used to automate the release process. It creates a pull request with the changes in the `CHANGELOG.md` file and the version bump in the `pyproject.toml` file.
Based on the commit messages, it determines the type of change and the version bump.

### Docker build and push

The `docker.yml` workflow file builds the docker image and pushes it to the GitHub Container Registry.

### Nuitka build

The `nuitka.yml` workflow file builds the application using [Nuitka](https://nuitka.net/) and uploads the binaries as an artifact.
Note that the nuitka build action installs the dependencies using pip and requires the `requirements.txt` file to be present.
This file is generated using the `poetry export` command.
```shell
poetry export -f requirements.txt --output requirements.txt --without-hashes
```
This command is executed in the `nuitka.yml` workflow file, so it is not necessary to run it manually.
It is provided by the [Poetry Export Plugin](https://github.com/python-poetry/poetry-plugin-export).


#### Building locally

For testing and debugging purposes, it is possible to build the application locally using Nuitka.
You can find the required nuitka command in the [build_exe.nu](build_exe.nu) file. Or you can run the following command:
```shell
poetry run python -m nuitka
--include-plugin-directory=.venv/Lib/site-packages/pygame_gui/data/
--include-data-files=.venv/Lib/site-packages/pygame_gui/data/*.*=pygame_gui/data/
--include-data-files=.venv/Lib/site-packages/pygame_gui/data/translations/*=pygame_gui/data/translations/
--include-data-files=./*.task=./
--include-data-dir=./DrumSamples=./DrumSamples
--enable-console
--enable-plugin=no-qt
--standalone ./drumpy/cli.py
```
18 changes: 9 additions & 9 deletions build_exe.nu
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
(poetry run python -m nuitka
--include-plugin-directory=.venv/Lib/site-packages/pygame_gui/data/
--include-data-files=.venv/Lib/site-packages/pygame_gui/data/*.*=pygame_gui/data/
--include-data-files=.venv/Lib/site-packages/pygame_gui/data/translations/*=pygame_gui/data/translations/
--include-data-dir=./resources=./resources
--enable-console
--enable-plugin=no-qt
--standalone ./drumpy/cli.py
)
(poetry run python -m nuitka
--include-plugin-directory=.venv/Lib/site-packages/pygame_gui/data/
--include-data-files=.venv/Lib/site-packages/pygame_gui/data/*.*=pygame_gui/data/
--include-data-files=.venv/Lib/site-packages/pygame_gui/data/translations/*=pygame_gui/data/translations/
--include-data-dir=./resources=./resources
--enable-console
--enable-plugin=no-qt
--standalone ./drumpy/cli.py
)
Loading

0 comments on commit 49cfea0

Please sign in to comment.