Skip to content

Commit

Permalink
pyproject: fix black extend-exclude
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodong-Yang committed May 9, 2024
1 parent ede1314 commit 086fb16
Showing 1 changed file with 8 additions and 15 deletions.
23 changes: 8 additions & 15 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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*"]
Expand All @@ -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]
Expand All @@ -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__.:",
Expand All @@ -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"

0 comments on commit 086fb16

Please sign in to comment.