Skip to content

Commit

Permalink
Fix mypy plugin to work from other projects
Browse files Browse the repository at this point in the history
  • Loading branch information
jacebrowning committed Jun 10, 2019
1 parent b28d906 commit be60ec4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ omit =
.venv/*
*/tests/*
*/__main__.py
datafiles/plugins.py

[report]

Expand Down
2 changes: 1 addition & 1 deletion datafiles/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class DatafilesPlugin(Plugin):
def get_class_decorator_hook(
self, fullname: str
) -> Optional[Callable[[ClassDefContext], None]]:
if fullname == 'datafiles.decorators.datafile':
if fullname.endswith('.datafile'):
return datafile_class_maker_callback
return None

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tool.poetry]

name = "datafiles"
version = "0.4b2"
version = "0.4b3"
description = "File-based ORM for dataclasses."

license = "MIT"
Expand Down

0 comments on commit be60ec4

Please sign in to comment.