lint: Move check-manifest into pyroma
pyroma now runs check-manifest if installed, so we can simplify things there.
This commit is contained in:
parent
2536cc2313
commit
22f1b57347
|
|
@ -27,7 +27,6 @@ jobs:
|
||||||
- testenv: vulture
|
- testenv: vulture
|
||||||
- testenv: misc
|
- testenv: misc
|
||||||
- testenv: pyroma
|
- testenv: pyroma
|
||||||
- testenv: check-manifest
|
|
||||||
- testenv: eslint
|
- testenv: eslint
|
||||||
- testenv: shellcheck
|
- testenv: shellcheck
|
||||||
args: "-f gcc" # For problem matchers
|
args: "-f gcc" # For problem matchers
|
||||||
|
|
|
||||||
|
|
@ -121,8 +121,6 @@ Currently, the following tox environments are available:
|
||||||
* `pyroma`: Check packaging practices with
|
* `pyroma`: Check packaging practices with
|
||||||
https://pypi.python.org/pypi/pyroma/[pyroma].
|
https://pypi.python.org/pypi/pyroma/[pyroma].
|
||||||
* `eslint`: Run https://eslint.org/[ESLint] javascript checker.
|
* `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.
|
* `mkvenv`: Bootstrap a virtualenv for testing.
|
||||||
* `misc`: Run `scripts/misc_checks.py` to check for:
|
* `misc`: Run `scripts/misc_checks.py` to check for:
|
||||||
- untracked git files
|
- untracked git files
|
||||||
|
|
|
||||||
|
|
@ -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
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
check-manifest
|
|
||||||
|
|
@ -3,6 +3,7 @@
|
||||||
build==1.2.2.post1
|
build==1.2.2.post1
|
||||||
certifi==2025.6.15
|
certifi==2025.6.15
|
||||||
charset-normalizer==3.4.2
|
charset-normalizer==3.4.2
|
||||||
|
check-manifest==0.50
|
||||||
docutils==0.21.2
|
docutils==0.21.2
|
||||||
idna==3.10
|
idna==3.10
|
||||||
importlib_metadata==8.7.0
|
importlib_metadata==8.7.0
|
||||||
|
|
|
||||||
|
|
@ -1 +1,2 @@
|
||||||
pyroma
|
pyroma
|
||||||
|
check-manifest
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,12 @@
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["setuptools>=42"]
|
requires = ["setuptools>=42"]
|
||||||
build-backend = "setuptools.build_meta"
|
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__",
|
||||||
|
]
|
||||||
|
|
|
||||||
|
|
@ -453,7 +453,6 @@ def install_dev_requirements(venv_dir: pathlib.Path) -> None:
|
||||||
utils.print_title("Installing dev dependencies")
|
utils.print_title("Installing dev dependencies")
|
||||||
pip_install(venv_dir,
|
pip_install(venv_dir,
|
||||||
'-r', str(requirements_file('dev')),
|
'-r', str(requirements_file('dev')),
|
||||||
'-r', str(requirements_file('check-manifest')),
|
|
||||||
'-r', str(requirements_file('flake8')),
|
'-r', str(requirements_file('flake8')),
|
||||||
'-r', str(requirements_file('mypy')),
|
'-r', str(requirements_file('mypy')),
|
||||||
'-r', str(requirements_file('pyroma')),
|
'-r', str(requirements_file('pyroma')),
|
||||||
|
|
|
||||||
10
tox.ini
10
tox.ini
|
|
@ -4,7 +4,7 @@
|
||||||
# and then run "tox" from this directory.
|
# and then run "tox" from this directory.
|
||||||
|
|
||||||
[tox]
|
[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}
|
distshare = {toxworkdir}
|
||||||
skipsdist = true
|
skipsdist = true
|
||||||
minversion = 3.20
|
minversion = 3.20
|
||||||
|
|
@ -169,14 +169,6 @@ deps =
|
||||||
commands =
|
commands =
|
||||||
{envdir}/bin/pyroma -n 10 .
|
{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]
|
[testenv:docs]
|
||||||
basepython = {env:PYTHON:python3}
|
basepython = {env:PYTHON:python3}
|
||||||
passenv =
|
passenv =
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue