From 056e1e2f71771293770cf2d156b2de4848fccb68 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 31 Jan 2022 18:33:23 +0000 Subject: [PATCH 1/3] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/pre-commit-hooks: v4.0.1 → v4.1.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.0.1...v4.1.0) - [github.com/asottile/pyupgrade: v2.21.2 → v2.31.0](https://github.com/asottile/pyupgrade/compare/v2.21.2...v2.31.0) - [github.com/asottile/reorder_python_imports: v2.5.0 → v2.7.1](https://github.com/asottile/reorder_python_imports/compare/v2.5.0...v2.7.1) - [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 → 22.1.0](https://github.com/psf/black/compare/21.7b0...22.1.0) - [github.com/asottile/blacken-docs: v1.10.0 → v1.12.1](https://github.com/asottile/blacken-docs/compare/v1.10.0...v1.12.1) - [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 | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 323f04c..492d8a9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.0.1 + rev: v4.1.0 hooks: - id: check-added-large-files args: ['--maxkb=25'] @@ -30,29 +30,29 @@ repos: - id: rst-inline-touching-normal - id: text-unicode-replacement-char - repo: https://github.com/asottile/pyupgrade - rev: v2.21.2 + rev: v2.31.0 hooks: - id: pyupgrade args: [--py36-plus] - repo: https://github.com/asottile/reorder_python_imports - rev: v2.5.0 + rev: v2.7.1 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: 22.1.0 hooks: - id: black - repo: https://github.com/asottile/blacken-docs - rev: v1.10.0 + rev: v1.12.1 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] @@ -73,11 +73,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] @@ -87,7 +87,7 @@ repos: - id: codespell args: [-L unparseable] - repo: https://github.com/mgedmin/check-manifest - rev: "0.46" + rev: "0.47" hooks: - id: check-manifest - repo: meta From b2483625c9dbabb5470db5faf46cecbfc8d24ac7 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 31 Jan 2022 18:33:52 +0000 Subject: [PATCH 2/3] [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 f7dd29f..1867a7f 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 = Documentation = https://github.com/pytask-dev/pytask-stata Github = https://github.com/pytask-dev/pytask-stata From fde096ac88dfe363d359ef90695dbe26c9286bda Mon Sep 17 00:00:00 2001 From: Tobias Raabe Date: Mon, 7 Feb 2022 16:53:12 +0100 Subject: [PATCH 3/3] Fix checks. --- .pre-commit-config.yaml | 1 - tests/test_execute.py | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 492d8a9..ee239b5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,7 +12,6 @@ repos: - id: debug-statements - id: end-of-file-fixer - id: fix-byte-order-marker - - id: forbid-new-submodules - id: mixed-line-ending - id: no-commit-to-branch args: [--branch, main] diff --git a/tests/test_execute.py b/tests/test_execute.py index 500df9b..163f7b5 100644 --- a/tests/test_execute.py +++ b/tests/test_execute.py @@ -81,7 +81,9 @@ def task_run_do_file(): tmp_path.joinpath("script.do").write_text(textwrap.dedent("1 + 1")) # Hide Stata if available. - monkeypatch.setattr("pytask_stata.config.shutil.which", lambda x: None) + monkeypatch.setattr( + "pytask_stata.config.shutil.which", lambda x: None # noqa: U100 + ) session = main({"paths": tmp_path})