diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 46ec983..78e94f5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,29 +22,29 @@ repos: - id: rst-inline-touching-normal - id: text-unicode-replacement-char - repo: https://github.com/asottile/pyupgrade - rev: v2.21.2 + rev: v2.29.1 hooks: - id: pyupgrade args: [--py36-plus] - repo: https://github.com/asottile/reorder_python_imports - rev: v2.5.0 + rev: v2.6.0 hooks: - id: reorder-python-imports - repo: https://github.com/asottile/setup-cfg-fmt - rev: v1.17.0 + rev: v1.20.0 hooks: - id: setup-cfg-fmt - repo: https://github.com/psf/black - rev: 21.7b0 + rev: 21.11b1 hooks: - id: black - repo: https://github.com/asottile/blacken-docs - rev: v1.10.0 + rev: v1.12.0 hooks: - id: blacken-docs additional_dependencies: [black] - repo: https://github.com/PyCQA/flake8 - rev: 3.9.2 + rev: 4.0.1 hooks: - id: flake8 types: [python] @@ -65,11 +65,11 @@ repos: Pygments, ] - repo: https://github.com/PyCQA/doc8 - rev: 0.9.0 + rev: 0.10.1 hooks: - id: doc8 - repo: https://github.com/econchick/interrogate - rev: 1.4.0 + rev: 1.5.0 hooks: - id: interrogate args: [-v, --fail-under=40, src, tests] @@ -79,7 +79,7 @@ repos: - id: codespell args: [-L als, -L unparseable] - repo: https://github.com/mgedmin/check-manifest - rev: "0.46" + rev: "0.47" hooks: - id: check-manifest - repo: meta diff --git a/environment.yml b/environment.yml index 0c7a94b..42d89f1 100644 --- a/environment.yml +++ b/environment.yml @@ -10,11 +10,6 @@ dependencies: - setuptools_scm - toml - # Conda - - anaconda-client - - conda-build - - conda-verify - # Package dependencies - pytask >= 0.1.0 - pytask-parallel >= 0.1.0 @@ -22,10 +17,10 @@ dependencies: # Misc - black - - bumpversion - jupyterlab - matplotlib - pdbpp - pre-commit + - pytest - pytest-cov - pytest-xdist diff --git a/setup.cfg b/setup.cfg index 8749da5..6e6fba8 100644 --- a/setup.cfg +++ b/setup.cfg @@ -19,6 +19,7 @@ classifiers = Programming Language :: Python :: 3.7 Programming Language :: Python :: 3.8 Programming Language :: Python :: 3.9 + Programming Language :: Python :: 3.10 project_urls = Changelog = https://github.com/pytask-dev/pytask-latex/blob/main/CHANGES.rst Documentation = https://github.com/pytask-dev/pytask-latex diff --git a/tests/test_execute.py b/tests/test_execute.py index be3c81b..ceec78d 100644 --- a/tests/test_execute.py +++ b/tests/test_execute.py @@ -27,7 +27,9 @@ class DummyTask: def test_pytask_execute_task_setup(monkeypatch, found_latexmk, expectation): """Make sure that the task setup raises errors.""" # Act like latexmk is installed since we do not test this. - monkeypatch.setattr("pytask_latex.execute.shutil.which", lambda x: found_latexmk) + monkeypatch.setattr( + "pytask_latex.execute.shutil.which", lambda x: found_latexmk # noqa: U100 + ) task = DummyTask() task.markers = [Mark("latex", (), {})] @@ -230,7 +232,9 @@ def task_compile_document(): tmp_path.joinpath("document.tex").write_text(textwrap.dedent(latex_source)) # Hide latexmk if available. - monkeypatch.setattr("pytask_latex.execute.shutil.which", lambda x: None) + monkeypatch.setattr( + "pytask_latex.execute.shutil.which", lambda x: None # noqa: U100 + ) session = main({"paths": tmp_path}) diff --git a/tox.ini b/tox.ini index f52d878..a0b4f89 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = pytest, pre-commit +envlist = pytest skipsdist = True skip_missing_interpreters = True @@ -19,13 +19,9 @@ conda_channels = conda-forge nodefaults commands = - pip install --no-deps . + pip install -e . --no-deps pytest {posargs} -[testenv:pre-commit] -deps = pre-commit -commands = pre-commit run --all-files - [doc8] ignore = D002, D004 max-line-length = 89