diff --git a/scripts/gh_release.py b/scripts/gh_release.py index 388cef7ac..4e19a28e3 100755 --- a/scripts/gh_release.py +++ b/scripts/gh_release.py @@ -661,7 +661,7 @@ def platform_tag(): # If this has changed, need to update # .github/workflows/*.yml. # -test_packages = 'pytest fontTools psutil pymupdf-fonts' +test_packages = 'pytest fontTools psutil pymupdf-fonts flake8' if platform.system() == 'Windows' and cpu_bits() == 32: # No pillow wheel available, and doesn't build easily. pass diff --git a/tests/test_flake8.py b/tests/test_flake8.py index 8f4967260..98482f5b4 100644 --- a/tests/test_flake8.py +++ b/tests/test_flake8.py @@ -12,10 +12,6 @@ def test_flake8(): if not hasattr(fitz, 'mupdf'): print(f'Not running flake8 with classic implementation.') return - if sys.prefix == sys.base_prefix: - # We install flake8, which we only want to do if we are in a venv. - print(f'Not running flake8 because we are not in a venv.') - return ignores = ( 'E123', # closing bracket does not match indentation of opening bracket's line 'E124', # closing bracket does not match visual indentation @@ -53,6 +49,5 @@ def test_flake8(): def run(command): print(f'test_flake8(): Running: {command}') subprocess.run(command, shell=1, check=1) - run(f'pip install flake8') run(f'flake8 --ignore={ignores} --statistics {root}/src/__init__.py {root}/src/utils.py {root}/src/table.py') print(f'test_flake8(): flake8 succeeded.') diff --git a/tests/test_font.py b/tests/test_font.py index 89bf5e9a1..8ca653024 100644 --- a/tests/test_font.py +++ b/tests/test_font.py @@ -60,7 +60,6 @@ def test_2608(): def test_fontarchive(): import subprocess - subprocess.run('pip install pymupdf-fonts', shell=1, check=1) arch = fitz.Archive() css = fitz.css_for_pymupdf_font("notos", archive=arch, name="sans-serif") print(css)