Skip to content

Commit 232209e

Browse files
[pre-commit.ci] pre-commit autoupdate (#27)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Tobias Raabe <[email protected]>
1 parent c919387 commit 232209e

File tree

5 files changed

+19
-23
lines changed

5 files changed

+19
-23
lines changed

.pre-commit-config.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,29 +22,29 @@ repos:
2222
- id: rst-inline-touching-normal
2323
- id: text-unicode-replacement-char
2424
- repo: https://github.com/asottile/pyupgrade
25-
rev: v2.21.2
25+
rev: v2.29.1
2626
hooks:
2727
- id: pyupgrade
2828
args: [--py36-plus]
2929
- repo: https://github.com/asottile/reorder_python_imports
30-
rev: v2.5.0
30+
rev: v2.6.0
3131
hooks:
3232
- id: reorder-python-imports
3333
- repo: https://github.com/asottile/setup-cfg-fmt
34-
rev: v1.17.0
34+
rev: v1.20.0
3535
hooks:
3636
- id: setup-cfg-fmt
3737
- repo: https://github.com/psf/black
38-
rev: 21.7b0
38+
rev: 21.11b1
3939
hooks:
4040
- id: black
4141
- repo: https://github.com/asottile/blacken-docs
42-
rev: v1.10.0
42+
rev: v1.12.0
4343
hooks:
4444
- id: blacken-docs
4545
additional_dependencies: [black]
4646
- repo: https://github.com/PyCQA/flake8
47-
rev: 3.9.2
47+
rev: 4.0.1
4848
hooks:
4949
- id: flake8
5050
types: [python]
@@ -65,11 +65,11 @@ repos:
6565
Pygments,
6666
]
6767
- repo: https://github.com/PyCQA/doc8
68-
rev: 0.9.0
68+
rev: 0.10.1
6969
hooks:
7070
- id: doc8
7171
- repo: https://github.com/econchick/interrogate
72-
rev: 1.4.0
72+
rev: 1.5.0
7373
hooks:
7474
- id: interrogate
7575
args: [-v, --fail-under=40, src, tests]
@@ -79,7 +79,7 @@ repos:
7979
- id: codespell
8080
args: [-L als, -L unparseable]
8181
- repo: https://github.com/mgedmin/check-manifest
82-
rev: "0.46"
82+
rev: "0.47"
8383
hooks:
8484
- id: check-manifest
8585
- repo: meta

environment.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,17 @@ dependencies:
1010
- setuptools_scm
1111
- toml
1212

13-
# Conda
14-
- anaconda-client
15-
- conda-build
16-
- conda-verify
17-
1813
# Package dependencies
1914
- pytask >= 0.1.0
2015
- pytask-parallel >= 0.1.0
2116
- latex-dependency-scanner
2217

2318
# Misc
2419
- black
25-
- bumpversion
2620
- jupyterlab
2721
- matplotlib
2822
- pdbpp
2923
- pre-commit
24+
- pytest
3025
- pytest-cov
3126
- pytest-xdist

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ classifiers =
1919
Programming Language :: Python :: 3.7
2020
Programming Language :: Python :: 3.8
2121
Programming Language :: Python :: 3.9
22+
Programming Language :: Python :: 3.10
2223
project_urls =
2324
Changelog = https://github.com/pytask-dev/pytask-latex/blob/main/CHANGES.rst
2425
Documentation = https://github.com/pytask-dev/pytask-latex

tests/test_execute.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ class DummyTask:
2727
def test_pytask_execute_task_setup(monkeypatch, found_latexmk, expectation):
2828
"""Make sure that the task setup raises errors."""
2929
# Act like latexmk is installed since we do not test this.
30-
monkeypatch.setattr("pytask_latex.execute.shutil.which", lambda x: found_latexmk)
30+
monkeypatch.setattr(
31+
"pytask_latex.execute.shutil.which", lambda x: found_latexmk # noqa: U100
32+
)
3133

3234
task = DummyTask()
3335
task.markers = [Mark("latex", (), {})]
@@ -230,7 +232,9 @@ def task_compile_document():
230232
tmp_path.joinpath("document.tex").write_text(textwrap.dedent(latex_source))
231233

232234
# Hide latexmk if available.
233-
monkeypatch.setattr("pytask_latex.execute.shutil.which", lambda x: None)
235+
monkeypatch.setattr(
236+
"pytask_latex.execute.shutil.which", lambda x: None # noqa: U100
237+
)
234238

235239
session = main({"paths": tmp_path})
236240

tox.ini

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = pytest, pre-commit
2+
envlist = pytest
33
skipsdist = True
44
skip_missing_interpreters = True
55

@@ -19,13 +19,9 @@ conda_channels =
1919
conda-forge
2020
nodefaults
2121
commands =
22-
pip install --no-deps .
22+
pip install -e . --no-deps
2323
pytest {posargs}
2424

25-
[testenv:pre-commit]
26-
deps = pre-commit
27-
commands = pre-commit run --all-files
28-
2925
[doc8]
3026
ignore = D002, D004
3127
max-line-length = 89

0 commit comments

Comments
 (0)