Skip to content

Commit e96a497

Browse files
curufinwemichelwialbertz
authored
Add action to run black on main (#1)
Co-authored-by: michelwi <[email protected]> Co-authored-by: Albert Zeyer <[email protected]>
1 parent df72b5f commit e96a497

File tree

4 files changed

+30
-8
lines changed

4 files changed

+30
-8
lines changed

.github/workflows/black.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: black
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
branches:
8+
- main
9+
jobs:
10+
check-black-formatting:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: actions/setup-python@v2
15+
with:
16+
python-version: 3.7
17+
cache: 'pip'
18+
- run: pip install black==22.3.0
19+
- run: black --diff --check .

docs/conf.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,21 @@
66
# -- Project information -----------------------------------------------------
77
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
88

9-
project = 'i6 Models'
10-
copyright = '2023, i6 & friends'
11-
author = 'i6 & friends'
9+
project = "i6 Models"
10+
copyright = "2023, i6 & friends"
11+
author = "i6 & friends"
1212

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

1616
extensions = []
1717

18-
templates_path = ['_templates']
19-
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
20-
18+
templates_path = ["_templates"]
19+
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
2120

2221

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

26-
html_theme = 'alabaster'
27-
html_static_path = ['_static']
25+
html_theme = "alabaster"
26+
html_static_path = ["_static"]

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[tool.black]
2+
line-length = 120
3+
target-version = ["py37"]
4+
exclude = 'files'

requirements.txt

Whitespace-only changes.

0 commit comments

Comments
 (0)