Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Landlock updates #65

Merged
merged 13 commits into from
Oct 13, 2024
Merged
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
4 changes: 1 addition & 3 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
os: [ubuntu-latest, macOS-latest]
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -104,8 +104,6 @@ jobs:
cache-dependency-path: |
./pdm.lock
./Cargo.lock
- name: Work around requests bug https://github.com/psf/requests/issues/6437
run: pip install --force requests==2.29.0
- uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Install dependencies
run: |
Expand Down
33 changes: 24 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,33 @@ repos:
- id: check-yaml
- id: check-added-large-files

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.0.264"
- repo: local
hooks:
- id: ruff
name: Check python (ruff)
args: [--show-source, --fix, --exit-non-zero-on-fix]

- repo: https://github.com/psf/black
rev: 23.1.0
hooks:
- id: black
name: Check black
language: system
types_or: [python, pyi]
require_serial: true
entry: pdm run ruff check --force-exclude
args:
[--output-format=full, --fix, --show-fixes, --exit-non-zero-on-fix]
- id: ruff-format
name: Format python (ruff)
language: system
types_or: [python, pyi]
require_serial: true
entry: pdm run ruff format --force-exclude
- id: nixfmt
name: Format Nix (nixfmt)
types: [nix]
language: system
require_serial: true
entry: bash -c 'command -v nix && nix "$@" || echo "skipping nixfmt"' nix
args:
- --experimental-features
- nix-command flakes
- --accept-flake-config
- fmt

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.21.0
Expand Down
Loading
Loading