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

Use attrs for IOData class #100

Merged
merged 1 commit into from May 13, 2019
Merged

Use attrs for IOData class #100

merged 1 commit into from May 13, 2019

Conversation

tovrstra
Copy link
Member

Fixes #73

Not all pylint exclusions can be removed, essentially due to pylint bugs resulting in many false negatives, see

https://stackoverflow.com/questions/47972143/using-attr-with-pylint
pylint-dev/pylint#1694

The good solution is to disable all type-checking warnings of pylint and to use a proper type checker like mypy instead.

Related changes:

  • reaction_coordinate, ipoint, npoint, istep and nstep move to extra.
  • many getattr and hasattr calls are replaced by nicer code.
  • ArrayTypeCheckDescriptor is replaced by two simple functions.
  • Document IOData.charge
  • Bug got fixed in poscar format (gvecs)

Fixes theochem#73

Not all pylint exclusions can be removed, essentially due to pylint
bugs resulting in many false negatives, see

https://stackoverflow.com/questions/47972143/using-attr-with-pylint
pylint-dev/pylint#1694

The good solution is to disable all type-checking warnings of
pylint and to use a proper type checker like mypy instead.

Related changes:

- reaction_coordinate, ipoint, npoint, istep and nstep move to extra.
- many getattr and hasattr calls are replaced by nicer code.
- ArrayTypeCheckDescriptor is replaced by two simple functions.
- Document IOData.charge
- Bug got fixed in poscar format (gvecs)
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.

Get rid of # pylint: disable=no-member
1 participant