forked from apache/hudi-rs
-
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.
style: Add Ruff and MyPy to pyproject.toml and integrate Python linti…
…ng in GitHub Actions - Added Ruff and MyPy configurations to pyproject.toml - Integrated Python linting in GitHub Actions
- Loading branch information
yanghao14
committed
Jul 28, 2024
1 parent
3e71bb0
commit 9e7dbb5
Showing
3 changed files
with
38 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -47,5 +47,23 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- name: Check license header | ||
uses: apache/skywalking-eyes/[email protected] | ||
- name: Check code style | ||
- name: Check rust code style | ||
run: cd python && make check-rust | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
cache: pip | ||
cache-dependency-path: pyproject.toml | ||
- name: Check python code style | ||
working-directory: ./python | ||
- name: Install python linter dependencies | ||
run: | | ||
make setup-env | ||
source venv/bin/activate | ||
pip install ruff mypy | ||
- name: Run python linter | ||
working-directory: ./python | ||
run: | | ||
source venv/bin/activate | ||
make check-python |
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