Skip to content

Fix tox.ini lint target#23359

Merged
balloob merged 1 commit into
home-assistant:devfrom
ViViDboarder:tox-lint-fix
Apr 25, 2019
Merged

Fix tox.ini lint target#23359
balloob merged 1 commit into
home-assistant:devfrom
ViViDboarder:tox-lint-fix

Conversation

@ViViDboarder

Copy link
Copy Markdown
Contributor

tox fails due to being unable to reference the script module when
trying to run script/gen_requirements_all.py. Instead it needs to be
run as a module.

This was found while I was debugging #20197

Checklist:

  • The code change is tested and works locally.
  • Local tests pass with tox. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.

tox fails due to being unable to reference the `script` module when
trying to run `script/gen_requirements_all.py`. Instead it needs to be
run as a module.
@homeassistant homeassistant added cla-signed small-pr PRs with less than 30 lines. labels Apr 24, 2019
@ViViDboarder

Copy link
Copy Markdown
Contributor Author

@MartinHjelmare FYI

Comment thread tox.ini
-r{toxinidir}/requirements_test.txt
commands =
python script/gen_requirements_all.py validate
python -m script.gen_requirements_all validate

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.

Ah, this is probably because of importing things from hassfest.

@balloob

balloob commented Apr 25, 2019

Copy link
Copy Markdown
Member

Thanks!

@balloob balloob merged commit 6fb5b84 into home-assistant:dev Apr 25, 2019
@balloob balloob mentioned this pull request May 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed small-pr PRs with less than 30 lines.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants