mirror of
https://github.com/enpaul/glassy.git
synced 2024-11-21 22:16:56 +00:00
Restructure package for directory module structure
This commit is contained in:
parent
63a6421220
commit
92429781f5
0
glassy/__init__.py
Normal file
0
glassy/__init__.py
Normal file
0
glassy/__main__.py
Normal file
0
glassy/__main__.py
Normal file
0
glassy/py.typed
Normal file
0
glassy/py.typed
Normal file
@ -6,7 +6,7 @@ authors = ["Ethan Paul <24588726+enpaul@users.noreply.github.com>"]
|
|||||||
description = "ASCII network status map generator"
|
description = "ASCII network status map generator"
|
||||||
repository = "https://github.com/enpaul/glassy/"
|
repository = "https://github.com/enpaul/glassy/"
|
||||||
packages = [
|
packages = [
|
||||||
{include = "glassy.py"},
|
{include = "glassy/py.typed"},
|
||||||
{include = "tests/*.py", format = "sdist"}
|
{include = "tests/*.py", format = "sdist"}
|
||||||
]
|
]
|
||||||
keywords = ["terminal", "ascii", "network", "monitoring", "dashboard"]
|
keywords = ["terminal", "ascii", "network", "monitoring", "dashboard"]
|
||||||
|
@ -7,7 +7,7 @@ from pathlib import Path
|
|||||||
|
|
||||||
import toml
|
import toml
|
||||||
|
|
||||||
import glassy
|
from glassy import __about__
|
||||||
|
|
||||||
|
|
||||||
def test_metadata():
|
def test_metadata():
|
||||||
@ -16,14 +16,14 @@ def test_metadata():
|
|||||||
with (Path(__file__).resolve().parent / ".." / "pyproject.toml").open() as infile:
|
with (Path(__file__).resolve().parent / ".." / "pyproject.toml").open() as infile:
|
||||||
pyproject = toml.load(infile, _dict=dict)
|
pyproject = toml.load(infile, _dict=dict)
|
||||||
|
|
||||||
assert pyproject["tool"]["poetry"]["name"] == glassy.__title__
|
assert pyproject["tool"]["poetry"]["name"] == __about__.__title__
|
||||||
assert pyproject["tool"]["poetry"]["version"] == glassy.__version__
|
assert pyproject["tool"]["poetry"]["version"] == __about__.__version__
|
||||||
assert pyproject["tool"]["poetry"]["license"] == glassy.__license__
|
assert pyproject["tool"]["poetry"]["license"] == __about__.__license__
|
||||||
assert pyproject["tool"]["poetry"]["description"] == glassy.__summary__
|
assert pyproject["tool"]["poetry"]["description"] == __about__.__summary__
|
||||||
assert pyproject["tool"]["poetry"]["repository"] == glassy.__url__
|
assert pyproject["tool"]["poetry"]["repository"] == __about__.__url__
|
||||||
assert (
|
assert (
|
||||||
all(
|
all(
|
||||||
item in glassy.__authors__
|
item in __about__.__authors__
|
||||||
for item in pyproject["tool"]["poetry"]["authors"]
|
for item in pyproject["tool"]["poetry"]["authors"]
|
||||||
)
|
)
|
||||||
is True
|
is True
|
||||||
@ -31,7 +31,7 @@ def test_metadata():
|
|||||||
assert (
|
assert (
|
||||||
all(
|
all(
|
||||||
item in pyproject["tool"]["poetry"]["authors"]
|
item in pyproject["tool"]["poetry"]["authors"]
|
||||||
for item in glassy.__authors__
|
for item in __about__.__authors__
|
||||||
)
|
)
|
||||||
is True
|
is True
|
||||||
)
|
)
|
||||||
|
8
tox.ini
8
tox.ini
@ -13,7 +13,7 @@ locked_deps =
|
|||||||
toml
|
toml
|
||||||
commands =
|
commands =
|
||||||
pytest {toxinidir}/tests/ \
|
pytest {toxinidir}/tests/ \
|
||||||
--cov glassy \
|
--cov {toxinidir}/glassy \
|
||||||
--cov-config {toxinidir}/.coveragerc \
|
--cov-config {toxinidir}/.coveragerc \
|
||||||
--cov-report term-missing
|
--cov-report term-missing
|
||||||
|
|
||||||
@ -36,9 +36,9 @@ locked_deps =
|
|||||||
commands =
|
commands =
|
||||||
pre-commit run \
|
pre-commit run \
|
||||||
--all-files
|
--all-files
|
||||||
pylint {toxinidir}/glassy.py \
|
pylint {toxinidir}/glassy/ \
|
||||||
--rcfile {toxinidir}/.pylintrc
|
--rcfile {toxinidir}/.pylintrc
|
||||||
mypy {toxinidir}/glassy.py \
|
mypy {toxinidir}/glassy/ \
|
||||||
--ignore-missing-imports \
|
--ignore-missing-imports \
|
||||||
--no-strict-optional
|
--no-strict-optional
|
||||||
|
|
||||||
@ -70,7 +70,7 @@ locked_deps =
|
|||||||
safety
|
safety
|
||||||
poetry
|
poetry
|
||||||
commands =
|
commands =
|
||||||
bandit {toxinidir}/glassy.py \
|
bandit {toxinidir}/glassy/ \
|
||||||
--recursive \
|
--recursive \
|
||||||
--quiet
|
--quiet
|
||||||
bandit {toxinidir}/tests/ \
|
bandit {toxinidir}/tests/ \
|
||||||
|
Loading…
Reference in New Issue
Block a user