Skip to content

Merge develop into provenance_redesign and update pre-commit dependencies#2365

Merged
sphuber merged 12 commits into
aiidateam:provenance_redesignfrom
sphuber:provenance_redesign
Jan 4, 2019
Merged

Merge develop into provenance_redesign and update pre-commit dependencies#2365
sphuber merged 12 commits into
aiidateam:provenance_redesignfrom
sphuber:provenance_redesign

Conversation

@sphuber
Copy link
Copy Markdown
Contributor

@sphuber sphuber commented Jan 4, 2019

The original plan was to just merge develop into provenance_redesign since it contains some crucial bug fixes. However, tests stopped passing due to various issues with incompatible version of pre-commit tools and python versions. I added these changes on top of the merge commit and fixed a whole slew of new linter warnings that came as a result of upgrading pylint to version 2.0 which only supports python 3.

ltalirz and others added 12 commits November 15, 2018 12:50
"The binary package is a practical choice for development and testing
but in production it is advised to use the package built from sources."
[1] https://pypi.org/project/psycopg2-binary/
psycopg2-binary 2.7.4 => psycopg2 2.7.6
…dateam#2218)

Thanks @borellim!

Note: I'm merging this directly into develop (and not provenance_redesign) because it's an important bug fix and shouldn't create merge conflicts. (@sphuber)
…iidateam#2235)

The method returned the backend AuthInfo class, which does not have
the `get_transport` method that would be called for example in the
`_get_transport` method of the `JobCalculation` class. The fix is
to wrap the backend entity in the ORM class by calling

    `AuthInfo.from_backend_entity`

Added two regression tests for this bug.
Because the `verdi` group was not marked as callable without
subcommand, the `--version` option was broken as it would throw
a `Missing command` error. Adding `invoke_without_command=True` to
the `verdi` group declaration and making the `--version` an eager
option will ensure it works without specifying a sub command.

A test has been added to test this functionality.
)

With the `--force` flag a user can suppress the exception that is raised
when one tries to create an existing profile in non-interactive mode. With
the flag the existing profile will be overridden with the specified values
except for the profile UUID which will be kept the same as it is auto
generate and can also not be specified by the user on the command line.
…ateam#2252)

The implementation was using the backend collection to `get` a
given computer for the remote copy lists, but this method is not
defined. Instead this operation should go through the front end
collection.
This prevents a mismatch between for example `numpy` and `scipy`.
The requirement `prospector` already indirectly requires `pylint` and it
needs a different version based on the version of python. By fixing the
version of `pylint` ourselves, we will have the wrong version for the
version of `prospector` for either one of python 2 or python 3.
Starting from `pylint-django>=2.0` only `pylint>=2.0` is supported which
has dropped support for python 2. As a result we need to depend on
different version of `pylint-django` based on the version of python.

With the new version of `pylint` a lot of new checks are added that had
to be either corrected or disabled. Given that some of these checks only
are valid for `pylint>=2.0`, they will trigger a warning in the
pre-commit for python 2. For this reason we have to temporarily disable
the `bad-option-value` globally in the `.pylintrc`. When support for
python 2 is dropped, this should be removed.

def reverse_code(apps, schema_editor):
"""Reversing the inference of the process type is not possible and not necessary."""
pass
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

why should this be deleted?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Because it is not necessary if there is a docstring

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I see

@sphuber sphuber merged commit 097fa6a into aiidateam:provenance_redesign Jan 4, 2019
@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.2%) to 68.885% when pulling 6424ba1 on sphuber:provenance_redesign into a4bbfd1 on aiidateam:provenance_redesign.

@sphuber sphuber deleted the provenance_redesign branch February 15, 2019 20:00
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.

6 participants