Skip to content

Commit 2ab2460

Browse files
authored
REL: dev into master for version 0.1.0-rc.1 (#1)
1 parent 5928c5b commit 2ab2460

File tree

11 files changed

+1160
-80
lines changed

11 files changed

+1160
-80
lines changed

.bumpversion.cfg

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
[bumpversion]
2+
current_version = 0.1.0-rc.1
3+
commit = True
4+
tag_name = v{new_version}
5+
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(-(?P<release>rc)\.(?P<build>\d+))?
6+
serialize =
7+
{major}.{minor}.{patch}-{release}.{build}
8+
{major}.{minor}.{patch}
9+
10+
[bumpversion:part:release]
11+
optional_value = final
12+
first_value = rc
13+
values =
14+
rc
15+
final
16+
17+
[bumpversion:part:build]
18+
first_value = 1
19+
20+
[bumpversion:file:pyproject.toml]
21+
search = version = "{current_version}"
22+
replace = version = "{new_version}"
23+
24+
[bumpversion:file:src/utt_balance/__init__.py]
25+
search = __version__ = "{current_version}"
26+
replace = __version__ = "{new_version}"

.github/workflows/unit-tests.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: unit-tests
2+
3+
on:
4+
push:
5+
branches:
6+
- dev
7+
pull_request:
8+
9+
jobs:
10+
test:
11+
name: run unit tests via pytest
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
python-version: ["3.10", "3.11", "3.12", "3.13"]
16+
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v4
20+
21+
- name: Set up Python ${{ matrix.python-version }}
22+
uses: actions/setup-python@v5
23+
with:
24+
python-version: ${{ matrix.python-version }}
25+
26+
- name: Display Python version
27+
run: python -c "import sys; print(sys.version)"
28+
29+
- name: Install dependencies
30+
run: |
31+
python -m pip install --upgrade pip
32+
pip install -e ".[dev]"
33+
34+
- name: Run tests
35+
run: pytest
36+
37+
- name: Complete messsge
38+
run: echo "unit tests completed"

.gitignore

Lines changed: 17 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Byte-compiled / optimized / DLL files
22
__pycache__/
3-
*.py[codz]
3+
*.py[cod]
44
*$py.class
55

66
# C extensions
@@ -27,8 +27,6 @@ share/python-wheels/
2727
MANIFEST
2828

2929
# PyInstaller
30-
# Usually these files are written by a python script from a template
31-
# before PyInstaller builds the exe, so as to inject date/other infos into it.
3230
*.manifest
3331
*.spec
3432

@@ -46,7 +44,7 @@ htmlcov/
4644
nosetests.xml
4745
coverage.xml
4846
*.cover
49-
*.py.cover
47+
*.py,cover
5048
.hypothesis/
5149
.pytest_cache/
5250
cover/
@@ -83,48 +81,12 @@ profile_default/
8381
ipython_config.py
8482

8583
# pyenv
86-
# For a library or package, you might want to ignore these files since the code is
87-
# intended to run in multiple environments; otherwise, check them in:
88-
# .python-version
84+
.python-version
8985

9086
# pipenv
91-
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92-
# However, in case of collaboration, if having platform-specific dependencies or dependencies
93-
# having no cross-platform support, pipenv may install dependencies that don't work, or not
94-
# install all needed dependencies.
95-
#Pipfile.lock
96-
97-
# UV
98-
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
99-
# This is especially recommended for binary packages to ensure reproducibility, and is more
100-
# commonly ignored for libraries.
101-
#uv.lock
102-
103-
# poetry
104-
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
105-
# This is especially recommended for binary packages to ensure reproducibility, and is more
106-
# commonly ignored for libraries.
107-
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
108-
#poetry.lock
109-
#poetry.toml
110-
111-
# pdm
112-
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
113-
# pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
114-
# https://pdm-project.org/en/latest/usage/project/#working-with-version-control
115-
#pdm.lock
116-
#pdm.toml
117-
.pdm-python
118-
.pdm-build/
119-
120-
# pixi
121-
# Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
122-
#pixi.lock
123-
# Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
124-
# in the .venv directory. It is recommended not to include this directory in version control.
125-
.pixi
126-
127-
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
87+
Pipfile.lock
88+
89+
# PEP 582
12890
__pypackages__/
12991

13092
# Celery stuff
@@ -136,7 +98,6 @@ celerybeat.pid
13698

13799
# Environments
138100
.env
139-
.envrc
140101
.venv
141102
env/
142103
venv/
@@ -168,40 +129,16 @@ dmypy.json
168129
# Cython debug symbols
169130
cython_debug/
170131

171-
# PyCharm
172-
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
173-
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
174-
# and can be added to the global gitignore or merged into this file. For a more nuclear
175-
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
176-
#.idea/
177-
178-
# Abstra
179-
# Abstra is an AI-powered process automation framework.
180-
# Ignore directories containing user credentials, local state, and settings.
181-
# Learn more at https://abstra.io/docs
182-
.abstra/
183-
184-
# Visual Studio Code
185-
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
186-
# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
187-
# and can be added to the global gitignore or merged into this file. However, if you prefer,
188-
# you could uncomment the following to ignore the entire vscode folder
189-
# .vscode/
190-
191-
# Ruff stuff:
192-
.ruff_cache/
193-
194-
# PyPI configuration file
195-
.pypirc
132+
# IDEs
133+
.idea/
134+
.vscode/
135+
*.swp
136+
*.swo
137+
*~
196138

197-
# Cursor
198-
# Cursor is an AI-powered code editor. `.cursorignore` specifies files/directories to
199-
# exclude from AI features like autocomplete and code analysis. Recommended for sensitive data
200-
# refer to https://docs.cursor.com/context/ignore-files
201-
.cursorignore
202-
.cursorindexingignore
139+
# OS
140+
.DS_Store
141+
Thumbs.db
203142

204-
# Marimo
205-
marimo/_static/
206-
marimo/_lsp/
207-
__marimo__/
143+
# Project specific
144+
.ruff_cache/

.pre-commit-config.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.6.0
4+
hooks:
5+
- id: trailing-whitespace
6+
exclude: ^\.bumpversion\.cfg$
7+
- id: end-of-file-fixer
8+
- id: check-yaml
9+
- id: check-added-large-files
10+
11+
- repo: https://github.com/astral-sh/ruff-pre-commit
12+
rev: v0.8.0
13+
hooks:
14+
- id: ruff
15+
args: [--fix]
16+
- id: ruff-format
17+
18+
- repo: local
19+
hooks:
20+
- id: ty
21+
name: ty type check
22+
entry: ty check src/
23+
language: system
24+
types: [python]
25+
pass_filenames: false
26+
27+
- id: pytest
28+
name: pytest
29+
entry: pytest
30+
language: system
31+
types: [python]
32+
pass_filenames: false

0 commit comments

Comments
 (0)