summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2023-07-13 07:25:43 (GMT)
committerThomas Haller <thaller@redhat.com>2023-07-25 11:32:11 (GMT)
commit298ee58e7a843d42bfb9edd27de40c93a366f9f7 (patch)
tree3555ece0209e16f9b8bf766ce0a5a9170734283a
parenta0e4b7f91e0cfa11b24026564bae48f5c19ba8b6 (diff)
downloadlibnl-298ee58e7a843d42bfb9edd27de40c93a366f9f7.zip
libnl-298ee58e7a843d42bfb9edd27de40c93a366f9f7.tar.gz
libnl-298ee58e7a843d42bfb9edd27de40c93a366f9f7.tar.bz2
python add "pyproject.toml" for configuring black
This allows to run `black .` and only reformat the files, that are actually black formatted.
-rw-r--r--pyproject.toml8
1 files changed, 8 insertions, 0 deletions
diff --git a/pyproject.toml b/pyproject.toml
new file mode 100644
index 0000000..bce61cb
--- /dev/null
+++ b/pyproject.toml
@@ -0,0 +1,8 @@
+[tool.black]
+target-versions = ["py37", "py38", "py39", "py310"]
+include = '''
+ (
+ \.py$
+ | \.py\.in$
+ )
+ '''