Skip to content
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

Dont hardcode module name #145

Merged
merged 3 commits into from Dec 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
@@ -1,6 +1,6 @@
# Changelog

## 2.0.0 (unreleased)
## 2.0.0

- Removed
- Python 3.6 support
Expand Down
18 changes: 4 additions & 14 deletions pyproject.toml
Expand Up @@ -34,16 +34,6 @@ keywords = ["toml"]
"Changelog" = "https://github.com/hukkin/tomli/blob/master/CHANGELOG.md"


[tool.flit.sdist]
exclude = [
"tests/",
"benchmark/",
"fuzzer/",
".*",
"CHANGELOG.md",
]


[tool.isort]
# Force imports to be sorted by module, independent of import type
force_sort_within_sections = true
Expand Down Expand Up @@ -139,15 +129,15 @@ commands =

[tool.coverage.run]
branch = true
omit = ["tests/*", "*/site-packages/*"]
source = ['tomli']

[tool.coverage.report]
# Regexes for lines to exclude from consideration
exclude_lines = [
# Have to re-enable the standard pragma
"pragma: no cover",
# Re-enable the standard pragma (with extra strictness)
'# pragma: no cover\b',
# Code for static type checkers
"if TYPE_CHECKING:",
'if TYPE_CHECKING:',
# Scripts
'if __name__ == .__main__.:',
]
Expand Down
2 changes: 1 addition & 1 deletion tomli/__init__.py
Expand Up @@ -6,4 +6,4 @@
from tomli._parser import TOMLDecodeError, load, loads

# Pretend this exception was created here.
TOMLDecodeError.__module__ = "tomli"
TOMLDecodeError.__module__ = __name__