-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## 🚀 Pythonプロジェクトのセットアップとコード品質向上の改善 (#39)
* Refactor workflow and scripts, improve configuration (#37) * Refactor workflow and scripts, improve configuration * Refactor pyproject.toml and scripts, improve configuration * Add installation of "ruff" package using Homebrew * Refactor README.ja.md and improve setup instructions * Refactor README.ja.md and add "ruff" package to dependencies * Add "ripgrep" to cspell.json * Add ruff pre-commit hooks for Python linting and formatting * Add Python version setup to pre-commit workflow
- Loading branch information
Showing
8 changed files
with
95 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,17 @@ jobs: | |
with: | ||
ref: ${{ github.head_ref }} | ||
|
||
- name: Read Python version from .python-version | ||
id: read_python_version | ||
run: | | ||
PYTHON_VERSION=$(cat .python-version) | ||
echo "PYTHON_VERSION=$PYTHON_VERSION" >> $GITHUB_ENV | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
|
||
- name: pre-commit | ||
uses: pre-commit/[email protected] | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,6 +63,7 @@ | |
"OPENAI", | ||
"pcra", | ||
"pyenv", | ||
"ripgrep", | ||
"rxvt", | ||
"SAVEHIST", | ||
"schelp", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters