Skip to content

Commit b0a1915

Browse files
Add ruff configuration
1 parent 45985ab commit b0a1915

File tree

3 files changed

+51
-0
lines changed

3 files changed

+51
-0
lines changed

.github/workflows/cicd.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,13 @@ jobs:
6060
uv run python3 -c "import boto3; print(boto3.__version__)"
6161
echo "$GITHUB_WORKSPACE" >> $GITHUB_PATH
6262
63+
- name: Lint with ruff
64+
run: |
65+
# Check code formatting
66+
uv run ruff format --check .
67+
# Run linting
68+
uv run ruff check .
69+
6370
- name: Lint with flake8
6471
run: |
6572
# stop the build if there are Python syntax errors or undefined names

pyproject.toml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ test = [
3636
]
3737
dev = [
3838
"flake8",
39+
"ruff",
3940
"Sphinx>=7.1.0,<8.0.0",
4041
"docutils>=0.18.0,<0.21.0",
4142
"pip>=24.3.1,<25.0.0",
@@ -53,3 +54,18 @@ build-backend = "setuptools.build_meta"
5354
[tool.setuptools.packages.find]
5455
where = ["."]
5556
include = ["aurora_dsql_django*"]
57+
58+
[tool.ruff]
59+
indent-width = 4
60+
target-version = "py38"
61+
62+
# Aligns with flake8 check in CI/CD workflow.
63+
line-length = 127
64+
65+
[tool.ruff.lint]
66+
select = ["E", "F", "W", "I"]
67+
ignore = []
68+
69+
[tool.ruff.format]
70+
quote-style = "double"
71+
indent-style = "space"

uv.lock

Lines changed: 28 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)