リンターのエラー修正
This commit is contained in:
parent
e429362634
commit
f2961daec1
32
.github/workflows/pyruff.yml
vendored
32
.github/workflows/pyruff.yml
vendored
@ -35,27 +35,21 @@ jobs:
|
|||||||
- name: Check Initer
|
- name: Check Initer
|
||||||
id: checkIniter
|
id: checkIniter
|
||||||
run: |
|
run: |
|
||||||
set +e
|
|
||||||
ls -la
|
|
||||||
echo "Running Ruff Lint Check..."
|
echo "Running Ruff Lint Check..."
|
||||||
python -m ruff --version
|
python -m ruff check . --exit-zero --no-cache --output-format json --output-file ruff-report.json
|
||||||
python -m ruff check src tests examples --no-cache --output-format json --output-file ruff-report.json
|
|
||||||
echo "ruff exit code: $?"
|
|
||||||
echo "Ruff Lint Check completed. ruff-report.json"
|
echo "Ruff Lint Check completed. ruff-report.json"
|
||||||
|
|
||||||
|
- name: Generate Linter Report
|
||||||
|
id: generateLinterReport
|
||||||
|
run: |
|
||||||
|
python scripts/generate_linter_from_json.py
|
||||||
|
|
||||||
|
|
||||||
# - name: Generate Linter Report
|
- name: pull_request message with Ruff Lint results
|
||||||
# id: generateLinterReport
|
id: prMessageRuffLint
|
||||||
# run: |
|
run: |
|
||||||
# python scripts/generate_linter_from_json.py
|
curl -v -X POST \
|
||||||
|
-H "Content-Type: application/json" \
|
||||||
|
-H "Authorization: token ${{ secrets.GITEA_TOKEN }}" \
|
||||||
# - name: pull_request message with Ruff Lint results
|
-d @lint-result.json \
|
||||||
# id: prMessageRuffLint
|
${{ gitea.server_url }}/api/v1/repos/${{ gitea.repository }}/issues/8/comments
|
||||||
# run: |
|
|
||||||
# curl -v -X POST \
|
|
||||||
# -H "Content-Type: application/json" \
|
|
||||||
# -H "Authorization: token ${{ secrets.GITEA_TOKEN }}" \
|
|
||||||
# -d @lint-result.json \
|
|
||||||
# ${{ gitea.server_url }}/api/v1/repos/${{ gitea.repository }}/issues/8/comments
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user