Skip to content

Commit

Permalink
its a test
Browse files Browse the repository at this point in the history
  • Loading branch information
DonHaul committed Oct 8, 2024
1 parent 8fbdbda commit 8d945e9
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
17 changes: 17 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: fix-byte-order-marker
- id: mixed-line-ending
- id: name-tests-test
args: [ --pytest-test-first ]
exclude: '^(?!factories/)'
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.6
hooks:
- id: ruff
args: [ --fix]
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ FROM python:3.8
RUN apt update && apt install poppler-utils -y
COPY setup.py setup.cfg README.rst ./
COPY refextract refextract/
RUN python setup.py install
RUN python setup.py install
ENV PROMETHEUS_MULTIPROC_DIR='/tmp'
ENTRYPOINT exec gunicorn -b :5000 --access-logfile - --error-logfile - refextract.app:app --timeout 650
2 changes: 1 addition & 1 deletion refextract/documents/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ def check_boundary_lines_similar(l_1, l_2):
@return: (int) 1/0.
"""
num_matches = 0
if (type(l_1) != list) or (type(l_2) != list) or (len(l_1) != len(l_2)):
if not isinstance(l_1,list) or not isinstance(l_2,list) or (len(l_1) != len(l_2)):
# these 'boundaries' are not similar
return 0

Expand Down
1 change: 0 additions & 1 deletion refextract/references/regexs.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@ def compute_pos_patterns(patterns):
r"quan-ph": "quant-ph",
r"nlin-cd": "nlin.cd",
r"math-sp": "math.sp",
r"atro-ph": "astro-ph",
r"ast-ph": "astro-ph",
r"asyro-ph": "astro-ph",
r"aastro-ph": "astro-ph",
Expand Down

0 comments on commit 8d945e9

Please sign in to comment.