Skip to content

Commit

Permalink
fix: pyproject.toml to add ignore settings
Browse files Browse the repository at this point in the history
  • Loading branch information
airkei committed Jan 9, 2025
1 parent c0cd32c commit ca4f3d9
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,15 @@ sources = [
"src",
]

[tool.black]
line-length = 88
target-version = [
'py311',
]
extend-exclude = '''(
^.*(_pb2.pyi?|_pb2_grpc.pyi?)$
)'''

[tool.ruff]
target-version = "py311"
# NOTE: not include tests and tools for now
Expand All @@ -84,6 +93,10 @@ include = [
"src/**/*.py",
"tests/**/*.py",
]
extend-exclude = [
"*_pb2.py*",
"*_pb2_grpc.py*",
]

lint.select = [
"A", # flake8-builtins
Expand Down Expand Up @@ -129,6 +142,10 @@ source = [
relative_files = true

[tool.coverage.report]
omit = [
"**/*_pb2.py*",
"**/*_pb2_grpc.py*",
]
exclude_also = [
"def __repr__",
"if __name__ == .__main__.:",
Expand Down

0 comments on commit ca4f3d9

Please sign in to comment.