Skip to content

Commit 66ea361

Browse files
committed
Fix.
1 parent 138f798 commit 66ea361

File tree

5 files changed

+15
-65
lines changed

5 files changed

+15
-65
lines changed

.conda/meta.yaml

Lines changed: 0 additions & 49 deletions
This file was deleted.

.github/workflows/continuous-integration-workflow.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
fail-fast: false
2525
matrix:
2626
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
27-
python-version: ['3.7', '3.8', '3.9']
27+
python-version: ['3.7', '3.8', '3.9', '3.10']
2828

2929
steps:
3030
- uses: actions/checkout@v2
@@ -46,7 +46,7 @@ jobs:
4646
run: tox -e pytest -- -m "unit or (not integration and not end_to_end)" --cov=./ --cov-report=xml -n auto
4747

4848
- name: Upload coverage report for unit tests and doctests.
49-
if: runner.os == 'Linux' && matrix.python-version == '3.8'
49+
if: runner.os == 'Linux' && matrix.python-version == '3.9'
5050
shell: bash -l {0}
5151
run: bash <(curl -s https://codecov.io/bash) -F unit -c
5252

@@ -55,11 +55,6 @@ jobs:
5555
run: tox -e pytest -- -m end_to_end --cov=./ --cov-report=xml -n auto
5656

5757
- name: Upload coverage reports of end-to-end tests.
58-
if: runner.os == 'Linux' && matrix.python-version == '3.8'
58+
if: runner.os == 'Linux' && matrix.python-version == '3.9'
5959
shell: bash -l {0}
6060
run: bash <(curl -s https://codecov.io/bash) -F end_to_end -c
61-
62-
- name: Validate codecov.yml
63-
if: runner.os == 'Linux' && matrix.python-version == '3.8'
64-
shell: bash -l {0}
65-
run: cat codecov.yml | curl --data-binary @- https://codecov.io/validate

.pre-commit-config.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,16 @@ repos:
66
args: ['--maxkb=100']
77
- id: check-merge-conflict
88
- id: check-yaml
9-
exclude: meta.yaml
109
- id: debug-statements
1110
- id: end-of-file-fixer
11+
- id: check-case-conflict
12+
- id: check-vcs-permalinks
13+
- id: check-yaml
14+
- id: fix-byte-order-marker
15+
- id: mixed-line-ending
16+
- id: no-commit-to-branch
17+
args: [--branch, main]
18+
- id: trailing-whitespace
1219
- repo: https://github.com/pre-commit/pygrep-hooks
1320
rev: v1.9.0 # Use the ref you want to point at
1421
hooks:

setup.cfg

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ classifiers =
1515
Operating System :: OS Independent
1616
Programming Language :: Python :: 3
1717
Programming Language :: Python :: 3 :: Only
18-
Programming Language :: Python :: 3.6
1918
Programming Language :: Python :: 3.7
2019
Programming Language :: Python :: 3.8
2120
Programming Language :: Python :: 3.9
@@ -30,9 +29,9 @@ project_urls =
3029
packages = find:
3130
install_requires =
3231
click
33-
latex-dependency-scanner
34-
pytask>=0.1.0
35-
python_requires = >=3.6
32+
latex-dependency-scanner>=0.1.1
33+
pytask>=0.1.7
34+
python_requires = >=3.7
3635
include_package_data = True
3736
package_dir = =src
3837
zip_safe = False

src/pytask_latex/collect.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77
import subprocess
88
from pathlib import Path
99
from typing import Iterable
10-
from typing import Optional
1110
from typing import Sequence
12-
from typing import Union
1311

1412
from _pytask.config import hookimpl
1513
from _pytask.mark import Mark
@@ -25,7 +23,7 @@
2523
DEFAULT_OPTIONS = ["--pdf", "--interaction=nonstopmode", "--synctex=1", "--cd"]
2624

2725

28-
def latex(options: Optional[Union[str, Iterable[str]]] = None):
26+
def latex(options: str | Iterable[str] | None = None):
2927
"""Specify command line options for latexmk.
3028
3129
Parameters

0 commit comments

Comments
 (0)