Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/workflows/code-checkers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,24 @@ env:
PREK_COLOR: "always"

jobs:
whitespace:
Comment thread
olivierh-pro marked this conversation as resolved.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: ./.github/actions/uv-setup
- run: prek -a trailing-whitespace end-of-file-fixer

executables:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: ./.github/actions/uv-setup
- run: prek -a check-shebang-scripts-are-executable check-executables-have-shebangs

mypy:
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/zizmor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ jobs:
- uses: ./.github/actions/uv-setup
- run: zizmor --color=always .
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10 changes: 10 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
repos:
- repo: builtin
hooks:
# Trim trailing whitespace
- id: trailing-whitespace
# Ensure newline at EOF
- id: end-of-file-fixer
# Ensures that (non-binary) files with a shebang are executable
- id: check-shebang-scripts-are-executable
# Ensures that (non-binary) executables have a shebang
- id: check-executables-have-shebangs
- repo: local
hooks:
- id: "ruff"
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ ignore = [
pydocstyle.convention = "pep257"

[tool.ruff.lint.extend-per-file-ignores]
# Pytest fixtures are often flagged as unused imports (F401) or
# Pytest fixtures are often flagged as unused imports (F401) or
# redefined variables (F811) because they are injected by name.
"tests/**/*.py" = [
"F401", # F401 unused-import
Expand Down
2 changes: 1 addition & 1 deletion scripts/install_xcpng.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
from __future__ import annotations

#!/usr/bin/env python3
import argparse
import atexit
import logging
Expand Down
2 changes: 1 addition & 1 deletion tests/install/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ The above command instructs `pytest` to:
* run the test sequences as defined by the specified `.lst` files
(which were specially written to chain an installation, an upgrade
to same version, and a restore, all using a single nightly image)
* specify
* specify
* to save detailed logs in a file, while during execution only
high-level progress messages are shown to avoid flooding

Expand Down
Empty file modified tests/storage/zfs/test_zfs_sr.py
100755 → 100644
Empty file.
Empty file modified tests/storage/zfsvol/test_zfsvol_sr.py
100755 → 100644
Empty file.
Loading