From 727885467cb5bf9220cc81c9ed4aff45fa5d5b74 Mon Sep 17 00:00:00 2001 From: Florian Haas Date: Thu, 14 Dec 2023 10:57:11 +0100 Subject: [PATCH] build: Exclude generated Tutor configuration from flake8 tests 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 https://github.com/overhangio/tutor/pull/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. --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index d44c967..361f7ae 100644 --- a/tox.ini +++ b/tox.ini @@ -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 =