Skip to content

Commit 6171705

Browse files
committed
CCM-12896: Demo mesh-poll changes
1 parent 69502d5 commit 6171705

File tree

16 files changed

+140
-201
lines changed

16 files changed

+140
-201
lines changed

lambdas/mesh-poll/.eslintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

lambdas/mesh-poll/.gitignore

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
coverage
2-
node_modules
3-
dist
4-
.reports
1+
__pycache__
2+
.venv

lambdas/mesh-poll/Makefile

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
PACKAGE=mesh_poll
2+
VERSION=0.1.0
3+
4+
install:
5+
pip install -r requirements.txt
6+
7+
install-dev: install
8+
pip install -r requirements-dev.txt
9+
10+
test:
11+
cd ../.. && PYTHONPATH=lambdas/mesh-poll:$$PYTHONPATH pytest lambdas/mesh-poll/src/__tests__/ -v
12+
13+
coverage:
14+
cd ../.. && PYTHONPATH=lambdas/mesh-poll:$$PYTHONPATH pytest lambdas/mesh-poll/src/__tests__/ \
15+
--cov=lambdas/mesh-poll/src \
16+
--cov-config=lambdas/mesh-poll/pytest.ini \
17+
--cov-report=html:lambdas/mesh-poll/htmlcov \
18+
--cov-report=term-missing \
19+
--cov-report=xml:lambdas/mesh-poll/coverage.xml \
20+
--cov-branch
21+
22+
lint:
23+
pylint mesh_poll
24+
25+
format:
26+
autopep8 -ri .
27+
28+
clean:
29+
rm -rf target
30+
31+
.PHONY: install clean

lambdas/mesh-poll/jest.config.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.

lambdas/mesh-poll/package.json

Lines changed: 0 additions & 24 deletions
This file was deleted.

lambdas/mesh-poll/pytest.ini

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[pytest]
2+
testpaths = src/__tests__
3+
python_files = test_*.py
4+
python_classes = Test*
5+
python_functions = test_*
6+
addopts = -v --tb=short
7+
8+
[coverage:run]
9+
relative_files = True
10+
omit =
11+
*/src/__tests__/*
12+
*/test_*.py
13+
*/__pycache__/*
14+
*/venv/*
15+
*/.venv/*
16+
*/env/*
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
-r requirements.txt
2+
autopep8>=2.0.2
3+
pylint>=2.17.4
4+
pytest>=7.0.1
5+
pytest-cov>=4.0.0
6+
jake>=3.0.1

lambdas/mesh-poll/requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
setuptools>=78.1.1
2+
-e ../../src/digital-letters-events

lambdas/mesh-poll/src/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
"""
2+
MESH Poll Lambda
3+
4+
This module handles polling MESH inbox for new messages and publishing events.
5+
"""
6+
7+
__version__ = '0.1.0'
8+
from .handler import *
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Test package init

0 commit comments

Comments
 (0)