Skip to content

Commit 7052f18

Browse files
committed
Initial commit.
0 parents  commit 7052f18

30 files changed

+1600
-0
lines changed

.conda/bld.bat

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
"%PYTHON%" setup.py install
2+
if errorlevel 1 exit 1

.conda/build.sh

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
$PYTHON setup.py install # Python command to install the script.

.conda/meta.yaml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{% set data = load_setup_py_data() %}
2+
3+
package:
4+
name: latex-dependency-scanner
5+
version: {{ data.get('version') }}
6+
7+
source:
8+
# git_url is nice in that it won't capture devenv stuff. However, it only captures
9+
# committed code, so pay attention.
10+
git_url: ../
11+
12+
build:
13+
noarch: python
14+
number: 0
15+
16+
requirements:
17+
host:
18+
- python
19+
- pip
20+
- setuptools
21+
22+
run:
23+
- python >=3.6
24+
- setuptools
25+
26+
test:
27+
imports:
28+
- latex_dependency_scanner
29+
requires:
30+
- pytest
31+
source_files:
32+
- tox.ini
33+
- tests
34+
commands:
35+
- pytest tests
36+
37+
about:
38+
home: https://github.com/pytask-dev/latex-dependency-scanner
39+
license: MIT
40+
summary: Shows you which files are included in a LaTeX document.
41+
doc_url: https://github.com/pytask-dev/latex-dependency-scanner
42+
dev_url: https://github.com/pytask-dev/latex-dependency-scanner

.github/ISSUE_TEMPLATE/bug_report.md

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
3+
name: Bug Report
4+
about: Create a bug report to help us improve latex-dependency-scanner
5+
title: "BUG:"
6+
labels: "bug"
7+
8+
---
9+
10+
- [ ] I have checked that this issue has not already been reported.
11+
12+
- [ ] I have confirmed this bug exists on the latest version of
13+
latex-dependency-scanner.
14+
15+
- [ ] (optional) I have confirmed this bug exists on the `main` branch of
16+
latex-dependency-scanner.
17+
18+
---
19+
20+
**Note**: Please read [this
21+
guide](https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing
22+
how to provide the necessary information for us to reproduce your bug.
23+
24+
#### Code Sample, a copy-pastable example
25+
26+
```python
27+
# Your code here
28+
```
29+
30+
#### Problem description
31+
32+
Explain **why** the current behaviour is a problem and why the expected output is a
33+
better solution.
34+
35+
#### Expected Output

.github/ISSUE_TEMPLATE/enhancement.md

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
3+
name: Enhancement
4+
about: Suggest an idea for latex-dependency-scanner
5+
title: "ENH:"
6+
labels: "enhancement"
7+
8+
---
9+
10+
#### Is your feature request related to a problem?
11+
12+
Provide a description of what the problem is, e.g. "I wish I could use
13+
latex-dependency-scanner to do [...]".
14+
15+
#### Describe the solution you'd like
16+
17+
Provide a description of the feature request and how it might be implemented.
18+
19+
#### API breaking implications
20+
21+
Provide a description of how this feature will affect the API.
22+
23+
#### Describe alternatives you've considered
24+
25+
Provide a description of any alternative solutions or features you've considered.
26+
27+
#### Additional context
28+
29+
Add any other context, code examples, or references to existing implementations about
30+
the feature request here.
31+
32+
```python
33+
# Your code here, if applicable
34+
```

.github/ISSUE_TEMPLATE/question.md

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
3+
name: Submit Question
4+
about: Ask a general question about latex-dependency-scanner
5+
title: "QST:"
6+
labels: "question"
7+
8+
---
9+
10+
#### Question about latex-dependency-scanner
11+
12+
**Note**: If you'd still like to submit a question, please read [this guide](
13+
https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports) detailing how to
14+
provide the necessary information for us to reproduce your question.
15+
16+
```python
17+
# Your code here, if applicable
18+
```

