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

Separate for test data generation for compatibility with Biotite >= 1.0 and Numpy >= 2.0; Ruff formatting #16

Merged
merged 12 commits into from
Sep 26, 2024

Conversation

JHKru
Copy link
Member

@JHKru JHKru commented Sep 23, 2024

Compressed .csv files for tests are now stored separately in test/data, together with the corresponding Python/R
scripts.
This is necessary because ProDy does not support newer Numpy/Scipy versions yet (from #15).
For ProDy/rpy2/bio3d, a separate conda env can be installed from test_create_data_env.yml to rerun these scripts locally.

Additional tests for a multimeric protein were added.
The randomly generated coordinates in test_interaction.py had to be limited to a total number of twelve.
In total, the test folder takes up $\approx$ 41 MB.

Ruff was added for formatting.

Copy link
Member

@padix-key padix-key left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for keeping the package up to date with Biotite. I only would recommend a few changes regarding ruff formatting:

  • There is a newer version of ruff available, or is there a specific reason to use an older version? In Biotite I would also update the ruff version soon.
  • You can also configure ruff as optional dependency in pyproject.toml along with configuration of its rules. Can can adapt the rules from Biotite if you like.
  • To ensure that correct formatting is also used in subsequent PRs, I think a CI job would be reasonable. Again you could adapt the corresponding job from Biotite for it

…; final Ruff checks and fixes in scripts; added Ruff CI job
@JHKru
Copy link
Member Author

JHKru commented Sep 25, 2024

Sure, should be fine now.
All points should be addressed, with minor adjustments in scripts/tests/docs for "Ruff compliance".
I tried to keep Ruff settings as closely to Biotite as possible.

@JHKru
Copy link
Member Author

JHKru commented Sep 25, 2024

Last changes for this PR:
Regarding the dev vs. regular Poetry dependencies ->
We should remain compatible with biotite < 1.0 and numpy >= 1.25, if I'm not mistaken.

@padix-key
Copy link
Member

padix-key commented Sep 25, 2024 via email

@JHKru JHKru merged commit eb8382f into biotite-dev:master Sep 26, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants