Skip to content

Commit b723ebf

Browse files
authored
move test dependencies to dev dependency group (#679)
1 parent 616e870 commit b723ebf

File tree

3 files changed

+30
-32
lines changed

3 files changed

+30
-32
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ install:
2323
python3 -m pip install --upgrade -e .
2424

2525
test-requirements:
26-
python3 -m pip install --upgrade -r test-requirements.txt
26+
python3 -m pip install --upgrade --group dev
2727

2828
generate-proto-parsers:
2929
# Generate python parsers for protobuf files

pyproject.toml

Lines changed: 29 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
[project]
22
name = "mvt"
33
dynamic = ["version"]
4-
authors = [
5-
{name = "Claudio Guarnieri", email = "nex@nex.sx"}
6-
]
4+
authors = [{ name = "Claudio Guarnieri", email = "nex@nex.sx" }]
75
maintainers = [
8-
{name = "Etienne Maynier", email = "tek@randhome.io"},
9-
{name = "Donncha Ó Cearbhaill", email = "donncha.ocearbhaill@amnesty.org"},
10-
{name = "Rory Flynn", email = "rory.flynn@amnesty.org"}
6+
{ name = "Etienne Maynier", email = "tek@randhome.io" },
7+
{ name = "Donncha Ó Cearbhaill", email = "donncha.ocearbhaill@amnesty.org" },
8+
{ name = "Rory Flynn", email = "rory.flynn@amnesty.org" },
119
]
1210
description = "Mobile Verification Toolkit"
1311
readme = "README.md"
@@ -16,7 +14,7 @@ classifiers = [
1614
"Development Status :: 5 - Production/Stable",
1715
"Intended Audience :: Information Technology",
1816
"Operating System :: OS Independent",
19-
"Programming Language :: Python"
17+
"Programming Language :: Python",
2018
]
2119
dependencies = [
2220
"click==8.2.1",
@@ -45,20 +43,31 @@ homepage = "https://docs.mvt.re/en/latest/"
4543
repository = "https://github.com/mvt-project/mvt"
4644

4745
[project.scripts]
48-
mvt-ios = "mvt.ios:cli"
49-
mvt-android = "mvt.android:cli"
46+
mvt-ios = "mvt.ios:cli"
47+
mvt-android = "mvt.android:cli"
48+
49+
[dependency-groups]
50+
dev = [
51+
"requests>=2.31.0",
52+
"pytest>=7.4.3",
53+
"pytest-cov>=4.1.0",
54+
"pytest-github-actions-annotate-failures>=0.2.0",
55+
"pytest-mock>=3.14.0",
56+
"stix2>=3.0.1",
57+
"ruff>=0.1.6",
58+
"mypy>=1.7.1",
59+
"betterproto[compiler]",
60+
]
5061

5162
[build-system]
5263
requires = ["setuptools>=61.0"]
5364
build-backend = "setuptools.build_meta"
5465

5566
[tool.coverage.run]
56-
omit = [
57-
"tests/*",
58-
]
67+
omit = ["tests/*"]
5968

6069
[tool.coverage.html]
61-
directory= "htmlcov"
70+
directory = "htmlcov"
6271

6372
[tool.mypy]
6473
install_types = true
@@ -68,15 +77,13 @@ packages = "src"
6877

6978
[tool.pytest.ini_options]
7079
addopts = "-ra -q --cov=mvt --cov-report html --junitxml=pytest.xml --cov-report=term-missing:skip-covered"
71-
testpaths = [
72-
"tests"
73-
]
80+
testpaths = ["tests"]
7481

7582
[tool.ruff.lint]
76-
select = ["C90", "E", "F", "W"] # flake8 default set
83+
select = ["C90", "E", "F", "W"] # flake8 default set
7784
ignore = [
78-
"E501", # don't enforce line length violations
79-
"C901", # complex-structure
85+
"E501", # don't enforce line length violations
86+
"C901", # complex-structure
8087

8188
# These were previously ignored but don't seem to be required:
8289
# "E265", # no-space-after-block-comment
@@ -88,14 +95,14 @@ ignore = [
8895
]
8996

9097
[tool.ruff.lint.per-file-ignores]
91-
"__init__.py" = ["F401"] # unused-import
98+
"__init__.py" = ["F401"] # unused-import
9299

93100
[tool.ruff.lint.mccabe]
94101
max-complexity = 10
95102

96103
[tool.setuptools]
97104
include-package-data = true
98-
package-dir = {"" = "src"}
105+
package-dir = { "" = "src" }
99106

100107
[tool.setuptools.packages.find]
101108
where = ["src"]
@@ -104,4 +111,4 @@ where = ["src"]
104111
mvt = ["ios/data/*.json"]
105112

106113
[tool.setuptools.dynamic]
107-
version = {attr = "mvt.common.version.MVT_VERSION"}
114+
version = { attr = "mvt.common.version.MVT_VERSION" }

test-requirements.txt

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)