diff options
| author | J08nY | 2025-02-14 22:52:50 +0100 |
|---|---|---|
| committer | J08nY | 2025-02-14 23:40:15 +0100 |
| commit | 974adbc076bd1b4779e0d644c595a14ce83f1698 (patch) | |
| tree | 3bfece8cee36376222b188585b4f4e88722c7f4d | |
| parent | 0c476b79a0b835bf8a3a0786b59595363c28e2c5 (diff) | |
| download | sec-certs-974adbc076bd1b4779e0d644c595a14ce83f1698.tar.gz sec-certs-974adbc076bd1b4779e0d644c595a14ce83f1698.tar.zst sec-certs-974adbc076bd1b4779e0d644c595a14ce83f1698.zip | |
Move to coverage config in toml.
| -rw-r--r-- | .github/workflows/tests.yml | 2 | ||||
| -rw-r--r-- | pyproject.toml | 23 |
2 files changed, 13 insertions, 12 deletions
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5b3353fa..46b7773c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -31,7 +31,7 @@ jobs: pip install -e . python -m spacy download en_core_web_sm - name: Run tests - run: pytest --cov=sec_certs tests + run: pytest - name: Code coverage upload uses: codecov/codecov-action@v4 with: diff --git a/pyproject.toml b/pyproject.toml index a13f9e77..f27c9aa6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,6 +21,7 @@ "Topic :: Security :: Cryptography", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Intended Audience :: Developers", "Intended Audience :: Science/Research", ] @@ -83,7 +84,7 @@ "sphinx-copybutton", "ipython!=8.7.0", ] - test = ["pytest", "coverage", "pytest-cov"] + test = ["pytest", "coverage[toml]", "pytest-cov"] nlp = [ "catboost", "optuna", @@ -124,20 +125,18 @@ [tool.ruff.lint.mccabe] max-complexity = 10 - [tool.setuptools.package-data] - 'sec_certs' = ["rules.yaml"] - 'sec_certs.config' = ["settings.yaml", "settings-schema.json"] - 'sec_certs.data' = [ - "reference_annotations/split/*.json", - "reference_annotations/manual_annotations/final/*.csv", - ] - +[tool.setuptools.package-data] + 'sec_certs' = ["rules.yaml"] + 'sec_certs.config' = ["settings.yaml", "settings-schema.json"] + 'sec_certs.data' = [ + "reference_annotations/split/*.json", + "reference_annotations/manual_annotations/final/*.csv", + ] [tool.setuptools_scm] write_to = "src/sec_certs/_version.py" version_scheme = "no-guess-dev" - [tool.mypy] plugins = ["numpy.typing.mypy_plugin"] ignore_missing_imports = true @@ -145,4 +144,6 @@ [tool.pytest.ini_options] markers = ["slow: marks tests as slow (deselect with '-m \"not slow\"')"] - addopts = "--cov sec_certs" + +[tool.coverage.run] + source = ["src"] |
