Skip to content

Commit

Permalink
Lint and format fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Eeems committed Jun 10, 2024
1 parent 1c6d16d commit 6be182c
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 3 deletions.
29 changes: 28 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ pip install --force-reinstall /tmp/launcherctl-${VERSION}-py3-none-any.whl
endef
export SCRIPT

ifeq ($(VENV_BIN_ACTIVATE),)
VENV_BIN_ACTIVATE := .venv/bin/activate
endif


dist/launcherctl-${VERSION}.tar.gz: $(shell find launcherctl -type f)
python -m build --sdist

Expand All @@ -35,4 +40,26 @@ test: install
| ssh [email protected] \
"bash -ec 'PATH=${PATH} /opt/bin/python -u'"

.PHONY: clean install test deploy
$(VENV_BIN_ACTIVATE):
@echo "Setting up development virtual env in .venv"
python -m venv .venv
. $(VENV_BIN_ACTIVATE); \
python -m pip install ruff

lint: $(VENV_BIN_ACTIVATE)
. $(VENV_BIN_ACTIVATE); \
python -m ruff check

lint-fix: $(VENV_BIN_ACTIVATE)
. $(VENV_BIN_ACTIVATE); \
python -m ruff check

format: $(VENV_BIN_ACTIVATE)
. $(VENV_BIN_ACTIVATE); \
python -m ruff format --diff

format-fix: $(VENV_BIN_ACTIVATE)
. $(VENV_BIN_ACTIVATE); \
python -m ruff format

.PHONY: clean install test deploy lint lint-fix format format-fix
9 changes: 9 additions & 0 deletions launcherctl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,12 @@

from ._util import LauncherCtlException
from ._util import launcherctl

__all__ = [
"App",
"apps",
"Launcher",
"launchers",
"LauncherCtlException",
"launcherctl",
]
1 change: 0 additions & 1 deletion launcherctl/_launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

from ._app import App
from ._util import launcherctl
from ._util import LauncherCtlException


class Launcher:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "launcherctl"
description = "Python wrapper around launcherctl."
readme = "README.md"
version = "1.0.0"
version = "1.0.1"
requires-python = ">= 3.11"
authors = [
{name = "Nathaniel van Diepen", email = "[email protected]"},
Expand Down

0 comments on commit 6be182c

Please sign in to comment.