Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#27)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Tobias Raabe <raabe@posteo.de>
  • Loading branch information
pre-commit-ci[bot] and tobiasraabe authored Nov 26, 2021
1 parent c919387 commit 232209e
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 23 deletions.
18 changes: 9 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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]
Expand All @@ -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
Expand Down
7 changes: 1 addition & 6 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,17 @@ dependencies:
- setuptools_scm
- toml

# Conda
- anaconda-client
- conda-build
- conda-verify

# Package dependencies
- pytask >= 0.1.0
- pytask-parallel >= 0.1.0
- latex-dependency-scanner

# Misc
- black
- bumpversion
- jupyterlab
- matplotlib
- pdbpp
- pre-commit
- pytest
- pytest-cov
- pytest-xdist
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 6 additions & 2 deletions tests/test_execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -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", (), {})]
Expand Down Expand Up @@ -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})

Expand Down
8 changes: 2 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = pytest, pre-commit
envlist = pytest
skipsdist = True
skip_missing_interpreters = True

Expand All @@ -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
Expand Down

0 comments on commit 232209e

Please sign in to comment.