Skip to content

Commit 31fdf69

Browse files
committed
Merge branch 'main' into deprecate-old-decorator
2 parents c1b4b68 + cdfd910 commit 31fdf69

File tree

4 files changed

+14
-31
lines changed

4 files changed

+14
-31
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.1.0
3+
rev: v4.2.0
44
hooks:
55
- id: check-added-large-files
66
args: ['--maxkb=100']
@@ -29,21 +29,21 @@ repos:
2929
- id: rst-inline-touching-normal
3030
- id: text-unicode-replacement-char
3131
- repo: https://github.com/asottile/pyupgrade
32-
rev: v2.31.0
32+
rev: v2.32.0
3333
hooks:
3434
- id: pyupgrade
3535
args: [--py37-plus]
3636
- repo: https://github.com/asottile/reorder_python_imports
37-
rev: v2.7.1
37+
rev: v3.0.1
3838
hooks:
3939
- id: reorder-python-imports
4040
args: [--py37-plus, --add-import, 'from __future__ import annotations']
4141
- repo: https://github.com/asottile/setup-cfg-fmt
42-
rev: v1.20.0
42+
rev: v1.20.1
4343
hooks:
4444
- id: setup-cfg-fmt
4545
- repo: https://github.com/psf/black
46-
rev: 22.1.0
46+
rev: 22.3.0
4747
hooks:
4848
- id: black
4949
- repo: https://github.com/asottile/blacken-docs
@@ -73,7 +73,7 @@ repos:
7373
Pygments,
7474
]
7575
- repo: https://github.com/PyCQA/doc8
76-
rev: 0.10.1
76+
rev: 0.11.1
7777
hooks:
7878
- id: doc8
7979
- repo: https://github.com/econchick/interrogate
@@ -87,7 +87,7 @@ repos:
8787
- id: codespell
8888
args: [-L als, -L unparseable]
8989
- repo: https://github.com/mgedmin/check-manifest
90-
rev: "0.47"
90+
rev: "0.48"
9191
hooks:
9292
- id: check-manifest
9393
- repo: meta

CHANGES.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,13 @@ all releases are available on `Anaconda.org
1313
- :pull:`34` deprecates the old api.
1414

1515

16-
0.1.2 - 2022-xx-xx
16+
0.1.2 - 2022-03-26
1717
------------------
1818

1919
- :pull:`32` implements a new interface to the compilation process which consists of
2020
composable compilation steps. (Many thanks to :user:`axtimhaus`!:tada:)
21+
- :pull:`36` fixes some issues.
22+
- :pull:`37` updates the release notes.
2123

2224

2325
0.1.1 - 2022-02-08

README.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,13 +158,13 @@ which accepts which accepts strings or list of strings pointing to internally
158158
implemented compilation steps. Using strings will use the default configuration of this
159159
compilation step. It is equivalent to the following.
160160

161-
.. code-block::
161+
.. code-block:: python
162162
163-
from pytask_latex import compilation_steps
163+
from pytask_latex import compilation_steps as cs
164164
165165
166166
@pytask.mark.latex(
167-
compilation_steps=compilation_steps.latexmk(
167+
compilation_steps=cs.latexmk(
168168
options=("--pdf", "--interaction=nonstopmode", "--synctex=1", "--cd")
169169
)
170170
)
@@ -190,7 +190,7 @@ an example for generating a ``.dvi``.
190190
``compilation_step.latexmk(options)`` generates a compilation step which is a function
191191
with the following signature:
192192

193-
.. code-block::
193+
.. code-block:: python
194194
195195
from pathlib import Path
196196
import subprocess

src/pytask_latex/collect.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,6 @@
1919
from pytask_latex.utils import to_list
2020

2121

22-
_DEPRECATION_WARNING = """The old syntax for using @pytask.mark.latex is deprecated \
23-
and will be removed in v0.2.0. To pass custom options to latexmk and the compilation \
24-
process convert
25-
26-
@pytask.mark.latex(options)
27-
def task_func():
28-
...
29-
30-
to
31-
32-
from pytask_latex import compilation_steps
33-
34-
@pytask.mark.latex(compilation_steps.latexmk(options))
35-
def task_func():
36-
...
37-
38-
"""
39-
40-
4122
def latex(
4223
*,
4324
compilation_steps: str

0 commit comments

Comments
 (0)