summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/darker-lint.yml19
1 files changed, 19 insertions, 0 deletions
diff --git a/.github/workflows/darker-lint.yml b/.github/workflows/darker-lint.yml
new file mode 100644
index 0000000..ab574a2
--- /dev/null
+++ b/.github/workflows/darker-lint.yml
@@ -0,0 +1,19 @@
+---
+name: Darker Lint
+
+on: [push, pull_request]
+
+jobs:
+ darker-lint:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ with:
+ fetch-depth: 0
+ - uses: actions/setup-python@v5
+ - uses: akaihola/darker@v2.1.1
+ with:
+ options: "--check --diff --isort --color"
+ src: "."
+ version: "~=2.1.1"
+ lint: "flake8,pylint==2.13.1" \ No newline at end of file