Skip to content

Commit 71d8c23

Browse files
committed
pre-commit support
1 parent a01f859 commit 71d8c23

File tree

3 files changed

+85
-53
lines changed

3 files changed

+85
-53
lines changed

.pre-commit-config.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# See https://pre-commit.com for more information
2+
# See https://pre-commit.com/hooks.html for more hooks
3+
repos:
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
rev: v3.2.0
6+
hooks:
7+
- id: trailing-whitespace
8+
- id: end-of-file-fixer
9+
- id: check-yaml
10+
- id: check-added-large-files
11+
- repo: https://github.com/pycqa/flake8
12+
rev: '3.9.2'
13+
hooks:
14+
- id: flake8
15+
- repo: https://github.com/ambv/black
16+
rev: stable
17+
hooks:
18+
- id: black

poetry.lock

Lines changed: 63 additions & 50 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ include = [ "CHANGELOG.md" ]
1717

1818
[tool.poetry.dependencies]
1919
python = "^3.8"
20-
casparser-isin = ">=2021.7.21"
21-
click = "^8.0.1"
20+
casparser-isin = ">=2021.9.1"
21+
click = ">=7.0,<9.0"
2222
colorama = "^0.4.4"
2323
"pdfminer.six" = "20201018"
2424
python-dateutil = "^2.8.1"
2525
rich = "^10.1.0"
2626
typing-extensions = "^3.10"
27-
PyMuPDF = {version = "^1.18.14", optional = true}
27+
PyMuPDF = {version = "^1.18.17", optional = true}
2828

2929
[tool.poetry.extras]
3030
mupdf = ["PyMuPDF"]
@@ -33,6 +33,7 @@ mupdf = ["PyMuPDF"]
3333
coverage = {version = "^5.5", extras=["toml"]}
3434
pytest = "^6.2.3"
3535
pytest-cov = "^2.11.1"
36+
pre-commit = "*"
3637

3738
[tool.poetry.scripts]
3839
casparser = 'casparser.cli:cli'

0 commit comments

Comments
 (0)