Skip to content

Commit

Permalink
Dont hardcode module name (#145)
Browse files Browse the repository at this point in the history
* Dont hardcode module name

* Improve configs

* Update changelog
  • Loading branch information
hukkin committed Dec 2, 2021
1 parent 374364a commit 77dce70
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 16 deletions.
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__

0 comments on commit 77dce70

Please sign in to comment.