Skip to content

[pre-commit.ci] pre-commit autoupdate #27

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Nov 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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