From d65f86e39deea875b87a509f0d467edcb68f1938 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 22 Nov 2021 17:55:53 +0000 Subject: [PATCH 1/5] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/asottile/pyupgrade: v2.21.2 → v2.29.1](https://github.com/asottile/pyupgrade/compare/v2.21.2...v2.29.1) - [github.com/asottile/reorder_python_imports: v2.5.0 → v2.6.0](https://github.com/asottile/reorder_python_imports/compare/v2.5.0...v2.6.0) - [github.com/asottile/setup-cfg-fmt: v1.17.0 → v1.20.0](https://github.com/asottile/setup-cfg-fmt/compare/v1.17.0...v1.20.0) - [github.com/psf/black: 21.7b0 → 21.11b1](https://github.com/psf/black/compare/21.7b0...21.11b1) - [github.com/asottile/blacken-docs: v1.10.0 → v1.12.0](https://github.com/asottile/blacken-docs/compare/v1.10.0...v1.12.0) - [github.com/PyCQA/flake8: 3.9.2 → 4.0.1](https://github.com/PyCQA/flake8/compare/3.9.2...4.0.1) - [github.com/PyCQA/doc8: 0.9.0 → 0.10.1](https://github.com/PyCQA/doc8/compare/0.9.0...0.10.1) - [github.com/econchick/interrogate: 1.4.0 → 1.5.0](https://github.com/econchick/interrogate/compare/1.4.0...1.5.0) - [github.com/mgedmin/check-manifest: 0.46 → 0.47](https://github.com/mgedmin/check-manifest/compare/0.46...0.47) --- .pre-commit-config.yaml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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 From ec0e46d7569e676812bfa2fc34d2a23e79b23804 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 22 Nov 2021 17:56:26 +0000 Subject: [PATCH 2/5] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- setup.cfg | 1 + 1 file changed, 1 insertion(+) 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 From 5d1b974b50af1f1b2b9c5ee071a283ef39eeb6bc Mon Sep 17 00:00:00 2001 From: Tobias Raabe Date: Fri, 26 Nov 2021 12:59:37 +0100 Subject: [PATCH 3/5] Fix pre-commit. --- tests/test_execute.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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}) From c2cfc09d2b06f2dda8f61130386da59f5f19ea86 Mon Sep 17 00:00:00 2001 From: Tobias Raabe Date: Fri, 26 Nov 2021 13:24:31 +0100 Subject: [PATCH 4/5] Maybe fix it. --- environment.yml | 7 +------ tox.ini | 8 ++------ 2 files changed, 3 insertions(+), 12 deletions(-) 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/tox.ini b/tox.ini index f52d878..7b7ba48 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 . pytest {posargs} -[testenv:pre-commit] -deps = pre-commit -commands = pre-commit run --all-files - [doc8] ignore = D002, D004 max-line-length = 89 From ce500ed31350a1197b8b277f6d25183a3bc1dc70 Mon Sep 17 00:00:00 2001 From: Tobias Raabe Date: Fri, 26 Nov 2021 13:55:03 +0100 Subject: [PATCH 5/5] fix. --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 7b7ba48..a0b4f89 100644 --- a/tox.ini +++ b/tox.ini @@ -19,7 +19,7 @@ conda_channels = conda-forge nodefaults commands = - pip install . + pip install -e . --no-deps pytest {posargs} [doc8]