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

1694 lint errors #1695

Merged
merged 7 commits into from
Jan 30, 2019
Merged

1694 lint errors #1695

merged 7 commits into from
Jan 30, 2019

Conversation

themr0c
Copy link
Contributor

@themr0c themr0c commented Jan 23, 2019

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

  • Bugfix Pull Request

@gundalow gundalow added the test Improvement to quality assurance: CI/CD, testing, building label Jan 23, 2019
@themr0c
Copy link
Contributor Author

themr0c commented Jan 23, 2019

build error is a false positive:

The command "tox" exited with 0.

The job exceeded the maximum time limit for jobs, and has been terminated.

@gundalow
Copy link
Contributor

gundalow commented Jan 23, 2019

Depends on #1698 MERGED

@gundalow gundalow added this to the v2.20 milestone Jan 23, 2019
tox.ini Outdated Show resolved Hide resolved
@gundalow
Copy link
Contributor

Triggering Travis rerun as we've merged a few other Test update PRs.

@themr0c
Copy link
Contributor Author

themr0c commented Jan 24, 2019

Maybe this PR should be simpy forgotten as #1699 and #1701 make the changes unnecessary.

lint-requirements.txt Outdated Show resolved Hide resolved
tox.ini Outdated Show resolved Hide resolved
@themr0c
Copy link
Contributor Author

themr0c commented Jan 28, 2019

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).

@themr0c
Copy link
Contributor Author

themr0c commented Jan 29, 2019

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
yapf==0.25.0 does not help.

@themr0c
Copy link
Contributor Author

themr0c commented Jan 29, 2019

-> google/yapf#658

tox.ini Outdated
[testenv:format-check]
commands =
yapf -d -r molecule/ test/

deps = yapf>=0.25.0,<2
Copy link
Member

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...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't understand?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i eventually understood !
done

tox.ini Outdated Show resolved Hide resolved
themr0c and others added 7 commits January 30, 2019 14:15
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>
@gundalow gundalow merged commit e1c302d into ansible:master Jan 30, 2019
@gundalow
Copy link
Contributor

Merged, thank you everybody for the reviews!

ssbarnea pushed a commit to ssbarnea/molecule that referenced this pull request Jan 31, 2019
* 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>
@webknjaz webknjaz removed their assignment May 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Improvement to quality assurance: CI/CD, testing, building
Projects
None yet
Development

Successfully merging this pull request may close these issues.

lint-errors
6 participants