Skip to content

Commit

Permalink
Merge pull request #91 from manics/ruff
Browse files Browse the repository at this point in the history
Replace black and flake8 with ruff
  • Loading branch information
manics authored Mar 3, 2024
2 parents 127a569 + 3ffb1df commit 5cb2ab1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
18 changes: 7 additions & 11 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
repos:
- repo: https://github.com/psf/black
rev: 22.12.0
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.3.0
hooks:
- id: black
args: [--target-version=py36]
- repo: https://github.com/pycqa/flake8
rev: 6.0.0
hooks:
- id: flake8
# default black line length is 88
args: [--max-line-length=88]
- id: ruff
args: [--fix]
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.7.1
rev: v3.0.3
hooks:
- id: prettier
1 change: 0 additions & 1 deletion repo2podman/podman.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,6 @@ def logs(self, *, stream=False, timestamps=False, since=None):
log_command.extend(["--since", since])

if stream:

# Podman logs --follow may hang if container is stopped
def iter_logs(cid):
try:
Expand Down

0 comments on commit 5cb2ab1

Please sign in to comment.