From e4ee50ad943109aa00bdbfc1fcf04d6166b588fd Mon Sep 17 00:00:00 2001 From: Michael Scott Asato Cuthbert Date: Wed, 14 Jan 2026 10:34:02 -1000 Subject: [PATCH] Clean out a few git-ignore tasks and add some for uv, etc. Remove "hatch-requirements-txt" comment: current plan is to remove requirements.txt not to replace pyproject.toml with it. --- .gitignore | 22 ++++++---------------- music21/spanner.py | 1 + pyproject.toml | 1 - 3 files changed, 7 insertions(+), 17 deletions(-) diff --git a/.gitignore b/.gitignore index 6029e326a..4da99426b 100644 --- a/.gitignore +++ b/.gitignore @@ -9,8 +9,8 @@ __pycache__/ # we are a library, don't lock the requirements uv.lock -# PyCharm -# Keep some to help new users... +# PyCharm ignore +# Keep the dictionary to help new users... .idea/codeStyles .idea/dictionaries/* !.idea/dictionaries/music21.xml @@ -72,34 +72,24 @@ nosetests.xml /.vscode *.code-workspace -# remove all from autogenerated except conf.py +# remove all from autogenerated except conf.py and index.rst documentation/autogenerated/**/* documentation/autogenerated/**/*.png !documentation/autogenerated/conf.py !documentation/autogenerated/index.rst documentation/build/**/* - **-checkpoint.ipynb documentation/source/usersGuide/.ipynb_checkpoints documentation/source/usersGuide/.ipynb_checkpoints/** -documentation/source/tutorials/MersenneDemo.rst -documentation/source/tutorials/MersenneDemo_files/_fig_01.png -documentation/source/tutorials/MersenneDemo_files/_fig_03.png -documentation/source/tutorials/MersenneDemo_files/_fig_05.png - -.pylintrc~ - -.cache/v/cache/lastfailed - -.cache/v/cache/lastfailed - .ropeproject/config.py .pytest_cache .pytest_cache/** music21/monkeytype.sqlite3 .pytest_cache/v/cache/nodeids .pytest_cache/v/cache/lastfailed -.pytest_cache/v/cache/nodeids .dmypy.json + +# Emacs backups *.txt~ +*.py~ diff --git a/music21/spanner.py b/music21/spanner.py index 43da40e5f..5e081fbf4 100644 --- a/music21/spanner.py +++ b/music21/spanner.py @@ -416,6 +416,7 @@ def getSpannedElementIds(self): ''' Return all id() for all stored objects. Was performance critical, until most uses removed in v7. + Used only as a testing tool now. Spanner.__contains__() was optimized in 839c7e5. ''' diff --git a/pyproject.toml b/pyproject.toml index f55cf885f..4cbbb4f0e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -41,7 +41,6 @@ classifiers = [ "Typing :: Typed", ] -# when hatch-requirements-txt is stable, replace with that dependencies = [ "chardet", "joblib",