Skip to content

Commit d05efeb

Browse files
author
James Chien
committed
test: update lint and test commands
Signed-off-by: James Chien <james@numbersprotocol.io>
1 parent 7775bdb commit d05efeb

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ $(VENV_DIR)/bin/$(SPHINXBUILD): $(VENV_PYTHON)
2727

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

3232
.PHONY: test
3333
test: $(VENV_DIR)/bin/tox
34-
$(VENV_DIR)/bin/tox -e pytest,report
34+
$(VENV_DIR)/bin/tox -c setup.cfg -e test
3535

3636
.PHONY: docs
3737
docs: $(VENV_DIR)/bin/$(SPHINXBUILD)

setup.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ max-complexity = 10
6565
exclude = .git,__pycache__,__init__.py,.mypy_cache,.pytest_cache,venv,.venv
6666

6767
[tox:tox]
68-
envlist=
69-
py37, py38, py39, py310, flake8, pylint, bandit
68+
env_list=
69+
py37, py38, py39, py310, flake8, pylint, bandit, test, report
7070

7171
[testenv]
7272
deps =

src/numbers_c2pa/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import os
44
import subprocess
55
from datetime import datetime
6-
from tempfile import NamedTemporaryFile, TemporaryDirectory
6+
from tempfile import TemporaryDirectory
77
from typing import Any, Dict, List, Optional
88

99
import requests

0 commit comments

Comments
 (0)