Skip to content

Commit

Permalink
Package namespace and dev notes (#19)
Browse files Browse the repository at this point in the history
* organise import names and add accompanying tests

* ignore VSCode-related files

* dependencies version bump

* add note on development environment
  • Loading branch information
vreuter authored Aug 1, 2023
1 parent 87db612 commit f925ca6
Show file tree
Hide file tree
Showing 6 changed files with 127 additions and 73 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ gertils.egg-info/

# IDE-related
.idea/
.vscode/

# Other
.nox/
Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,12 @@ These tools are organised by use case at the module level; that is, tools that a
- [gpu.py](./gertils/gpu.py) -- tools for running computations on GPUs, especially with TensorFlow
- [group_paths.py](./gertils/group_paths.py) -- tools for working with Gerlich group paths on filesystems
- [pathtools.py](./gertils/pathtools.py) -- tools for working with filesystem paths generally

## Development
This project is configured to use Nix for a shell/environment with dependencies, and Nox to make common development commands/workflows easier. Start always with `nix-shell`. If it takes a long time to build, try...
1. Stop the shell build: `Ctrl-c`
1. Remove the Poetry lockfile: `rm poetry.lock`
1. Clear Poetry's PyPI cache (assuming you have an active Nix shell): `poetry cache clear PyPI --all`
1. Exit Nix shell: `Ctrl-d`
1. Rebuild Nix shell: `shell.nix`

7 changes: 7 additions & 0 deletions gertils/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
"""Package-level names"""

# mypy: ignore-errors

from .collection_extras import *
from .exceptions import *
from .pathtools import *
1 change: 0 additions & 1 deletion gertils/pathtools.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from dataclasses import dataclass
from pathlib import Path
from typing import *
from typing import Any

__all__ = ["ExtantFile", "ExtantFolder", "NonExtantPath", "PathWrapperException"]
__author__ = "Vince Reuter"
Expand Down
Loading

0 comments on commit f925ca6

Please sign in to comment.