Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ These can be installed be appending `--extra <optional dependency>` like so:
uv sync --extra cli --extra docs --extra subscription
```

## Python linting

Ruff is the source of truth for Python linting. Read `pyproject.toml` and `pulumi/ruff.toml` for the active rules.

## Re-bootstrapping the project

If you find your environment in a troubled state (it happens) you can add the option `--from-scratch` to bootstrap like
Expand Down
4 changes: 3 additions & 1 deletion pulumi/ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ quote-style = "single"

[lint]
# Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default.
select = ["E", "F"]
# Require f-strings for interpolation instead of printf-style formatting (UP031)
# or `.format` calls (UP032).
select = ["E", "F", "UP031", "UP032"]
ignore = []

# Allow autofix for all enabled rules (when `--fix`) is provided.
Expand Down
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,9 @@ quote-style = "single"
[tool.ruff.lint]
# Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default.
# Enable flagging print (T201)
select = ["E", "F", "T201"]
# Require f-strings for interpolation instead of printf-style formatting (UP031)
# or `.format` calls (UP032).
select = ["E", "F", "T201", "UP031", "UP032"]
ignore = []

# Allow autofix for all enabled rules (when `--fix`) is provided.
Expand Down
2 changes: 1 addition & 1 deletion src/thunderbird_accounts/authentication/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ def _prepare_reauthorization(self, request):
request.session['oidc_login_next'] = request.get_full_path()

query = urlencode(params, quote_via=quote)
return '{auth_url}?{query}'.format(auth_url=auth_url, query=query)
return f'{auth_url}?{query}'


class SetHostIPInAllowedHostsMiddleware:
Expand Down
Loading