From 086fb1682542460ff97dc6229fe0d4443fb2af6a Mon Sep 17 00:00:00 2001 From: Bodong Yang Date: Thu, 9 May 2024 15:38:42 +0000 Subject: [PATCH] pyproject: fix black extend-exclude --- pyproject.toml | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 7abd95f5f..b8bc8ceaa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,14 +1,11 @@ [build-system] build-backend = "setuptools.build_meta" -requires = [ - "setuptools>=61", - "setuptools_scm[toml]>=6.4", -] +requires = ["setuptools>=61", "setuptools_scm[toml]>=6.4"] [project] name = "otaclient" readme = "README.md" -license = {text = "LICENSE.md"} +license = { text = "LICENSE.md" } requires-python = ">=3.8" classifiers = [ "License :: OSI Approved :: Apache Software License", @@ -20,19 +17,15 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", ] -dynamic = [ - "dependencies", - "optional-dependencies", - "version", -] +dynamic = ["dependencies", "optional-dependencies", "version"] [project.urls] Source = "https://github.com/tier4/ota-client" [tool.setuptools.dynamic] -dependencies = {file = ["otaclient/requirements.txt"]} +dependencies = { file = ["otaclient/requirements.txt"] } [tool.setuptools.dynamic.optional-dependencies] -test = {file = ["tests/requirements.txt"]} +test = { file = ["tests/requirements.txt"] } [tool.setuptools.packages.find] include = ["otaclient*"] @@ -47,7 +40,7 @@ local_scheme = "no-local-version" line-length = 88 target-version = ['py38'] extend-exclude = '''( - (_pb2.pyi?|_pb2_grpc.pyi?)$ + ^.*(_pb2.pyi?|_pb2_grpc.pyi?)$ )''' [tool.docformatter] @@ -69,7 +62,7 @@ relative_files = true source = ["otaclient"] [tool.coverage.report] -omit = ["**/*_pb2.py*","**/*_pb2_grpc.py*"] +omit = ["**/*_pb2.py*", "**/*_pb2_grpc.py*"] exclude_also = [ "def __repr__", "if __name__ == .__main__.:", @@ -82,5 +75,5 @@ skip_covered = true [tool.pyright] exclude = ["**/__pycache__"] -ignore = ["**/*_pb2.py*","**/*_pb2_grpc.py*"] +ignore = ["**/*_pb2.py*", "**/*_pb2_grpc.py*"] pythonVersion = "3.8"