Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modernize with new tooling and fix or update some code #205

Open
wants to merge 38 commits into
base: master
Choose a base branch
from
Open

Conversation

153957
Copy link
Member

@153957 153957 commented Apr 15, 2024

Apply ruff fixes and formatting.
Configure ruff instead of flake8.
Add editorconfig
Replace setup.py by pyproject.toml
Fix/ignore remaining ruff errors
Fix broken tests.
Support Python 3.12
Drop support for Python 3.8
Upgrade some old script to support Python 3
Update required version for dependencies, compatible with Python 3.9-3.12.

Include some manual fixes, e.g. for scripts using Python 2 syntax.
Use more specific exceptions.
Use variables for magic numbers used in functions.
Use Path instead of os.path.
Try not to shadow built in variables/functions.
More specific noqa.
Remove executable permission for files which do not need it.
Improve handling of some exceptions.
These should be checked in the future.
The addCleanup is usually safer because it is also performed if the
rest of the setUp fails. It also keeps the cleanup close to the setup.
Convert strings to f-strings.
Remove expectation that pbar is called for tsv update.
… random"

Use global random state in numpy instead of separate generators.
It will be best to switch to separate generators per class to
better control the random state and have independent states.
Correct a call to range_filter using keyword.
@153957 153957 changed the title Replace flake8 with ruff Modernize with new tooling and fix or update some code May 4, 2024
153957 added 5 commits May 5, 2024 11:00
New version of Numpy includes new features related to type conversion
when doing comparisons, uint64 is no longer cast to float64 when
compared to ints. Tests are updated to expect this.
New numpy version also requires new scipy and tables.
@153957 153957 marked this pull request as ready for review May 5, 2024 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant