Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#116)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.8.2 → v0.9.2](astral-sh/ruff-pre-commit@v0.8.2...v0.9.2)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Jan 24, 2025
1 parent 948cd88 commit e6c7dc2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ repos:
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.2
rev: v0.9.2
hooks:
- id: ruff
args: [ "--select", "I", "--fix" ]
Expand Down
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 e6c7dc2

Please sign in to comment.