Skip to content

Commit 351a925

Browse files
committed
Put black info and version in pyproject
1 parent 5481837 commit 351a925

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

pyproject.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ qa = [
7474
"diffenator2>=0.2.0",
7575
"pycairo", # needed for fontTools varLib.interpolatable --pdf
7676
]
77+
test = [
78+
"black == 24.4.2",
79+
"pytest",
80+
]
7781

7882
[project.scripts]
7983
gftools = "gftools.scripts:main"
@@ -165,3 +169,14 @@ where = ["Lib"]
165169

166170
[tool.setuptools_scm]
167171
write_to = "Lib/gftools/_version.py"
172+
173+
[tool.black]
174+
target-version = ["py310"]
175+
# 'extend-exclude' excludes files or directories in addition to the defaults
176+
extend-exclude = '''
177+
# A regex preceded with ^/ will apply only to files and directories
178+
# in the root of the project. Separate regexes with | .
179+
(
180+
.*_pb2.py # exclude autogenerated Protocol Buffer files anywhere in the project
181+
)
182+
'''

0 commit comments

Comments
 (0)