Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 13, 2025
1 parent cf64860 commit 4297701
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
]

templates_path = ["_templates"]
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", "venv" "README.md"]
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", "venvREADME.md"]

# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
Expand Down
2 changes: 1 addition & 1 deletion src/adtl/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,7 @@ def show_report(self):
print(
f"|{table:14s}\t|{self.report['total_valid'][table]}\t"
f"|{self.report['total'][table]}\t"
f"|{self.report['total_valid'][table]/self.report['total'][table]:%} |" # noqa:E501
f"|{self.report['total_valid'][table] / self.report['total'][table]:%} |" # noqa:E501
)
print()
for table in self.report["validation_errors"]:
Expand Down
6 changes: 3 additions & 3 deletions tests/test_autoparser/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ def test_read_config_schema():
"s, expected",
[
("oui=True, non=False, blah=None", {"oui": True, "non": False, "blah": ""}),
("vivant=alive, décédé=dead, " "=None", {"vivant": "alive", "décédé": "dead"}),
("vivant=alive, décédé=dead, =None", {"vivant": "alive", "décédé": "dead"}),
({2: True}, None),
("" " = " ", poisson=fish", {"poisson": "fish"}),
(" = , poisson=fish", {"poisson": "fish"}),
(
"" "=None, ecouvillon+croûte=[swab, crust], ecouvillon=[swab]",
"=None, ecouvillon+croûte=[swab, crust], ecouvillon=[swab]",
{"ecouvillon+croûte": ["swab", "crust"], "ecouvillon": ["swab"]},
),
("pos=Y, neg=N", {"pos": "Y", "neg": "N"}),
Expand Down

0 comments on commit 4297701

Please sign in to comment.