lint: Move check-manifest into pyroma

pyroma now runs check-manifest if installed,
so we can simplify things there.
This commit is contained in:
Florian Bruhin 2025-07-07 08:09:47 +02:00
parent 2536cc2313
commit 22f1b57347
9 changed files with 12 additions and 23 deletions

View File

@ -27,7 +27,6 @@ jobs:
- testenv: vulture
- testenv: misc
- testenv: pyroma
- testenv: check-manifest
- testenv: eslint
- testenv: shellcheck
args: "-f gcc" # For problem matchers

View File

@ -121,8 +121,6 @@ Currently, the following tox environments are available:
* `pyroma`: Check packaging practices with
https://pypi.python.org/pypi/pyroma/[pyroma].
* `eslint`: Run https://eslint.org/[ESLint] javascript checker.
* `check-manifest`: Check MANIFEST.in completeness with
https://github.com/mgedmin/check-manifest[check-manifest].
* `mkvenv`: Bootstrap a virtualenv for testing.
* `misc`: Run `scripts/misc_checks.py` to check for:
- untracked git files

View File

@ -1,9 +0,0 @@
# This file is automatically generated by scripts/dev/recompile_requirements.py
build==1.2.2.post1
check-manifest==0.50
importlib_metadata==8.7.0
packaging==25.0
pyproject_hooks==1.2.0
tomli==2.2.1
zipp==3.23.0

View File

@ -1 +0,0 @@
check-manifest

View File

@ -3,6 +3,7 @@
build==1.2.2.post1
certifi==2025.6.15
charset-normalizer==3.4.2
check-manifest==0.50
docutils==0.21.2
idna==3.10
importlib_metadata==8.7.0

View File

@ -1 +1,2 @@
pyroma
check-manifest

View File

@ -1,3 +1,12 @@
[build-system]
requires = ["setuptools>=42"]
build-backend = "setuptools.build_meta"
[tool.check-manifest]
ignore = [
"qutebrowser/git-commit-id",
"qutebrowser/html/doc",
"qutebrowser/html/doc/*",
"qutebrowser/html/doc/img/cheatsheet-*.png",
"*/__pycache__",
]

View File

@ -453,7 +453,6 @@ def install_dev_requirements(venv_dir: pathlib.Path) -> None:
utils.print_title("Installing dev dependencies")
pip_install(venv_dir,
'-r', str(requirements_file('dev')),
'-r', str(requirements_file('check-manifest')),
'-r', str(requirements_file('flake8')),
'-r', str(requirements_file('mypy')),
'-r', str(requirements_file('pyroma')),

10
tox.ini
View File

@ -4,7 +4,7 @@
# and then run "tox" from this directory.
[tox]
envlist = py39-pyqt515-cov,mypy-pyqt5,misc,vulture,flake8,pylint,pyroma,check-manifest,eslint,yamllint,actionlint
envlist = py39-pyqt515-cov,mypy-pyqt5,misc,vulture,flake8,pylint,pyroma,eslint,yamllint,actionlint
distshare = {toxworkdir}
skipsdist = true
minversion = 3.20
@ -169,14 +169,6 @@ deps =
commands =
{envdir}/bin/pyroma -n 10 .
[testenv:check-manifest]
basepython = {env:PYTHON:python3}
passenv =
deps =
-r{toxinidir}/misc/requirements/requirements-check-manifest.txt
commands =
{envdir}/bin/check-manifest --ignore 'qutebrowser/git-commit-id,qutebrowser/html/doc,qutebrowser/html/doc/*,qutebrowser/html/doc/img/cheatsheet-*.png,*/__pycache__'
[testenv:docs]
basepython = {env:PYTHON:python3}
passenv =