Skip to content

Commit

Permalink
Add darker to github workflow; also update version of darker used in …
Browse files Browse the repository at this point in the history
…pre-commit hook.
  • Loading branch information
derekpierre committed Sep 18, 2023
1 parent 721183c commit fc02656
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/darker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: 🧹 Darker

on: [push, pull_request]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: '3.8'
- uses: akaihola/darker@1.7.2
with:
version: "1.7.2" # defaults to same version, but can be modified
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
python-version: ["3.8", "3.10"]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ repos:


- repo: https://github.com/akaihola/darker
rev: 1.6.1
rev: 1.7.2
hooks:
- id: darker
args: [--isort]
additional_dependencies:
- isort~=5.9
- isort~=5.9

0 comments on commit fc02656

Please sign in to comment.