Skip to content

Commit

Permalink
chore: migrate coverage cfg to pyproject.toml (huggingface#32650)
Browse files Browse the repository at this point in the history
chore: move coverage cfg to pyproject
  • Loading branch information
SauravMaheshkar authored and BernardZach committed Dec 5, 2024
1 parent 989406f commit a24d07f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
12 changes: 0 additions & 12 deletions .coveragerc

This file was deleted.

15 changes: 15 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
[tool.coverage.run]
source = ["transformers"]
omit = [
"*/convert_*",
"*/__main__.py"
]

[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"raise",
"except",
"register_parameter"
]

[tool.ruff]
line-length = 119

Expand Down

0 comments on commit a24d07f

Please sign in to comment.