Skip to content

Commit

Permalink
Some infrastructure changes (#300)
Browse files Browse the repository at this point in the history
  • Loading branch information
PicoCentauri authored Jul 16, 2024
1 parent 8fccf03 commit 0024253
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 11 deletions.
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: monthly
open-pull-requests-limit: 1
groups:
action-dependencies:
patterns:
- "*" # A wildcard to create one PR for all dependencies in the ecosystem
8 changes: 8 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,11 @@ exclude = [
]
follow_imports = 'skip'
ignore_missing_imports = true

[tool.pytest.ini_options]
# ignore" a bunch of internal warnings with Python 3.12 and PyTorch
filterwarnings = [
"ignore:ast.Str is deprecated and will be removed in Python 3.14:DeprecationWarning",
"ignore:Attribute s is deprecated and will be removed in Python 3.14:DeprecationWarning",
"ignore:ast.NameConstant is deprecated and will be removed in Python 3.14:DeprecationWarning",
]
15 changes: 4 additions & 11 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@ lint_folders =
"{toxinidir}/src/" \
"{toxinidir}/tests/" \
"{toxinidir}/docs/src/"
warning_options = \
-W "ignore:ast.Str is deprecated and will be removed in Python 3.14:DeprecationWarning" \
-W "ignore:Attribute s is deprecated and will be removed in Python 3.14:DeprecationWarning" \
-W "ignore:ast.NameConstant is deprecated and will be removed in Python 3.14:DeprecationWarning"
# the "-W ignore" flags above are for PyTorch, which triggers a bunch of
# internal warnings with Python 3.12

[testenv:lint]
description = Run linters and type checks
Expand Down Expand Up @@ -75,7 +69,6 @@ commands =
--cov-append \
--cov-report= \
--import-mode=append \
{[testenv]warning_options} \
{posargs}

[testenv:build]
Expand All @@ -102,7 +95,7 @@ deps =
extras = soap-bpnn
changedir = src/metatrain/experimental/soap_bpnn/tests/
commands =
pytest {[testenv]warning_options} {posargs}
pytest {posargs}

[testenv:alchemical-model-tests]
description = Run Alchemical Model tests with pytest
Expand All @@ -112,7 +105,7 @@ deps =
extras = alchemical-model
changedir = src/metatrain/experimental/alchemical_model/tests/
commands =
pytest {[testenv]warning_options} {posargs}
pytest {posargs}

[testenv:pet-tests]
description = Run PET tests with pytest
Expand All @@ -122,7 +115,7 @@ deps =
extras = pet
changedir = src/metatrain/experimental/pet/tests/
commands =
pytest {[testenv]warning_options} {posargs}
pytest {posargs}

[testenv:gap-tests]
description = Run GAP tests with pytest
Expand All @@ -132,7 +125,7 @@ deps =
extras = gap
changedir = src/metatrain/experimental/gap/tests/
commands =
pytest {[testenv]warning_options} {posargs}
pytest {posargs}

[testenv:docs]
description = builds the documentation with sphinx
Expand Down

0 comments on commit 0024253

Please sign in to comment.