Skip to content

Commit

Permalink
build: adds fix to pre-commit hooks (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
tdstein authored Mar 4, 2024
1 parent 5b15c92 commit dc700b2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ repos:
name: format
entry: bash -c "make fmt"
language: system
- id: fix
name: fix
entry: bash -c "make fix"
language: system
- id: lint
name: lint
entry: bash -c "make lint"
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ PYTHON := python3
default
deps
fmt
fix
install
lint
test
Expand Down Expand Up @@ -45,6 +46,9 @@ deps:
fmt:
$(PYTHON) -m ruff format .

fix:
$(PYTHON) -m ruff check --fix

install:
$(PIP) install -e .

Expand Down
2 changes: 1 addition & 1 deletion examples/connect/streamlit/sample-content.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
# Read the viewer's user session token from the streamlit ws header.
headers = _get_websocket_headers()
if headers:
USER_SESSION_TOKEN = headers.get("Posit-Connect-User-Session-Token")
USER_SESSION_TOKEN = headers.get("Posit-Connect-User-Session-Token")

credentials_provider = viewer_credentials_provider(
user_session_token=USER_SESSION_TOKEN
Expand Down

0 comments on commit dc700b2

Please sign in to comment.