Skip to content

Commit

Permalink
Merge branch 'lint' of https://github.com/ssolson/MHKiT-Python into lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ssolson committed Jan 2, 2024
2 parents 667a416 + ec6331c commit b18d585
Show file tree
Hide file tree
Showing 138 changed files with 19,526 additions and 16,361 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/black.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Black Code Formatter

on: [push, pull_request]

jobs:
black:
runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.11"

- name: Install Black
run: |
python -m pip install --upgrade pip
pip install black

- name: Check Black Formatting
run: black --check .
8 changes: 8 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# To run Black formating every time you commit:
# pip install pre-commit
# pre-commit install
repos:
- repo: https://github.com/psf/black
rev: stable
hooks:
- id: black
Loading

0 comments on commit b18d585

Please sign in to comment.