Skip to content

Commit

Permalink
Add Procfile for development
Browse files Browse the repository at this point in the history
  • Loading branch information
adisbladis committed Jul 18, 2023
1 parent 956506a commit f4f0343
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pytest: ptw --ext py,nix -- -W ignore::DeprecationWarning --workers auto
statix: reflex -r '\.nix$' -- statix check
deadnix: reflex -r '\.nix$' -- deadnix
ruff: ruff check --watch .
mypy: reflex -r '\.py$' -- mypy --strict .
4 changes: 3 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@
in
pkgs.mkShell {
packages = checkInputs ++ [
pkgs.pdm
pkgs.pdm # Python PEP-621 compliant package manager
pkgs.hivemind # Procfile runner
pkgs.reflex # Generic file watcher
];
};

Expand Down
2 changes: 1 addition & 1 deletion tests/test_nix.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def assert_deepequals(
err = ValueError("{}: {} != {}".format(path, a, b))

def make_path(entry: Any) -> tuple[str, ...]:
return (*_path, str(entry)) # type: ignore:misc
return (*_path, str(entry)) # type: ignore[misc]

if isinstance(a, list):
if not isinstance(b, list) or len(a) != len(b):
Expand Down

0 comments on commit f4f0343

Please sign in to comment.