-
Notifications
You must be signed in to change notification settings - Fork 664
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
1694 lint errors #1695
1694 lint errors #1695
Conversation
build error is a false positive:
|
|
Triggering Travis rerun as we've merged a few other Test update PRs. |
bdf6ccb
to
961acd5
Compare
Good news on the latest build the lint errors are fixed https://travis-ci.com/ansible/molecule/builds/98832571 (and we will probably get all failures that are already present in master). |
As pointed out before, we end up with a conflict between the format checker and the linter: lint gets green but format-checker fails https://travis-ci.com/ansible/molecule/jobs/173464580 |
tox.ini
Outdated
[testenv:format-check] | ||
commands = | ||
yapf -d -r molecule/ test/ | ||
|
||
deps = yapf>=0.25.0,<2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAIR the syntax for reusing is deps = {[format]deps}
. Plz check...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i eventually understood !
done
Signed-off-by: Fabrice Flore-Thebault <themr0c@users.noreply.github.com>
…grade flake8 to 3.6.0, make sure the versions of the packages are defined only in one single place. Signed-off-by: Fabrice Flore-Thebault <themr0c@users.noreply.github.com>
… binary operator, as latest version of yapf is in conflict with this rule, see google/yapf#658. Signed-off-by: Fabrice Flore-Thebault <themr0c@users.noreply.github.com>
…37}-lint', so cleanup the tox.ini Signed-off-by: Fabrice Flore-Thebault <themr0c@users.noreply.github.com>
Signed-off-by: Fabrice Flore-Thebault <themr0c@users.noreply.github.com>
Co-Authored-By: themr0c <themr0c@users.noreply.github.com>
Signed-off-by: Fabrice Flore-Thebault <themr0c@users.noreply.github.com>
9006653
to
da427d9
Compare
Merged, thank you everybody for the reviews! |
* 1694 lint errors Signed-off-by: Fabrice Flore-Thebault <themr0c@users.noreply.github.com> * fixes ansible#1694, reimplement ansible#1574 - fix linting issues, upgrade flake8 to 3.6.0, make sure the versions of the packages are defined only in one single place. Signed-off-by: Fabrice Flore-Thebault <themr0c@users.noreply.github.com> * fix ansible#1694 lint errors - excluding rule [W504] line break after binary operator, as latest version of yapf is in conflict with this rule, see google/yapf#658. Signed-off-by: Fabrice Flore-Thebault <themr0c@users.noreply.github.com> * fix ansible#1694 lint errors - travis is using 'lint', not 'py{27,36,37}-lint', so cleanup the tox.ini Signed-off-by: Fabrice Flore-Thebault <themr0c@users.noreply.github.com> * remove file commited by error Signed-off-by: Fabrice Flore-Thebault <themr0c@users.noreply.github.com> * Update tox.ini Co-Authored-By: themr0c <themr0c@users.noreply.github.com> * reuse deps and extras Signed-off-by: Fabrice Flore-Thebault <themr0c@users.noreply.github.com>
Signed-off-by: Fabrice Flore-Thebault themr0c@users.noreply.github.com
fix #1694 lint errors
some modifications to tox.ini so the lint tasks don't depend on all dependencies unused for the lint task.
PR Type