Skip to content

Commit

Permalink
fix(ci): make publishing to pypi work (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
hairmare committed Jun 17, 2023
1 parent 38e817c commit e9ff464
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
name: Release

on:
push:
tags:
- 'v*.*.*'
pull_request:
push:
branches: [main]
release:
types: [created]

jobs:
python-poetry:
Expand Down
4 changes: 3 additions & 1 deletion pathfinder/operators/base.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
from abc import ABC, abstractmethod

from ..telnet import TelnetClient


class BaseOperator(ABC):
config = {}

def __init__(self, client, config={}):
def __init__(self, client: TelnetClient, config={}):
self.client = client.client
self.config = {**self.config, **config}

Expand Down
2 changes: 1 addition & 1 deletion pathfinder/operators/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class LoginException(Exception):
class Login(BaseOperator):
config = {"user": "Admin", "pass": "Admin"}

def execute(self):
def execute(self) -> bool:
self.client.write(
"LOGIN {} {}".format(
self.config.get("user"), self.config.get("pass")
Expand Down

0 comments on commit e9ff464

Please sign in to comment.