Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ repos:
- mdformat-config
# ----- Python formatting -----
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.14
rev: v0.15.4
hooks:
# Run ruff linter.
- id: ruff-check
Expand All @@ -39,7 +39,7 @@ repos:
# Run ruff formatter.
- id: ruff-format
- repo: https://github.com/tox-dev/pyproject-fmt
rev: v2.12.1
rev: v2.16.2
hooks:
- id: pyproject-fmt
- repo: https://github.com/abravalheri/validate-pyproject
Expand Down
51 changes: 24 additions & 27 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -96,64 +96,61 @@ scripts.welding_schema = "weldx.asdf.cli.welding_schema:main"
entry-points."asdf.extensions".weldx = "weldx.asdf.extension:get_extensions"
entry-points."asdf.resource_mappings".weldx_schemas = "weldx.asdf.extension:get_resource_mappings"

[tool.setuptools.packages.find]
where = [
[tool.setuptools]
packages.find.where = [
".",
]

[tool.setuptools_scm]

[tool.nbqa]
# enable setuptools-scm versioning

[tool.nbqa.addopts]
ruff = [
addopts.ruff = [
"--extend-ignore=B018",
]

[tool.pytest.ini_options]
addopts = "--tb=short --color=yes -rsw --cov=weldx --cov-report=term-missing:skip-covered --doctest-modules"
#addopts = --tb=short --color=yes -rs -p no:cov
testpaths = "weldx"
[tool.pytest]
ini_options.addopts = "--tb=short --color=yes -rsw --cov=weldx --cov-report=term-missing:skip-covered --doctest-modules"
# addopts = --tb=short --color=yes -rs -p no:cov
ini_options.testpaths = "weldx"
# custom test markers, see https://docs.pytest.org/en/latest/example/markers.html#mark-examples
markers = "slow: marks tests as slow to run (skipped by default, enable with --runslow option)"
asdf_schema_root = "weldx/schemas/weldx.bam.de/weldx" # TODO: couldn't we just use the entry points to resolve this?
#asdf_schema_tests_enabled = true
#asdf_schema_skip_tests =
ini_options.markers = "slow: marks tests as slow to run (skipped by default, enable with --runslow option)"
ini_options.asdf_schema_root = "weldx/schemas/weldx.bam.de/weldx" # TODO: couldn't we just use the entry points to resolve this?
# asdf_schema_tests_enabled = true
# asdf_schema_skip_tests =
# weldx.bam.de/weldx/datamodels/single_pass_weld-1.0.0.schema.yaml
norecursedirs = [
ini_options.norecursedirs = [
"doc",
".ipynb_checkpoints",
]
filterwarnings = [
ini_options.filterwarnings = [
"ignore::DeprecationWarning:traittypes.*:",
"ignore:Passing method to :FutureWarning:xarray.*:",
"error::pint.UnitStrippedWarning",
#"error::FutureWarning", # todo: we want to enable this, as it notifies us about upcoming failures due to upstream changes.
# "error::FutureWarning", # todo: we want to enable this, as it notifies us about upcoming failures due to upstream changes.
]

[tool.coverage.report]
omit = [
"weldx/tests/*",
[tool.coverage]
run.source = [
"weldx",
]
exclude_lines = [
# Have to re-enable the standard pragma
"pragma: no cover",

report.exclude_lines = [
# ignore class __repr__-like functions:
"def __repr__",
"def __str__",
"def _ipython_display_",
# Have to re-enable the standard pragma
"pragma: no cover",
]

[tool.coverage.run]
source = [
"weldx",
report.omit = [
"weldx/tests/*",
]

[tool.mypy]
python_version = "3.9"
files = "weldx"
ignore_missing_imports = true # TODO: this is bad!
ignore_missing_imports = true # TODO: this is bad!
strict_optional = false
pretty = true
allow_redefinition = true
Expand Down
Loading