Skip to content

Commit

Permalink
Fix: Windows で pysen の実行に失敗する問題を修正
Browse files Browse the repository at this point in the history
pysen が Windows Python ではデフォルトで CP1252 / CP932 でテキストを読み込む挙動を認識してないのが諸悪の根源
pyproject.toml に ASCII 範囲の文字しか含まれていなければ CP1252 でも読み込めるが、日本語コメントが記述されているとデコードエラーが発生してダメということらしい
  • Loading branch information
tsukumijima committed Jul 13, 2024
1 parent 9f5d25e commit 59e1da4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
git diff --exit-code
- name: <Test> Check format
run: poetry run task lint
run: PYTHONUTF8=1 poetry run task lint

- name: <Test> Test codes and coverage
run: poetry run coverage run --omit=test/* -m pytest
Expand Down

0 comments on commit 59e1da4

Please sign in to comment.