Skip to content

Commit b04a500

Browse files
authored
build: add import formatting and sorting (#247)
1 parent 8c74a63 commit b04a500

27 files changed

+15
-44
lines changed

.pre-commit-config.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ repos:
77
name: format
88
entry: bash -c "make fmt"
99
language: system
10-
- id: fix
11-
name: fix
12-
entry: bash -c "make fix"
13-
language: system
1410
- id: lint
1511
name: lint
1612
entry: bash -c "make lint"

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Before contributing to the `posit-sdk`, ensure that the following prerequisites
2222
1. Create a new branch for your feature or bug fix.
2323
1. Run `make` to run the default development workflow.
2424
1. Make your changes and test them thoroughly using `make test`
25-
1. Run `make fmt`, `make lint`, and `make fix` to verify adherence to the project style guide.
25+
1. Run `make fmt` and `make lint` to verify adherence to the project style guide.
2626
1. Commit your changes and push them to your forked repository.
2727
1. Submit a pull request to the main repository.
2828

Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,8 @@ dev:
3838
docs:
3939
$(MAKE) -C ./docs
4040

41-
fix:
42-
$(PYTHON) -m ruff check --fix
43-
4441
fmt:
42+
$(PYTHON) -m ruff check --fix
4543
$(PYTHON) -m ruff format .
4644

4745
install:

examples/connect/dash/app.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
from databricks import sql
99
from databricks.sdk.core import ApiClient, Config
1010
from databricks.sdk.service.iam import CurrentUserAPI
11-
1211
from posit.connect.external.databricks import viewer_credentials_provider
1312

1413
DATABRICKS_HOST = os.getenv("DATABRICKS_HOST")

examples/connect/fastapi/app.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from databricks import sql
77
from fastapi import FastAPI, Header
88
from fastapi.responses import JSONResponse
9-
109
from posit.connect.external.databricks import viewer_credentials_provider
1110

1211
DATABRICKS_HOST = os.getenv("DATABRICKS_HOST")

examples/connect/flask/app.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
from databricks import sql
66
from flask import Flask, request
7-
87
from posit.connect.external.databricks import viewer_credentials_provider
98

109
DATABRICKS_HOST = os.getenv("DATABRICKS_HOST")

examples/connect/shiny-python/app.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@
66
from databricks import sql
77
from databricks.sdk.core import ApiClient, Config
88
from databricks.sdk.service.iam import CurrentUserAPI
9-
from shiny import App, Inputs, Outputs, Session, render, ui
10-
119
from posit.connect.external.databricks import viewer_credentials_provider
10+
from shiny import App, Inputs, Outputs, Session, render, ui
1211

1312
DATABRICKS_HOST = os.getenv("DATABRICKS_HOST")
1413
DATABRICKS_HOST_URL = f"https://{DATABRICKS_HOST}"

examples/connect/streamlit/app.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@
77
from databricks import sql
88
from databricks.sdk.core import ApiClient, Config
99
from databricks.sdk.service.iam import CurrentUserAPI
10-
from streamlit.web.server.websocket_headers import _get_websocket_headers
11-
1210
from posit.connect.external.databricks import viewer_credentials_provider
11+
from streamlit.web.server.websocket_headers import _get_websocket_headers
1312

1413
DATABRICKS_HOST = os.getenv("DATABRICKS_HOST")
1514
DATABRICKS_HOST_URL = f"https://{DATABRICKS_HOST}"

integration/tests/posit/connect/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from packaging import version
2-
32
from posit import connect
43

54
client = connect.Client()

integration/tests/posit/connect/test_content.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import pytest
44
from packaging import version
5-
65
from posit import connect
76

87
from . import CONNECT_VERSION

0 commit comments

Comments
 (0)