diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 23cc95c..4c565e3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,6 +20,7 @@ jobs: - 3.7 - 3.8 - 3.9 + - "3.10" steps: - name: Repository Checkout uses: actions/checkout@v2 @@ -53,10 +54,13 @@ jobs: - uses: actions/checkout@v2 - name: Install requirements - run: make setup + run: | + make setup - name: Build pypi - run: echo TO DO - make pypi package. + run: | + echo TO DO - make pypi package. - name: Build documentaiton - run: echo TO DO - make readthedocs documentation. + run: | + echo TO DO - make readthedocs documentation. diff --git a/Makefile b/Makefile index 71c89a2..b7762f8 100644 --- a/Makefile +++ b/Makefile @@ -34,7 +34,7 @@ unit_test: .PHONY: lint_test lint_test: echo -n "Running LINT tests\n" - flake8 --max-line-length=100 st2.py lib/*.py + flake8 --max-line-length=${MAX_LINE_LEN} st2.py lib/*.py .PHONY: help help: diff --git a/lib/chat_adapters.py b/lib/chat_adapters.py index a4aac5b..ae4a916 100644 --- a/lib/chat_adapters.py +++ b/lib/chat_adapters.py @@ -449,12 +449,14 @@ def get_username(self, msg): channel_name, channel_id, ) = self.bot_plugin._bot.extract_identifiers_from_string(str(msg.frm)) - LOG.warning(f""" + LOG.warning( + f""" username = {username} user_id = {user_id} channel_name = {channel_name} channel_id = {channel_id} - """) + """ + ) if channel_id: name = f"#{channel_id}" elif channel_name: