mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-08-28 05:25:04 +00:00
* refactor(search): replace time module with datetime for timestamp generation - Removed unused time import - Added static method _now_ts using datetime.timestamp - Updated clock parameter to use _now_ts method instead of time.time - Maintained same timestamp precision and functionality * test(http): add tests for HTTP client display formatting - Add test for default metadata hiding behavior in CLI output - Add test for metadata display when show_metadata is enabled - Verify _format_for_display method correctly formats response text - Test both success case and metadata inclusion scenarios * chore(build): remove longmemeval from gitignore - Removed longmemeval directory from gitignore list - Kept evaluation and datasets directories in ignore list - Updated gitignore configuration for proper version control
38 lines
1 KiB
YAML
38 lines
1 KiB
YAML
name: Pre-commit
|
|
|
|
on: [ push, pull_request ]
|
|
|
|
jobs:
|
|
run:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: True
|
|
matrix:
|
|
os: [ ubuntu-latest ]
|
|
env:
|
|
OS: ${{ matrix.os }}
|
|
PYTHON: '3.11'
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Setup Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.11'
|
|
- name: Update setuptools
|
|
run: |
|
|
pip install -U setuptools wheel
|
|
- name: Install
|
|
run: |
|
|
pip install -q -e .[dev]
|
|
- name: Install pre-commit
|
|
run: |
|
|
pre-commit install
|
|
- name: Pre-commit starts
|
|
run: |
|
|
pre-commit run --all-files > pre-commit.log 2>&1 || true
|
|
cat pre-commit.log
|
|
if grep -q Failed pre-commit.log; then
|
|
echo -e "\e[41m [**FAIL**] Please install pre-commit and format your code first. \e[0m"
|
|
exit 1
|
|
fi
|
|
echo -e "\e[46m ********************************Passed******************************** \e[0m"
|