Skip to content

Commit 9c9b145

Browse files
committed
Initial commit - final submission version
0 parents  commit 9c9b145

File tree

104 files changed

+7983
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+7983
-0
lines changed

.github/workflows/test.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Test
2+
3+
on: push
4+
5+
jobs:
6+
test:
7+
name: python
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v4
12+
13+
- name: Install uv & python
14+
uses: astral-sh/setup-uv@v5
15+
16+
- name: Install dependencies
17+
run: |
18+
uv sync
19+
20+
- name: Run tests
21+
run: |
22+
uv run pytest

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
*.pyc
2+
*.egg-info
3+
__pycache__
4+
runs/
5+
build/

.pre-commit-config.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
repos:
2+
- repo: https://github.com/astral-sh/ruff-pre-commit
3+
# Ruff version.
4+
rev: v0.11.7
5+
hooks:
6+
# Run the linter.
7+
- id: ruff
8+
types_or: [python, pyi]
9+
args: [--fix]
10+
# Run the formatter.
11+
- id: ruff-format
12+
types_or: [python, pyi]

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.12

.vscode/extensions.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"recommendations": [
3+
"charliermarsh.ruff",
4+
"ms-python.vscode-pylance",
5+
"ms-python.python"
6+
]
7+
}

.vscode/launch.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "Python Debugger: Module",
9+
"type": "debugpy",
10+
"request": "launch",
11+
"module": "audi"
12+
}
13+
]
14+
}

.vscode/settings.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"python.languageServer": "Pylance",
3+
"[python]": {
4+
"editor.codeActionsOnSave": {
5+
"source.fixAll": "explicit"
6+
},
7+
"editor.defaultFormatter": "charliermarsh.ruff"
8+
},
9+
"editor.formatOnSave": true,
10+
"python.testing.pytestArgs": [
11+
"."
12+
],
13+
"python.testing.unittestEnabled": false,
14+
"python.testing.pytestEnabled": true
15+
}

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 Konstantin
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Setup
2+
3+
1. Install uv
4+
2. `uv sync` (Install all dependencies)
5+
3. `uv run pre-commit install` (Install commit hook)
6+
7+
Run any file with `uv run ...`
8+
9+
## Adding new modules
10+
11+
- Always define `type` with a default value
12+
- Register them in runner
13+
14+
# Testing
15+
16+
Run tests with `uv run pytest`

auditory_model/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)