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

Fix flake8 errors and warnings for python3 #2094

Merged
merged 1 commit into from
Oct 23, 2018

Conversation

sphuber
Copy link
Contributor

@sphuber sphuber commented Oct 23, 2018

Fixes #2031

The command that was run is the following:

flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics

All the warnings and errors have been resolved except for the usage of long in
the aiida.backend.tests.nodes file. This is already properly guarded by six.PY2
but flake8 clearly does not interpret this clause. We opt to ignore this as the
error is not applicable and we do not explicitly include these flake tests in the
pre-commit tests.

@coveralls
Copy link

Coverage Status

Coverage decreased (-7.8%) to 60.073% when pulling a2c2c22604b758bc0bbb4e162cbe8e3266864499 on sphuber:fix_2031_flake_python3 into a4eee1c on aiidateam:develop.

@coveralls
Copy link

coveralls commented Oct 23, 2018

Coverage Status

Coverage increased (+0.03%) to 67.864% when pulling 2b11224 on sphuber:fix_2031_flake_python3 into e40593c on aiidateam:develop.

@sphuber sphuber force-pushed the fix_2031_flake_python3 branch 2 times, most recently from 2845ed1 to e09deaf Compare October 23, 2018 12:55
The command that was run is the following:

	flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics

All the warnings and errors have been resolved except for the usage of `long` in
the `aiida.backend.tests.nodes` file. This is already properly guarded by `six.PY2`
but flake8 clearly does not interpret this clause. We opt to ignore this as the
error is not applicable and we do not explicitly include these flake tests in the
pre-commit tests.
@sphuber sphuber force-pushed the fix_2031_flake_python3 branch from e09deaf to 2b11224 Compare October 23, 2018 12:57
@sphuber sphuber merged commit a3e8bbf into aiidateam:develop Oct 23, 2018
@sphuber sphuber deleted the fix_2031_flake_python3 branch October 23, 2018 19:22
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.

Python 3.7: 4 syntax errors and 33 undefined names
3 participants