Skip to content

Commit

Permalink
test: update lint and test commands
Browse files Browse the repository at this point in the history
Signed-off-by: James Chien <[email protected]>
  • Loading branch information
shc261392 committed Apr 22, 2024
1 parent 7775bdb commit d05efeb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ $(VENV_DIR)/bin/$(SPHINXBUILD): $(VENV_PYTHON)

.PHONY: lint
lint: $(VENV_DIR)/bin/tox
$(VENV_DIR)/bin/tox -e flake8,pylint,bandit
$(VENV_DIR)/bin/tox -c setup.cfg -e flake8,pylint,bandit

.PHONY: test
test: $(VENV_DIR)/bin/tox
$(VENV_DIR)/bin/tox -e pytest,report
$(VENV_DIR)/bin/tox -c setup.cfg -e test

.PHONY: docs
docs: $(VENV_DIR)/bin/$(SPHINXBUILD)
Expand Down
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ max-complexity = 10
exclude = .git,__pycache__,__init__.py,.mypy_cache,.pytest_cache,venv,.venv

[tox:tox]
envlist=
py37, py38, py39, py310, flake8, pylint, bandit
env_list=
py37, py38, py39, py310, flake8, pylint, bandit, test, report

[testenv]
deps =
Expand Down
2 changes: 1 addition & 1 deletion src/numbers_c2pa/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import os
import subprocess
from datetime import datetime
from tempfile import NamedTemporaryFile, TemporaryDirectory
from tempfile import TemporaryDirectory
from typing import Any, Dict, List, Optional

import requests
Expand Down

0 comments on commit d05efeb

Please sign in to comment.