Skip to content

Commit

Permalink
fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
bosd committed Nov 26, 2023
1 parent db1c61b commit a487f6f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 10 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,6 @@ jobs:
- name: Install testing dependencies
run: |
pip install -U wheel pip
pip install -U ".[test]"
pip install --editable ".[test]"
- name: Test with pytest
run: pytest
29 changes: 20 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,37 +47,48 @@ ocr = ["imagemagick", "ghostscript", "tesseract-ocr"]
pdfplumber = ["pdfplumber"]
pdfminer = ["pdfminer.six"]
ocrmypdf = ["ocrmypdf"]
test = ["pytest", "pytest-cov", "flake8", "pdfminer.six", "pdfplumber", "tox"]

[options.extras_require]
test = ["pytest", "pytest-cov", "pdfminer.six", "pdfplumber", "tox"]
test = ["pytest", "pytest-cov", "flake8", "pdfminer.six", "pdfplumber", "tox"]

# pyproject.toml
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra -q -vs --cov invoice2data"
addopts = "-vs --cov invoice2data"
testpaths = [
"tests"
]

[tool.flake8]
ignore = ["E231", "E241", "E203"]
per-file-ignores = [
"__init__.py:F401",
]
exclude = [
"build", "dist", ".git", ".idea", ".cache", ".tox", ".eggs"
]
max-line-length = 120
count = true

[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py38,py39,py310,py312
envlist = py38,py39,py310,py312,flake8
skip_missing_interpreters = True
[testenv]
deps = pytest >= 3.0.0, <4
commands = pytest
extras = test
[testenv:flake8]
commands=flake8 src tests
extras = test
"""

[tool.coverage.run]
branch = true
source = ["src"]

[tool.coverage.report]
show_missing = true
[project.entry-points."invoice2data"]
console_scripts = "invoice2data.main:main"

[tool.setuptools.dynamic]
readme = {file = ["README.md"]}
Expand Down

0 comments on commit a487f6f

Please sign in to comment.