Skip to content

Commit

Permalink
Test against Python 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
nzlosh committed Oct 13, 2021
1 parent 4e17312 commit b23b81d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
- 3.7
- 3.8
- 3.9
- "3.10"
steps:
- name: Repository Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -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.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 4 additions & 2 deletions lib/chat_adapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b23b81d

Please sign in to comment.