Skip to content

Commit

Permalink
Merge pull request #135 from sandialabs/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
ci: pre-commit auto-update
  • Loading branch information
jmgate authored Jul 3, 2024
2 parents ba79bfe + 90e3cad commit 7acf654
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ci:
repos:

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.10
rev: v0.5.0
hooks:
- id: ruff
- id: ruff-format
Expand All @@ -18,7 +18,7 @@ repos:
- id: gitleaks

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.10.0
rev: v1.10.1
hooks:
- id: mypy
additional_dependencies: ["dateparser", "types-dateparser"]
Expand Down
12 changes: 6 additions & 6 deletions example/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def test_basic() -> None:
"""Ensure ``basic.py`` produces the expected results."""
example = Path(__file__).parent / "basic.py"
result = subprocess.run(
[example, "--foo", "bar"], # noqa: S603
[example, "--foo", "bar"],
capture_output=True,
check=True,
text=True,
Expand All @@ -36,7 +36,7 @@ def test_default_values() -> None:
"""Ensure ``default_values.py`` produces the expected results."""
example = Path(__file__).parent / "default_values.py"
result = subprocess.run(
[example, "--foo", "bar"], # noqa: S603
[example, "--foo", "bar"],
capture_output=True,
check=True,
text=True,
Expand All @@ -54,7 +54,7 @@ def test_relative_references() -> None:
"""Ensure ``relative_references.py`` produces the expected results."""
example = Path(__file__).parent / "relative_references.py"
result = subprocess.run(
[example, "--src", "bar.txt"], # noqa: S603
[example, "--src", "bar.txt"],
capture_output=True,
check=True,
text=True,
Expand All @@ -73,7 +73,7 @@ def test_post_processing() -> None:
"""Ensure ``post_processing.py`` produces the expected results."""
example = Path(__file__).parent / "post_processing.py"
result = subprocess.run(
[example, "--before", "'30 minutes ago'"], # noqa: S603
[example, "--before", "'30 minutes ago'"],
capture_output=True,
check=True,
text=True,
Expand All @@ -96,7 +96,7 @@ def test_pretty_printing() -> None:
"""Ensure ``pretty_printing.py`` produces the expected results."""
example = Path(__file__).parent / "pretty_printing.py"
result = subprocess.run(
[ # noqa: S603
[
example,
"--foo",
"eggs",
Expand Down Expand Up @@ -132,7 +132,7 @@ def test_subparsers() -> None:
"""Ensure ``subparsers.py`` produces the expected results."""
example = Path(__file__).parent / "subparsers.py"
result = subprocess.run(
[example, "foo", "--one", "eggs"], # noqa: S603
[example, "foo", "--one", "eggs"],
capture_output=True,
check=True,
text=True,
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ ignore = [

[tool.ruff.lint.per-file-ignores]
"**/test_*.py" = ["S101"]
"example/*.py" = ["S603"]


[tool.ruff.lint.pydocstyle]
Expand Down

0 comments on commit 7acf654

Please sign in to comment.