Use tests/ci/style_check.py to check the style

This commit is contained in:
Mikhail f. Shiryaev 2024-06-04 21:55:52 +02:00
parent c0aad2a2b5
commit 0fe2c1dae4
No known key found for this signature in database
GPG Key ID: 4B02ED204C7D93F4

View File

@ -71,7 +71,7 @@ If it fails, fix the style errors following the [code style guide](style.md).
```sh ```sh
mkdir -p /tmp/test_output mkdir -p /tmp/test_output
# running all checks # running all checks
docker run --rm --volume=.:/ClickHouse --volume=/tmp/test_output:/test_output -u $(id -u ${USER}):$(id -g ${USER}) --cap-add=SYS_PTRACE clickhouse/style-test python3 tests/ci/style_check.py --no-push
# run specified check script (e.g.: ./check-mypy) # run specified check script (e.g.: ./check-mypy)
docker run --rm --volume=.:/ClickHouse --volume=/tmp/test_output:/test_output -u $(id -u ${USER}):$(id -g ${USER}) --cap-add=SYS_PTRACE --entrypoint= -w/ClickHouse/utils/check-style clickhouse/style-test ./check-mypy docker run --rm --volume=.:/ClickHouse --volume=/tmp/test_output:/test_output -u $(id -u ${USER}):$(id -g ${USER}) --cap-add=SYS_PTRACE --entrypoint= -w/ClickHouse/utils/check-style clickhouse/style-test ./check-mypy