mirror of
https://github.com/astral-sh/ty.git
synced 2025-07-07 19:45:00 +00:00
23 lines
540 B
Bash
Executable file
23 lines
540 B
Bash
Executable file
#!/usr/bin/env sh
|
|
#
|
|
# Generate files and copy documentation from Ruff.
|
|
#
|
|
# Usage
|
|
#
|
|
# ./scripts/autogenerate-files.sh
|
|
#
|
|
set -eu
|
|
|
|
script_root="$(realpath "$(dirname "$0")")"
|
|
project_root="$(dirname "$script_root")"
|
|
cd "$project_root"
|
|
|
|
echo "Updating lockfile..."
|
|
uv lock
|
|
|
|
echo "Copying reference documentation from Ruff..."
|
|
cp ruff/crates/ty/docs/cli.md ./docs/reference/
|
|
cp ruff/crates/ty/docs/configuration.md ./docs/reference/
|
|
cp ./ruff/crates/ty/docs/rules.md ./docs/reference/
|
|
|
|
echo "Documentation has been copied from Ruff submodule"
|