Skip to content

Commit 130f03a

Browse files
author
Taniya Mathur
committed
adding ruff dependency to publish.sh and docs
1 parent 8d713c7 commit 130f03a

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

docs/deployment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ You need to have the following packages installed on your computer:
3535
3. [sam (AWS SAM)](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/install-sam-cli.html)
3636
4. python 3.11 or later
3737
5. A local Docker daemon
38-
6. Python packages for publish.py: `pip install boto3 rich typer PyYAML botocore setuptools`
38+
6. Python packages for publish.py: `pip install boto3 rich typer PyYAML botocore setuptools ruff`
3939
7. **Node.js 18+** and **npm** (required for UI validation in publish script)
4040

4141
For guidance on setting up a development environment, see:

publish.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ check_and_install_packages() {
127127
"rich:rich"
128128
"boto3:boto3"
129129
"yaml:PyYAML"
130+
"ruff:ruff"
130131
)
131132
missing_packages=()
132133

@@ -139,6 +140,11 @@ check_and_install_packages() {
139140
fi
140141
done
141142

143+
# Check ruff separately (command-line tool)
144+
if ! command -v ruff >/dev/null 2>&1; then
145+
missing_packages+=("ruff")
146+
fi
147+
142148
# Install missing packages if any
143149
if [[ ${#missing_packages[@]} -gt 0 ]]; then
144150
print_warning "Missing packages: ${missing_packages[*]}"

0 commit comments

Comments
 (0)