Skip to content

Commit

Permalink
Merge pull request #648 from atomistic-machine-learning/sh/black
Browse files Browse the repository at this point in the history
added black workflow
  • Loading branch information
jnsLs authored Jul 22, 2024
2 parents 9b61c9e + 9550669 commit 643c9a1
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/black.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Black Code Formatter

on: [push, pull_request]

jobs:
black:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x' # Specify the Python version you need

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install black==24.4.2
- name: Run black
run: black --check .

0 comments on commit 643c9a1

Please sign in to comment.