Skip to content

Commit

Permalink
Merge pull request #138 from simonjharris/cast-top-path-to-posixpath
Browse files Browse the repository at this point in the history
Cast `top_path` to `Path` in `walk_modules` function.
  • Loading branch information
olirice authored Oct 21, 2024
2 parents 2e9ddac + 90751a2 commit e0a3bf8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']
postgres-version: ['11', '12', '13', '14', '15']
python-version: ['3.8', '3.11']
postgres-version: ['13', '14', '15']
sqlalchemy-version: ['1.4', '2.0']

services:
Expand Down
2 changes: 1 addition & 1 deletion src/alembic_utils/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.8.4"
__version__ = "0.8.5"
4 changes: 2 additions & 2 deletions src/alembic_utils/experimental/_collect_instances.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ def walk_modules(module: ModuleType) -> Generator[ModuleType, None, None]:
# ...
"""
top_module = module
top_path = top_module.__path__[0] # type: ignore
top_path = Path(top_module.__path__[0])

directories = (
walk_files(str(top_path))
walk_files(str(top_path.resolve()))
.filter(lambda x: x.endswith(".py"))
.map(Path)
.group_by(lambda x: x.parent)
Expand Down

0 comments on commit e0a3bf8

Please sign in to comment.