Skip to content

Update pyproject.toml because coverage 5.0 has been released #28

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jlubken opened this issue Jan 6, 2020 · 3 comments
Closed

Update pyproject.toml because coverage 5.0 has been released #28

jlubken opened this issue Jan 6, 2020 · 3 comments
Assignees

Comments

@jlubken
Copy link
Member

jlubken commented Jan 6, 2020

Move coverage configuration from setup.cfg to pyproject.toml.

See feature here: nedbat/coveragepy#664

Figure out how to represent exclude_lines in the toml file, because toml has a structured syntax unlike setup.cfg.

@jlubken jlubken self-assigned this Jan 6, 2020
@djesic
Copy link

djesic commented Feb 10, 2020

Came across this issue while looking for a solution myself.
This worked for me:

[tool.coverage.report]
exclude_lines = [
  "raise NotImplementedError",
  "def __repr__",
  "if __name__ == .__main__.:",
]

@jlubken
Copy link
Member Author

jlubken commented Feb 12, 2020

Thanks! Updated in branch add/api.

@jlubken jlubken mentioned this issue Feb 12, 2020
@jlubken
Copy link
Member Author

jlubken commented Dec 10, 2020

Completed.

@jlubken jlubken closed this as completed Dec 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants