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

Pin flake8 and friends to reduce code analysis errors #29

Merged
merged 2 commits into from
Aug 2, 2017

Conversation

hvelarde
Copy link
Member

@hvelarde hvelarde commented Aug 1, 2017

No description provided.

idgserpro added a commit to plonegovbr/brasil.gov.portal that referenced this pull request Aug 1, 2017
Ver PR collective/buildout.plonetest#29. A idéia é testar no CI do pacote se algum problema vai ocorrer.
@idgserpro
Copy link
Member

Ate these the latest versions of flake8-* to make it compatible with flake8 = 3.x? It would be nice to have a simple .travis.yml job here to test against multiple Plone versions to see if something breaks. We made a simple test in https://travis-ci.org/plonegovbr/brasil.gov.portal/jobs/259862752 using these pins and it seems ok, but we're not so sure about 4.1 and 4.2 installations that may be using qa.cfg.

Isn't this overkill? Shouldn't we just pin flake8? We already pin a bunch of flake8-* ourselves (https://github.com/plonegovbr/portalpadrao.release/blob/667be79173b74fd3f3f4f295d7453d7c5f727db1/1.1.5.3/versions.cfg#L66), but only because we still have flake8 = 2.4.1.

@hvelarde
Copy link
Member Author

hvelarde commented Aug 1, 2017

@idgserpro
Copy link
Member

idgserpro commented Aug 1, 2017

Did you try to pin just flake8 to 3.3.0? Why do you need to pin all packages in flake8-* namespace? All of them ask for setuptools > = 30? We did a test just pinning flake8 and it worked so far in https://travis-ci.org/collective/sc.social.like/builds/259951378

Nevertheless, we would pin just flake8 and the following documentation above the pin:

# This is the last flake8 version that doesn't ask for setuptools >= 30.
# We want to avoid problems with Plone 4.3.x branch, since at the time of this pinning was asking for setuptools 26.1.1 in http://dist.plone.org/release/4.3-latest/versions.cfg
# Avoids "Error: The requirement ('setuptools>=30') is not allowed by your [versions] constraint (26.1.1)"

@mauritsvanrees
Copy link
Member

Pinning flake8 should be enough, and can indeed be helpful. 👍

If we pin everything here, the danger is always that no one adjusts this list for a couple of months, and we miss out on QA improvements. The same is true in bobtemplates.plone_addon, where theses same packages are pinned, but several of them are older versions than you have.

A .travis.yml in this repository to test the basic usage could be helpful yes, though that is of course outside of the range of this pull request.

@hvelarde hvelarde merged commit c54dbac into master Aug 2, 2017
@hvelarde hvelarde deleted the hvelarde-flake8-versions branch August 2, 2017 12:39
hvelarde added a commit to collective/sc.social.like that referenced this pull request Aug 2, 2017
hvelarde pushed a commit to collective/sc.social.like that referenced this pull request Aug 2, 2017
* Fix Facebook href to point to Canonical URL

* Update setuptools version

* Fix changelog

* Set recommended versions of flake8 and friends

* Remove flake8 pinnings

Refs. collective/buildout.plonetest#29
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.

3 participants