Skip to content

Commit

Permalink
Merge pull request #37 from takano32/python-3.12
Browse files Browse the repository at this point in the history
Python 3.12
  • Loading branch information
fuktommy authored Oct 27, 2023
2 parents e487db9 + 3c6b167 commit 2586d8f
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v3
Expand All @@ -25,7 +25,7 @@ jobs:
pipenv install ruff pytest
- name: Lint with ruff
run: |
pipenv run ruff --format=github --select=E9,F63,F7,F82 .
pipenv run ruff --select=E9,F63,F7,F82 .
- name: Test with pytest
run: |
pipenv run pytest
Expand Down
1 change: 1 addition & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ name = "pypi"
[packages]
jinja2 = "*"
pillow = "*"
ruff = "*"

[dev-packages]

Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.11-slim
FROM python:3.12-slim

COPY . /saku
WORKDIR /saku
Expand Down
2 changes: 1 addition & 1 deletion shingetsu/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def _get_version():


# External config files.
_extconf = configparser.SafeConfigParser()
_extconf = configparser.ConfigParser()
_extconf.read(['file/saku.ini',
'/usr/local/etc/saku/saku.ini',
'/etc/saku/saku.ini',
Expand Down
2 changes: 1 addition & 1 deletion shingetsu/mch/datd.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def subject_app(env, resp):
# example: 2ch_E99B91E8AB87(雑談)
board = env['mch.path_match'].group(1)

m = re.match('2ch_(\S+)', board)
m = re.match(r'2ch_(\S+)', board)
if not (board.startswith('2ch') or m):
resp("404 Not Found", [('Content-Type', 'text/plain')])
return [b'404 Not Found']
Expand Down

0 comments on commit 2586d8f

Please sign in to comment.