Skip to content

Commit

Permalink
Add action to run black on main (#1)
Browse files Browse the repository at this point in the history
Co-authored-by: michelwi <[email protected]>
Co-authored-by: Albert Zeyer <[email protected]>
  • Loading branch information
3 people authored Apr 27, 2023
1 parent df72b5f commit e96a497
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 8 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/black.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: black
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
check-black-formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.7
cache: 'pip'
- run: pip install black==22.3.0
- run: black --diff --check .
15 changes: 7 additions & 8 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,21 @@
# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information

project = 'i6 Models'
copyright = '2023, i6 & friends'
author = 'i6 & friends'
project = "i6 Models"
copyright = "2023, i6 & friends"
author = "i6 & friends"

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

extensions = []

templates_path = ['_templates']
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']

templates_path = ["_templates"]
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]


# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output

html_theme = 'alabaster'
html_static_path = ['_static']
html_theme = "alabaster"
html_static_path = ["_static"]
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[tool.black]
line-length = 120
target-version = ["py37"]
exclude = 'files'
Empty file added requirements.txt
Empty file.

0 comments on commit e96a497

Please sign in to comment.