mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-08-30 19:59:46 +02:00
Switch to using ruff for formatting as well as linting
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
name: Black python formatter
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: psf/black@stable
|
||||
with:
|
||||
options: "--check --diff --verbose"
|
||||
src: "./volatility3"
|
||||
# FIXME: Remove when Volatility3 minimum Python version is >3.8
|
||||
version: "24.8.0"
|
||||
@@ -4,7 +4,7 @@ name: Ruff
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
lint-and-format:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
@@ -13,3 +13,5 @@ jobs:
|
||||
with:
|
||||
args: check
|
||||
src: "."
|
||||
|
||||
- run: "ruff format --check --diff"
|
||||
|
||||
Reference in New Issue
Block a user