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

Small fixes and typing #527

Merged
merged 16 commits into from
Mar 28, 2024

Conversation

andrewtarzia
Copy link
Collaborator

Requested Reviewers: @lukasturcani

This PR will be slow going, but I will occasionally do folders in tests and update their doc strings to Google and add TypeHints.

Also fixed issues with turbomole writer (allows pathlib.Path) and the default behaviour of stk.host_guest.Guest

Copy link
Owner

@lukasturcani lukasturcani left a comment

Choose a reason for hiding this comment

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

looks good but

  1. change case data to be dataclasses (use slots=True and frozen=True) -- if you do this you can also remove all the docstrings since the classes are self-explanatory
  2. remove redundant returns sections

src/stk/_internal/topology_graphs/host_guest/complex.py Outdated Show resolved Hide resolved
tests/molecular/molecules/building_block/case_data.py Outdated Show resolved Hide resolved
tests/molecular/writers/xyz/case_data.py Outdated Show resolved Hide resolved
tests/molecular/writers/xyz/test_to_string.py Outdated Show resolved Hide resolved
tests/molecular/writers/xyz/test_to_string.py Outdated Show resolved Hide resolved
tests/molecular/writers/xyz/test_write.py Outdated Show resolved Hide resolved
tests/molecular/writers/xyz/test_write.py Outdated Show resolved Hide resolved
@lukasturcani lukasturcani merged commit 7ed418d into lukasturcani:master Mar 28, 2024
8 checks passed
@andrewtarzia andrewtarzia deleted the small_fixes_and_typing branch March 28, 2024 17:41
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