Skip to content

Commit

Permalink
Lint and use custom invoke fork
Browse files Browse the repository at this point in the history
  • Loading branch information
neoxelox committed May 19, 2023
1 parent c0b96da commit 21f2d09
Show file tree
Hide file tree
Showing 6 changed files with 238 additions and 244 deletions.
464 changes: 231 additions & 233 deletions poetry.lock

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "superinvoke"
version = "0.1.0"
version = "1.0.0"
description = "An Invoke wrapper with extra handy features."
license = "MIT"
authors = ["Alex <[email protected]>"]
Expand All @@ -14,8 +14,8 @@ keywords = ["plugin", "wrapper", "invoke", "pyinvoke", "superinvoke"]
[tool.poetry.dependencies]
python = ">=3.7,<4.0"
rich = "12.5.1"
invoke = { git = "https://github.com/neoxelox/invoke.git" }
download = "^0.3.5"
neoxelox-invoke = "2.0.0"
download = "0.3.5"

[tool.poetry.dev-dependencies]
autoflake = { git = "https://github.com/neoxelox/autoflake.git" }
Expand Down
2 changes: 1 addition & 1 deletion superinvoke/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version_info__ = (0, 1, 0)
__version_info__ = (1, 0, 0)
__version__ = ".".join(map(str, __version_info__))


Expand Down
2 changes: 1 addition & 1 deletion superinvoke/extensions/collection.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
from invoke import Collection
from invoke import Collection # noqa: F401
2 changes: 1 addition & 1 deletion superinvoke/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def init(tools: Optional[objects.Tools] = None, envs: Optional[objects.Envs] = N

# Root collection
root = Collection()
root.configure({
root.configure({ # noqa: BLK100
"run": {
"shell": os.environ.get("COMSPEC", os.environ.get("SHELL")),
"encoding": "utf-8"
Expand Down
6 changes: 1 addition & 5 deletions superinvoke/objects/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,7 @@ def __str__(self) -> str:
return self.name

def __eq__(self, other: object) -> bool:
return (
isinstance(other, Env)
and self.name == other.name
and self.tags == other.tags
)
return isinstance(other, Env) and self.name == other.name and self.tags == other.tags

def __hash__(self) -> int:
return hash((self.name, tuple(self.tags)))
Expand Down

0 comments on commit 21f2d09

Please sign in to comment.