.github/pull_request_template.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#### Changes
2+
3+
Provide a description and/or bullet points to describe the changes in this PR.
4+
5+
#### Todo
6+
7+
- [ ] Reference issues which can be closed due to this PR with "Closes #x".
8+
- [ ] Review whether the documentation needs to be updated.
9+
- [ ] Document PR in docs/changes.rst.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
name: Continuous Integration Workflow
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
branches:
8+
- '*'
9+
10+
jobs:
11+
12+
run-tests:
13+
14+
name: Run tests for ${{ matrix.os }} on ${{ matrix.python-version }}
15+
runs-on: ${{ matrix.os }}
16+
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
21+
python-version: ['3.6', '3.7', '3.8', '3.9']
22+
23+
steps:
24+
- uses: actions/checkout@v2
25+
- uses: r-lib/actions/setup-tinytex@v1
26+
if: runner.os != 'Windows'
27+
- uses: conda-incubator/setup-miniconda@v2
28+
with:
29+
auto-update-conda: true
30+
python-version: ${{ matrix.python-version }}
31+
32+
- name: Install MacOS dependencies.
33+
if: runner.os == 'macOS'
34+
shell: bash -l {0}
35+
run: brew install ghostscript
36+
37+
- name: Install LaTeX dependencies.
38+
if: runner.os != 'Windows'
39+
shell: bash -l {0}
40+
run: tlmgr install import epstopdf biblatex biber
41+
42+
- name: Install core dependencies.
43+
shell: bash -l {0}
44+
run: conda install -c conda-forge tox-conda coverage
45+
46+
# Unit, integration, and end-to-end tests.
47+
48+
- name: Run unit tests and doctests.
49+
shell: bash -l {0}
50+
run: tox -e pytest -- src tests -m "unit or (not integration and not end_to_end)" --cov=./ --cov-report=xml -n auto
51+
52+
- name: Upload coverage report for unit tests and doctests.
53+
if: runner.os == 'Linux' && matrix.python-version == '3.8'
54+
shell: bash -l {0}
55+
run: bash <(curl -s https://codecov.io/bash) -F unit -c
56+
57+
# - name: Run integration tests.
58+
# shell: bash -l {0}
59+
# run: tox -e pytest -- src tests -m integration --cov=./ --cov-report=xml -n auto
60+
61+
# - name: Upload coverage reports of integration tests.
62+
# if: runner.os == 'Linux' && matrix.python-version == '3.8'
63+
# shell: bash -l {0}
64+
# run: bash <(curl -s https://codecov.io/bash) -F integration -c
65+
66+
- name: Run end-to-end tests.
67+
shell: bash -l {0}
68+
run: tox -e pytest -- src tests -m end_to_end --cov=./ --cov-report=xml -n auto
69+
70+
- name: Upload coverage reports of end-to-end tests.
71+
if: runner.os == 'Linux' && matrix.python-version == '3.8'
72+
shell: bash -l {0}
73+
run: bash <(curl -s https://codecov.io/bash) -F end_to_end -c

.gitignore

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Files
2+
.coverage
3+
coverage.*
4+
5+
# Folders
6+
.idea
7+
.ipynb_checkpoints
8+
.tox
9+
.vscode
10+
_build
11+
__pycache__
12+
_generated
13+
14+
*.egg-info
15+
16+
.pytask.sqlite3

.pre-commit-config.yaml

+79
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v3.3.0
4+
hooks:
5+
- id: check-added-large-files
6+
args: ['--maxkb=25']
7+
- id: check-merge-conflict
8+
- id: check-yaml
9+
exclude: meta.yaml
10+
- id: debug-statements
11+
- id: end-of-file-fixer
12+
- repo: https://github.com/pre-commit/pygrep-hooks
13+
rev: v1.7.0
14+
hooks:
15+
- id: python-check-blanket-noqa
16+
- id: python-check-mock-methods
17+
- id: python-no-eval
18+
- id: python-no-log-warn
19+
- id: python-use-type-annotations
20+
- id: rst-backticks
21+
- id: rst-directive-colons
22+
- id: rst-inline-touching-normal
23+
- id: text-unicode-replacement-char
24+
- repo: https://github.com/asottile/pyupgrade
25+
rev: v2.7.3
26+
hooks:
27+
- id: pyupgrade
28+
args: [--py36-plus]
29+
- repo: https://github.com/asottile/reorder_python_imports
30+
rev: v2.3.6
31+
hooks:
32+
- id: reorder-python-imports
33+
- repo: https://github.com/psf/black
34+
rev: 20.8b1
35+
hooks:
36+
- id: black
37+
- repo: https://github.com/asottile/blacken-docs
38+
rev: v1.8.0
39+
hooks:
40+
- id: blacken-docs
41+
additional_dependencies: [black]
42+
- repo: https://gitlab.com/pycqa/flake8
43+
rev: 3.8.4
44+
hooks:
45+
- id: flake8
46+
additional_dependencies: [
47+
flake8-alfred,
48+
flake8-bugbear,
49+
flake8-builtins,
50+
flake8-comprehensions,
51+
flake8-docstrings,
52+
flake8-eradicate,
53+
flake8-print,
54+
flake8-pytest-style,
55+
flake8-todo,
56+
flake8-unused-arguments,
57+
pep8-naming,
58+
pydocstyle,
59+
Pygments,
60+
]
61+
- repo: https://github.com/PyCQA/doc8
62+
rev: 0.9.0a1
63+
hooks:
64+
- id: doc8
65+
- repo: https://github.com/econchick/interrogate
66+
rev: 1.3.1
67+
hooks:
68+
- id: interrogate
69+
args: [-v, --fail-under=40, src, tests]
70+
- repo: https://github.com/codespell-project/codespell
71+
rev: v1.17.1
72+
hooks:
73+
- id: codespell
74+
args: [-L=bringin]
75+
- repo: meta
76+
hooks:
77+
- id: check-hooks-apply
78+
- id: check-useless-excludes
79+
# - id: identity # Prints all files passed to pre-commits. Debugging.

CHANGES.rst

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Changes
2+
=======
3+
4+
This is a record of all past latex-dependency-scanner releases and what went into them
5+
in reverse chronological order. Releases follow `semantic versioning
6+
<https://semver.org/>`_ and all releases are available on `Anaconda.org
7+
<https://anaconda.org/pytask/latex-dependency-scanner>`_.
8+
9+
10+
0.0.1 - 2020-12-27
11+
------------------
12+
13+
- Releases v0.0.1.

LICENSE

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Copyright 2020 Tobias Raabe
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of this
4+
software and associated documentation files (the "Software"), to deal in the Software
5+
without restriction, including without limitation the rights to use, copy, modify,
6+
merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7+
permit persons to whom the Software is furnished to do so, subject to the following
8+
conditions:
9+
10+
The above copyright notice and this permission notice shall be included in all copies or
11+
substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
14+
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
15+
PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
16+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT
17+
OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
18+
OTHER DEALINGS IN THE SOFTWARE.

0 commit comments

Comments
 (0)