Skip to content

Commit 8fd507c

Browse files
committed
pre-commit suggested changes
1 parent 01d7370 commit 8fd507c

7 files changed

Lines changed: 20 additions & 18 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
<img src="https://raw.githubusercontent.com/ESGF/esgf-qa/master/docs/esgf-qa_Logo.png" align="left" width="120">
66

77
`esgf-qa` provides a flexible quality assurance (QA) workflow for evaluating dataset compliance using the
8-
[ioos/compliance-checker](https://github.com/ioos/compliance-checker) framework
9-
(including [CF](https://cfconventions.org/) compliance checks)
8+
[ioos/compliance-checker](https://github.com/ioos/compliance-checker) framework
9+
(including [CF](https://cfconventions.org/) compliance checks)
1010
and various community plugins (`cc-plugin`s), such as
1111
[ESGF/cc-plugin-wcrp](https://github.com/ESGF/cc-plugin-wcrp) and
1212
[euro-cordex/cc-plugin-cc6](https://github.com/euro-cordex/cc-plugin-cc6).
1313

14-
The tool executes file-based quality control (QC) tests through the Compliance Checker,
15-
and, where applicable, performs additional dataset-level checks to test inter-file time-axis continuity
14+
The tool executes file-based quality control (QC) tests through the Compliance Checker,
15+
and, where applicable, performs additional dataset-level checks to test inter-file time-axis continuity
1616
and consistency in variable, coordinate and attribute definitions.
1717
Results from both file- and dataset-level checks are aggregated, summarized, and clustered for easier interpretation.
1818

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# Cluster QA results `esgf_qa.cluster_results`
1+
# Cluster QA results `esgf_qa.cluster_results`
22

33
::: esgf_qa.cluster_results
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# Consistency Checks `esgf_qa.con_checks`
1+
# Consistency Checks `esgf_qa.con_checks`
22

33
::: esgf_qa.con_checks

docs/reference/esgf_qa_run_qa.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# Run QA Workflow `esgf_qa.run_qa`
1+
# Run QA Workflow `esgf_qa.run_qa`
22

33
::: esgf_qa.run_qa

esgf_qa/_constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,4 @@
6969
for l_freq in ["subhr", "1hr", "3hr", "6hr", "day", "mon", "yr"]:
7070
deltdic[l_freq + "Pt"] = deltdic[l_freq]
7171
deltdic[l_freq + "Ptmax"] = deltdic[l_freq + "max"]
72-
deltdic[l_freq + "Ptmin"] = deltdic[l_freq + "min"]
72+
deltdic[l_freq + "Ptmin"] = deltdic[l_freq + "min"]

esgf_qa/cluster_results.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import difflib
22
import re
33
from collections import defaultdict
4-
from esgf_qa._constants import checker_dict, checker_dict_ext
54

5+
from esgf_qa._constants import checker_dict, checker_dict_ext
66

77

88
class QAResultAggregator:
@@ -65,6 +65,7 @@ class QAResultAggregator:
6565
>>> agg.clustered_summary["fail"]
6666
{3: {'[CF-Conventions] test_1': {'Missing attribute {A} (1 occurrences, e.g. A=\'units\')': {...}}}}
6767
"""
68+
6869
def __init__(self):
6970
"""
7071
Initialize the aggregator with an empty summary.
@@ -259,6 +260,7 @@ def merge_placeholders(list_of_strings, dictionary, skip=0):
259260
dict
260261
Dictionary of placeholders.
261262
"""
263+
262264
def find_next_two_placeholders(list_of_strings, skip):
263265
placeholders = [
264266
s for s in list_of_strings if s.startswith("{") and s.endswith("}")
@@ -461,4 +463,4 @@ def cluster_summary(self, threshold=0.75):
461463

462464
self.clustered_summary[status][weight][test_id][
463465
msg_summary
464-
] = formatted
466+
] = formatted

pyproject.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ keywords = ["compliance checker", "plugin", "wcrp", "cmip", "cmip6", "cmip7", "c
1313
license = "Apache-2.0"
1414
license-files = ["LICENSE"]
1515
authors = [
16-
{name = "Martin Schupfner", email = "schupfner@dkrz.de"},
16+
{name = "Martin Schupfner", email = "schupfner@dkrz.de"}
1717
]
1818
maintainers = [
1919
{name = "Martin Schupfner", email = "schupfner@dkrz.de"}
@@ -61,14 +61,14 @@ dev = [
6161
"wheel"
6262
]
6363

64-
[project.urls]
65-
homepage = "https://github.com/ESGF/esgf-qa"
66-
repository = "https://github.com/ESGF/esgf-qa"
67-
6864
[project.scripts]
6965
esgqa = "esgf_qa.run_qa:main"
7066
esgqaviewer = "esgf_qa.qaviewer:main"
7167

68+
[project.urls]
69+
homepage = "https://github.com/ESGF/esgf-qa"
70+
repository = "https://github.com/ESGF/esgf-qa"
71+
7272
[tool.black]
7373
target-version = [
7474
"py310",
@@ -115,9 +115,9 @@ ignore = ["E501"]
115115
known-first-party = ["esgf_qa"]
116116
lines-after-imports = 1
117117

118+
[tool.setuptools.packages.find]
119+
exclude = ["fonts"]
120+
118121
[tool.setuptools_scm]
119122
fallback_version = "999"
120123
write_to = "esgf_qa/_version.py"
121-
122-
[tool.setuptools.packages.find]
123-
exclude = ["fonts"]

0 commit comments

Comments
 (0)