Skip to content

Commit 7a28206

Browse files
Fix Namespace Package (#13)
* Fix Namespace Package * Fix Namespace packages with mypy * Fix Namespace packages with mypy * Fix Namespace packages with mypy
1 parent 9319c9e commit 7a28206

File tree

7 files changed

+221
-211
lines changed

7 files changed

+221
-211
lines changed

.github/workflows/code_quality_checks_3_10.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ jobs:
2929
- name: Check format with black
3030
run: poetry run black --check pycommons/ tests/
3131
- name: Check type hinting with mypy
32-
run: poetry run mypy --strict --config-file=mypy.ini pycommons/
32+
run: poetry run mypy --namespace-packages -p pycommons.lang --strict --config-file=mypy.ini
3333

.github/workflows/code_quality_checks_3_8.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@ jobs:
3131
- name: Check format with black
3232
run: poetry run black --check pycommons/ tests/
3333
- name: Check type hinting with mypy
34-
run: poetry run mypy --strict --config-file=mypy.ini pycommons/
34+
run: poetry run mypy --namespace-packages -p pycommons.lang --strict --config-file=mypy.ini
3535

.github/workflows/code_quality_checks_3_9.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ jobs:
2929
- name: Check format with black
3030
run: poetry run black --check pycommons/ tests/
3131
- name: Check type hinting with mypy
32-
run: poetry run mypy --strict --config-file=mypy.ini pycommons/
32+
run: poetry run mypy --namespace-packages -p pycommons.lang --strict --config-file=mypy.ini
3333

poetry.lock

Lines changed: 216 additions & 206 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pycommons/__init__.py

Whitespace-only changes.

pycommons/lang/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
__author__ = "Shashank Sharma"
77
__email__ = "shashankrnr32@gmail.com"
88

9-
# Used to automatically set version number from github actions
9+
# Used to automatically set version number from GitHub actions
1010
# as well as not break when being tested locally
1111
try:
1212
__version__ = version(__package__)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,5 @@ implicit_reexport = true
7070
test = "pytest"
7171
lint = "pylint pycommons/ tests/"
7272
black = "black ."
73-
mypy = "mypy --strict --config-file=mypy.ini pycommons/"
73+
mypy = "mypy --namespace-packages -p pycommons.lang --strict --config-file=mypy.ini"
7474
docs = "mkdocs serve"

0 commit comments

Comments
 (0)