Skip to content

Commit 03705d2

Browse files
authored
Change: move black options to pyproject.toml (#386)
1 parent fe70105 commit 03705d2

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.github/workflows/testing.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,4 @@ jobs:
7979
run: |
8080
python -m pip install --upgrade pip
8181
pip install black
82-
black -l 120 --exclude "(ply|nml/actions/action2var_variables.py|nml/actions/action3_callbacks.py)" --check --diff nml
82+
black --check --diff nml

Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
MAKE?=make
22
PYTHON?=/usr/bin/env python3
3-
BLACK_OPTIONS=-l 120 --exclude 'action2var_variables.py|action3_callbacks.py|ply'
43

54
.PHONY: regression test install extensions clean flake black
65

@@ -21,8 +20,8 @@ clean:
2120
rm -f *.so
2221

2322
flake:
24-
$(PYTHON) -m black --check $(BLACK_OPTIONS) nml
23+
$(PYTHON) -m black --check nml
2524
$(PYTHON) -m flake8 nml
2625

2726
black:
28-
$(PYTHON) -m black $(BLACK_OPTIONS) nml
27+
$(PYTHON) -m black nml

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
[build-system]
22
requires = ["setuptools", "ply"]
3+
4+
[tool.black]
5+
line-length = 120
6+
exclude = 'action2var_variables.py|action3_callbacks.py|ply|setup.py'

0 commit comments

Comments
 (0)