Skip to content
Snippets Groups Projects
Commit f370f309 authored by Duncan Macleod's avatar Duncan Macleod
Browse files

Merge branch 'ci-type-checking' into 'main'

Add type-checking in CI

See merge request computing/gwdatafind/client!108
parents 241a87be 564b14ff
No related branches found
No related tags found
1 merge request!108Add type-checking in CI
Pipeline #713684 passed
include: include:
# -- Python ------------------------- # -- Python -------------------------
- component: $CI_SERVER_FQDN/computing/gitlab/components/python/all@1 - component: $CI_SERVER_FQDN/computing/gitlab/components/python/all@2
inputs: inputs:
code_quality_analyzer: ruff code_quality_analyzer: ruff
install_extra: "test" install_extra: "test"
run_advanced_sast: true run_advanced_sast: true
- component: $CI_SERVER_FQDN/computing/gitlab/components/python/type-checking@2
# -- Debian packaging --------------- # -- Debian packaging ---------------
...@@ -36,7 +37,7 @@ include: ...@@ -36,7 +37,7 @@ include:
# -- Red Hat packaging -------------- # -- Red Hat packaging --------------
- component: $CI_SERVER_FQDN/computing/gitlab/components/redhat/all@1 - component: $CI_SERVER_FQDN/computing/gitlab/components/redhat/all@2
inputs: inputs:
needs: [sdist] needs: [sdist]
redhat_versions: redhat_versions:
......
...@@ -80,11 +80,24 @@ source = [ ...@@ -80,11 +80,24 @@ source = [
] ]
[tool.coverage.report] [tool.coverage.report]
exclude_lines = [
# ignore when asked
"pragma: no( |-)cover",
# don't complain about typing blocks
"if (typing\\.)?TYPE_CHECKING",
]
precision = 1 precision = 1
[tool.coverage.run] [tool.coverage.run]
source = ["gwdatafind"] source = ["gwdatafind"]
[tool.mypy]
check_untyped_defs = true
exclude = [
"^docs/",
]
ignore_missing_imports = true
[tool.pytest.ini_options] [tool.pytest.ini_options]
addopts = "-r a --color=yes" addopts = "-r a --color=yes"
filterwarnings = [ filterwarnings = [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment