Skip to content

Commit 130f43c

Browse files
authored
Remove inappropriate descriptions (#1682)
Signed-off-by: chensuyue <[email protected]>
1 parent 477cb66 commit 130f43c

File tree

5 files changed

+118
-22
lines changed

5 files changed

+118
-22
lines changed

.github/workflows/pr-io-build.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Copyright (C) 2025 Intel Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
name: IO page build test
5+
6+
on:
7+
pull_request:
8+
branches: [master_next, master]
9+
types: [opened, reopened, ready_for_review, synchronize]
10+
11+
# If there is a new commit, the previous jobs will be canceled
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
14+
cancel-in-progress: true
15+
16+
jobs:
17+
build-on-pr:
18+
runs-on: ${{ contains(github.repository, 'intel-innersource') && 'self-hosted' || 'ubuntu-latest' }}
19+
steps:
20+
- name: Clean Up Working Directory
21+
run: sudo rm -rf ${{github.workspace}}/*
22+
23+
- name: Checkout Repo
24+
uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2
25+
with:
26+
fetch-depth: 0
27+
28+
- name: Build Online Document
29+
run: |
30+
git config --local --get remote.origin.url
31+
cd docs/build_docs
32+
bash build.sh latest

.github/workflows/pr-link-scan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ permissions:
88

99
on:
1010
pull_request:
11-
branches: ["master", "master_next", "JGS.*"]
11+
branches: ["master", "master_next"]
1212
types: [opened, reopened, ready_for_review, synchronize]
1313

1414
# If there is a new commit, the previous jobs will be canceled
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# Copyright (C) 2025 Intel Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
name: Fix Code Style on PR
5+
6+
on:
7+
pull_request:
8+
branches: [master_next, master]
9+
types: [opened, reopened, ready_for_review, synchronize]
10+
11+
# If there is a new commit, the previous jobs will be canceled
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
14+
cancel-in-progress: true
15+
16+
jobs:
17+
scan-and-fix:
18+
if: ${{ contains(github.repository, 'intel-innersource') }}
19+
runs-on: ${{ contains(github.repository, 'intel-innersource') && 'self-hosted' || 'ubuntu-latest' }}
20+
permissions:
21+
pull-requests: write
22+
contents: write
23+
steps:
24+
- name: Clean Up Working Directory
25+
run: sudo rm -rf ${{github.workspace}}/*
26+
27+
- name: Checkout Repo
28+
uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2
29+
with:
30+
fetch-depth: 0
31+
32+
- name: Fix Code Style
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
run: |
36+
# Create a virtual environment
37+
python -m venv venv
38+
source venv/bin/activate
39+
40+
# Upgrade pip and install pre-commit
41+
pip install --upgrade pip
42+
pip install -U pre-commit
43+
44+
# Run pre-commit hooks to fix auto-fixable issues
45+
pre-commit install
46+
pre-commit run --all-files --show-diff-on-failure > pre-commit.log 2>&1
47+
exit_code=$?
48+
cat pre-commit.log
49+
50+
# Check if there are changes after pre-commit run
51+
if [ -n "$(git status --porcelain)" ]; then
52+
# Commit and push the changes if there are any
53+
git config user.name "GitHub Action"
54+
git config user.email "[email protected]"
55+
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }}.git
56+
git add -A
57+
git commit -m -s "chore: apply pre-commit auto-fixes"
58+
git push origin HEAD:${{ github.head_ref }}
59+
else
60+
# If no changes are made, print a message
61+
echo "No auto-fixable changes were made by pre-commit."
62+
fi
63+
64+
# Exit with the original exit code from pre-commit
65+
if [ $exit_code -ne 0 ]; then
66+
echo "Pre-commit found issues. See pre-commit.log for details."
67+
exit $exit_code
68+
fi
69+
70+

.github/workflows/publish.yml

Lines changed: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,12 @@
22
# SPDX-License-Identifier: Apache-2.0
33
# CI for public repo only
44

5-
name: Publish
5+
name: Publish IO
66
permissions: {}
77

88
on:
99
push:
10-
branches:
11-
- master
12-
pull_request:
13-
branches:
14-
- master
10+
branches: [master]
1511

1612
jobs:
1713
build:
@@ -21,18 +17,16 @@ jobs:
2117
pull-requests: write
2218
contents: write
2319
steps:
24-
- uses: actions/checkout@v3
20+
- uses: actions/checkout@v3
21+
- name: Build Online Document
22+
run: |
23+
git config --local --get remote.origin.url
24+
cd docs/build_docs
25+
bash build.sh latest
2526
26-
- name: Build Online Document
27-
run: |
28-
git config --local --get remote.origin.url
29-
cd docs/build_docs
30-
bash build.sh latest
31-
32-
- name: Push to github
33-
if: ${{ github.event_name == 'push' }}
34-
uses: peaceiris/actions-gh-pages@v3
35-
with:
36-
github_token: ${{ secrets.GITHUB_TOKEN }}
37-
publish_dir: ./build_tmp/gh-pages
38-
publish_branch: gh-pages
27+
- name: Push to github
28+
uses: peaceiris/actions-gh-pages@v3
29+
with:
30+
github_token: ${{ secrets.GITHUB_TOKEN }}
31+
publish_dir: ./build_tmp/gh-pages
32+
publish_branch: gh-pages

neural_compressor/torch/algorithms/fp8_quant/_core/quantized_func_wrappers/xpu/xpu_quantized_func_wrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
class QuantizedXPUFuncWrapperBase(QuantizedFuncWrapperBase, metaclass=ABCMeta):
2525
"""
26-
Placeholder for base class for XPU (Falcon/Jaguar Shores) quantized func wrapper.
26+
Placeholder for base class for XPU quantized func wrapper.
2727
"""
2828
def __init__(self, scale_format, is_dynamic=False):
2929
self._quantized_func_ = self.get_default_quantized_func()

0 commit comments

Comments
 (0)