Skip to content

Conversation

@lennartkats-db
Copy link
Contributor

This adds a settings.json file, which originally came up in #45. Having this settings file helps makes sure that any Python examples comply to the common Python formatting guidelines.

"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter",
"editor.formatOnSave": true,
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These settings help make sure Python examples comply to the common Python formatting guidelines.

"**/*.egg-info": true,
"**/__pycache__": true,
".pytest_cache": true,
},
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These settings make sure that the file tree for any locally edited Python samples doesn't show __pycache__ and related entries.

"python.analysis.stubPath": ".vscode",
"databricks.python.envFile": "${workspaceFolder}/.env",
"jupyter.interactiveWindow.cellMarker.codeRegex": "^# COMMAND ----------|^# Databricks notebook source|^(#\\s*%%|#\\s*\\<codecell\\>|#\\s*In\\[\\d*?\\]|#\\s*In\\[ \\])",
"jupyter.interactiveWindow.cellMarker.default": "# COMMAND ----------",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These settings are added by the Databricks plugin. Adding them here ensures no conflict whenever authors open this repository with this plugin.

@shreyas-goenka
Copy link
Contributor

We run ruff on the repo as part of CI and have make file rules for linting / formatting python. Marking this PR as draft but please feel free to reopen this PR if there are any python settings you would like to check in.

@shreyas-goenka shreyas-goenka marked this pull request as draft April 9, 2025 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants