Skip to content

Commit

Permalink
pre-commit: using ruff format
Browse files Browse the repository at this point in the history
  • Loading branch information
miili committed Nov 5, 2023
1 parent 20fb86b commit 38c4163
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
14 changes: 5 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,11 @@ repos:
- id: mixed-line-ending
- repo: https://github.com/charliermarsh/ruff-pre-commit
# Ruff version.
rev: "v0.1.1"
rev: v0.1.4
hooks:
- id: ruff
- repo: https://github.com/psf/black
rev: 23.10.0
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.1.4
hooks:
- id: black
# It is recommended to specify the latest version of Python
# supported by your project here, or alternatively use
# pre-commit's default_language_version, see
# https://pre-commit.com/#top_level-default_language_version
# language_version: python3.10
- id: ruff-format
2 changes: 1 addition & 1 deletion lassie/images/phase_net.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ async def process_traces(self, traces: list[Trace]) -> list[PhaseNetImage]:
self._phase_net.annotate,
stream,
overlap=self.window_overlap_samples,
batch_size=self.batch_size
batch_size=self.batch_size,
# parallelism=self.seisbench_subprocesses,
)

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ extend-select = [
'I',
'RUF',
]
target-version = 'py310'
target-version = 'py311'
ignore = ["RUF012", "RUF009"]

[tool.pytest.ini_options]
Expand Down

0 comments on commit 38c4163

Please sign in to comment.