Skip to content

BLD: tox.ini: flake8: add whitelist_externals for latest tox instead of adding dep, pass posargs through #7129

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

Merged
merged 1 commit into from
Feb 11, 2020

Conversation

westurner
Copy link
Contributor

BLD: tox.ini: flake8: add whitelist_externals for latest tox instead of adding dep, pass posargs through

Subject: Update tox.ini for latest tox version and pass posargs through

Feature or Bugfix

  • Feature: ENH
  • Bugfix: BUG
  • Build: BLD

Purpose

  • BLD: tox.ini: flake8: add whitelist_externals for latest tox instead of adding dep, pass posargs through

Detail

Passing posargs through makes it possible to check specific files:

tox -e flake8 -- ./tests/test_build.py

Specifying whitelist_externals eliminates an error message without requiring (re)install of flake8 for every run as adding to deps would result in.
https://tox.readthedocs.io/en/latest/config.html#conf-whitelist_externals

Relates

@westurner westurner changed the title BLD: BLD: tox.ini: flake8: add whitelist_externals for latest tox instead of adding dep, pass posargs through BLD: tox.ini: flake8: add whitelist_externals for latest tox instead of adding dep, pass posargs through Feb 10, 2020
@westurner
Copy link
Contributor Author

... The python: nightly job is returning this, which is probably not an error with this PR?

$ if [ $IS_PYTHON = true ]; then pip install -U tox codecov; fi
Traceback (most recent call last):
  File "/home/travis/virtualenv/python3.9-dev/bin/pip", line 6, in <module>
    from pip._internal.cli.main import main
ModuleNotFoundError: No module named 'pip'

https://travis-ci.org/sphinx-doc/sphinx/jobs/648641307

@tk0miya tk0miya added type:proposal a feature suggestion type:tests labels Feb 11, 2020
@tk0miya tk0miya added this to the 3.0.0 milestone Feb 11, 2020
@tk0miya
Copy link
Member

tk0miya commented Feb 11, 2020

... The python: nightly job is returning this, which is probably not an error with this PR?

Yes, it comes from nightly image itself. For more details, see #7132.

@tk0miya tk0miya merged commit 4c56beb into sphinx-doc:master Feb 11, 2020
@tk0miya
Copy link
Member

tk0miya commented Feb 11, 2020

Merged. Thank you for your contribution!

@westurner
Copy link
Contributor Author

westurner commented Feb 11, 2020 via email

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type:proposal a feature suggestion type:tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants