Skip to content

Commit

Permalink
build: Exclude generated Tutor configuration from flake8 tests
Browse files Browse the repository at this point in the history
Until Tutor 17, just enabling a plugin with "tutor plugin enable"
would not recreate the configuration, meaning the
tests/tutor-sandbox/env directory would remain empty.

As of overhangio/tutor#957, however,
"tutor plugin enable" does automatically also run "tutor config save",
generating a full Tutor configuration.

This means that unless configured otherwise, with Tutor 17 our flake8
checks would test code generated by Tutor, rather than just that
generated by our plugin.

Thus, to make our tests not break once we bump our dependencies to
support Tutor 17, exclude the tests/tutor-sandbox/env checks from
flake8.
  • Loading branch information
fghaas committed Dec 14, 2023
1 parent d73da78 commit 18ee120
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ python =

[flake8]
ignore = E124,W504
exclude = .svn,CVS,.bzr,.hg,.git,__pycache__,.tox,.eggs,*.egg,src
exclude = .svn,CVS,.bzr,.hg,.git,__pycache__,.tox,.eggs,*.egg,src,tests/tutor-sandbox/env

[testenv]
setenv =
Expand Down

0 comments on commit 18ee120

Please sign in to comment.