Skip to content
Snippets Groups Projects
Unverified Commit 1ad8e497 authored by Thorsten Hater's avatar Thorsten Hater Committed by GitHub
Browse files

Add black config to pyproject.toml. (#1971)

parent 04762cf2
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,7 @@ jobs:
- name: Python Formatting
uses: psf/black@stable
with:
options: --check --extend-exclude '/(ext|doc/scripts/.*_theme|doc/scripts/inputs.py)'
options: --check
src: scripts/build-catalogue.in .
- name: Python analysis
run: |
......
......@@ -15,7 +15,7 @@ run the following commands to apply it:
# Install the formatter if not present
pip install black
# Automatically apply style. If unsure what this does read on.
black --extend-exclude '/(ext|doc/scripts/.*_theme)' . scripts/build-catalogue.in
black . scripts/build-catalogue.in
The formatter can also be run with ``--check`` to list offending files and
``--diff`` to preview changes. Most editors can `integrate with black
......
......@@ -26,6 +26,12 @@ dependencies = [
"numpy"
]
[tool.black]
line-length = 88
target-version = ['py37', 'py38', 'py39', 'py310']
include = '\.pyi?$'
extend-exclude='^/(ext|doc/scripts/.*_theme|doc/scripts/inputs.py)'
[tool.setuptools]
py-modules = ["arbor"]
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment