Skip to content

Commit

Permalink
Merge pull request #51 from naobservatory/simon-add-black-check
Browse files Browse the repository at this point in the history
Added check.sh to the repository. Checks if all Python scripts are formatted with black.
  • Loading branch information
simonleandergrimm authored Nov 29, 2023
2 parents b9dfd93 + 96721a6 commit 3cb3272
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Presubmit
on: [push]
jobs:
Presubmit:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- uses: actions/checkout@v3
- run: python3 -m pip install -r requirements-dev.txt
- run: ./check.sh
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[tool.black]
line-length = 79

[tool.isort]
profile = "black"
line_length = 79
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
black

0 comments on commit 3cb3272

Please sign in to comment.