-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dependabot/pip/flake8-simplify-0.17.1' of https://githu…
…b.com/klaasnicolaas/python-pem into dependabot/pip/flake8-simplify-0.17.1
- Loading branch information
Showing
14 changed files
with
123 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
"""Asynchronous Python client for a NED2GRID device.""" | ||
|
||
from .exceptions import GridNetConnectionError, GridNetError | ||
from .gridnet import GridNet | ||
from .models import Device, SmartBridge | ||
|
||
__all__ = [ | ||
"Device", | ||
"GridNet", | ||
"GridNetError", | ||
"GridNetConnectionError", | ||
"SmartBridge", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
"""Exceptions for GridNet.""" | ||
|
||
|
||
class GridNetError(Exception): | ||
"""Generic GridNet exception.""" | ||
|
||
|
||
class GridNetConnectionError(GridNetError): | ||
"""GridNet connection exception.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
[tool.poetry] | ||
name = "net2grid" | ||
name = "gridnet" | ||
version = "0.0.0" | ||
description = "Asynchronous Python client for the NET2GRID devices" | ||
description = "Asynchronous Python client for a NET2GRID devices" | ||
authors = ["Klaas Schoute <[email protected]>"] | ||
maintainers = ["Klaas Schoute <[email protected]>"] | ||
license = "MIT" | ||
readme = "README.md" | ||
homepage = "https://github.com/klaasnicolaas/python-net2grid" | ||
repository = "https://github.com/klaasnicolaas/python-net2grid" | ||
documentation = "https://github.com/klaasnicolaas/python-net2grid" | ||
homepage = "https://github.com/klaasnicolaas/python-gridnet" | ||
repository = "https://github.com/klaasnicolaas/python-gridnet" | ||
documentation = "https://github.com/klaasnicolaas/python-gridnet" | ||
keywords = ["net2grid", "energy", "device", "power", "async", "client"] | ||
classifiers = [ | ||
"Framework :: AsyncIO", | ||
|
@@ -21,7 +21,7 @@ classifiers = [ | |
"Topic :: Software Development :: Libraries :: Python Modules", | ||
] | ||
packages = [ | ||
{ include = "net2grid" }, | ||
{ include = "gridnet" }, | ||
] | ||
|
||
[tool.poetry.dependencies] | ||
|
@@ -59,22 +59,22 @@ codespell = "^2.1.0" | |
bandit = "^1.7.2" | ||
|
||
[tool.poetry.urls] | ||
"Bug Tracker" = "https://github.com/klaasnicolaas/python-net2grid/issues" | ||
Changelog = "https://github.com/klaasnicolaas/python-net2grid/releases" | ||
"Bug Tracker" = "https://github.com/klaasnicolaas/python-gridnet/issues" | ||
Changelog = "https://github.com/klaasnicolaas/python-gridnet/releases" | ||
|
||
[tool.black] | ||
target-version = ['py39'] | ||
|
||
[tool.coverage.paths] | ||
source = ["net2grid"] | ||
source = ["gridnet"] | ||
|
||
[tool.coverage.report] | ||
show_missing = true | ||
exclude_lines = ["pragma: no cover", "if TYPE_CHECKING:"] | ||
|
||
[tool.coverage.run] | ||
branch = true | ||
source = ["net2grid"] | ||
source = ["gridnet"] | ||
|
||
[tool.isort] | ||
profile = "black" | ||
|
@@ -116,7 +116,7 @@ addopts = "--cov" | |
|
||
[tool.vulture] | ||
min_confidence = 80 | ||
paths = ["net2grid"] | ||
paths = ["gridnet"] | ||
verbose = true | ||
|
||
[build-system] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.