Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
ad7d64c
Standardize music21_tools to single quotes per music21 house style
mscuthbert May 25, 2026
54a6072
Adopt music21 style configs and apply ruff safe autofixes
mscuthbert May 25, 2026
80115e9
Apply ruff operator-spacing fixes (E225, E226, E228, E231)
mscuthbert May 25, 2026
368da8e
lint style
mscuthbert May 26, 2026
b868f34
fix reprs
mscuthbert May 26, 2026
c81893b
Apply E712 fixes (== True / == False → bool-direct)
mscuthbert May 26, 2026
9270d63
Soften user-facing text: de-shout and remove mockery
mscuthbert May 26, 2026
cc78910
fix MensuralRest construction
mscuthbert May 26, 2026
74c02dd
missed a line
mscuthbert May 26, 2026
5c86f79
fix short/confusing variable names
mscuthbert May 26, 2026
5e710ad
fix comment spacing
mscuthbert May 26, 2026
d5649f4
fix tests
mscuthbert May 26, 2026
5af5822
More comment linting
mscuthbert May 26, 2026
72bed20
lint (even comments)
mscuthbert May 26, 2026
b8361a0
fix syntax errors.
mscuthbert May 26, 2026
1cd1785
fix syntax errors
mscuthbert May 26, 2026
61ce64b
more syntax errors
mscuthbert May 26, 2026
dceeea6
doctests -- import own files
mscuthbert May 26, 2026
bc704c7
more tests updated
mscuthbert May 26, 2026
30a57f9
wording
mscuthbert May 26, 2026
fe24559
efficiency warnings
mscuthbert May 26, 2026
a8a64ce
ruff and version bump
mscuthbert May 26, 2026
0f77037
more ruff
mscuthbert May 26, 2026
6eaa879
set line widths
mscuthbert May 26, 2026
dcbf176
Add CI workflow + unittest discovery via conftest
mscuthbert May 26, 2026
9155975
Tighten CI workflow and medren isinstance checks
mscuthbert May 26, 2026
e4d85de
returning a value from a Test is deprecated
mscuthbert May 26, 2026
787f8c5
Standardize copyright
mscuthbert May 26, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# For details see http://EditorConfig.org

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true

# Matches multiple files with brace expansion notation
# Set default charset
[*.{js,py}]
charset = utf-8

# 4 space indentation
[*.py]
indent_style = space
indent_size = 4
trim_trailing_whitespace = true
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CI

on:
pull_request:
branches: [master]

jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.11', '3.12', '3.13', '3.14']

steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install uv
uses: astral-sh/setup-uv@v4
with:
enable-cache: true

- name: Install dependencies
run: uv sync

- name: Lint with ruff
run: uv run ruff check music21_tools/ tools/

- name: Run tests
run: uv run pytest
Loading
Loading