From 3c91d3f6827b1501d0b39a93fefb727cde2f069a Mon Sep 17 00:00:00 2001 From: Maari Tamm Date: Thu, 11 Jan 2024 14:26:14 +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 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. --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 4590f28..f7d5b8c 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 =