Compare commits
8
Commits
d5bcf04e61
...
v1.2.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d13e069287 | ||
|
|
bc0d2aced7 | ||
|
|
d872cfde43 | ||
|
|
7a396a88fb | ||
|
|
238188f4a5 | ||
|
|
63975169c0 | ||
|
|
387986e2d8 | ||
|
|
1760fc8136 |
@@ -23,6 +23,6 @@ jobs:
|
||||
pip install flake8 mypy pytest
|
||||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
||||
- name: PEP8 check
|
||||
run: flake8 ./code --benchmark --exit-zero
|
||||
run: flake8 ./code --benchmark
|
||||
- name: Type check
|
||||
run: mypy ./code
|
||||
@@ -22,7 +22,7 @@ jobs:
|
||||
pip install flake8 mypy pytest
|
||||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
||||
- name: PEP8 check
|
||||
run: flake8 ./code --benchmark --exit-zero
|
||||
run: flake8 ./code --benchmark
|
||||
- name: Type check
|
||||
run: mypy ./code
|
||||
publish:
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@ def connect(
|
||||
# load environment variables
|
||||
load_dotenv()
|
||||
ip_addr = os.getenv(
|
||||
'DB_IP_ADDRESS',
|
||||
'DB_IP_ADDRESS',
|
||||
default=DB_IP_ADDRESS
|
||||
)
|
||||
db_name = os.getenv(
|
||||
|
||||
@@ -27,7 +27,11 @@ def initialise_app(
|
||||
"""
|
||||
# load environment variables
|
||||
load_dotenv()
|
||||
assert 'USER_ID' in os.environ, 'environment variable USER_ID must be specified'
|
||||
assert (
|
||||
'USER_ID' in os.environ
|
||||
), (
|
||||
'environment variable USER_ID must be specified'
|
||||
)
|
||||
logger_level = os.getenv(
|
||||
'LOGGER_LEVEL',
|
||||
default=LOGGER_LEVEL
|
||||
@@ -63,5 +67,5 @@ def initialise_app(
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
user_id = initialise_app()
|
||||
initialise_app()
|
||||
logging.warning('test message')
|
||||
|
||||
+1
-1
@@ -123,7 +123,7 @@ if __name__ == '__main__':
|
||||
)
|
||||
# extra data flush
|
||||
if (
|
||||
time.time() >= data_flush_time and
|
||||
time.time() >= data_flush_time and
|
||||
data_queue.qsize() > 0
|
||||
):
|
||||
logging.debug('triggered extra data flush')
|
||||
|
||||
Reference in New Issue
Block a user