Spaces:
Sleeping
Sleeping
adamelliotfields
commited on
Commit
•
30b472e
1
Parent(s):
a34cd2a
Settings
Browse files- .streamlit/config.toml +95 -0
- .vscode/settings.json +26 -0
- ruff.toml +9 -0
.streamlit/config.toml
ADDED
@@ -0,0 +1,95 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[logger]
|
2 |
+
# Level of logging: 'error', 'warning', 'info', or 'debug'.
|
3 |
+
# Default: 'info'
|
4 |
+
level = "warning"
|
5 |
+
|
6 |
+
[client]
|
7 |
+
# Controls whether uncaught app exceptions and deprecation warnings are displayed in the browser.
|
8 |
+
# By default, this is set to True and Streamlit displays app exceptions and associated tracebacks,
|
9 |
+
# and deprecation warnings, in the browser. If set to False, deprecation warnings and full
|
10 |
+
# exception messages will print to the console only. Exceptions will still display in the browser
|
11 |
+
# with a generic error message. For now, the exception type and traceback show in the browser also,
|
12 |
+
# but they will be removed in the future.
|
13 |
+
# Default: true
|
14 |
+
showErrorDetails = true
|
15 |
+
|
16 |
+
# Change the visibility of items in the toolbar, options menu, and settings dialog (top right of
|
17 |
+
# the app). Allowed values:
|
18 |
+
# * "auto" : Show the developer options if the app is accessed through localhost or through Streamlit Community Cloud as a developer. Hide them otherwise.
|
19 |
+
# * "developer" : Show the developer options.
|
20 |
+
# * "viewer" : Hide the developer options.
|
21 |
+
# * "minimal" : Show only options set externally (e.g. through Streamlit Community Cloud) or through st.set_page_config. If there are no options left, hide the menu.
|
22 |
+
# Default: "auto"
|
23 |
+
toolbarMode = "developer"
|
24 |
+
|
25 |
+
[runner]
|
26 |
+
# Allows you to type a variable or string by itself in a single line of Python code to write it to the app.
|
27 |
+
# Default: true
|
28 |
+
magicEnabled = false
|
29 |
+
|
30 |
+
# Raise an exception after adding unserializable data to Session State. Some execution environments
|
31 |
+
# may require serializing all data in Session State, so it may be useful to detect incompatibility
|
32 |
+
# during development, or when the execution environment will stop supporting it in the future.
|
33 |
+
# Default: false
|
34 |
+
enforceSerializableSessionState = true
|
35 |
+
|
36 |
+
[server]
|
37 |
+
# Change the type of file watcher used by Streamlit, or turn it off completely. Allowed values:
|
38 |
+
# * "auto" : Streamlit will attempt to use the watchdog module, and falls back to polling if watchdog is not available.
|
39 |
+
# * "watchdog" : Force Streamlit to use the watchdog module.
|
40 |
+
# * "poll" : Force Streamlit to always use polling.
|
41 |
+
# * "none" : Streamlit will not watch files.
|
42 |
+
# Default: "auto"
|
43 |
+
fileWatcherType = "watchdog"
|
44 |
+
|
45 |
+
# If false, will attempt to open a browser window on start.
|
46 |
+
# Default: false unless (1) we are on a Linux box where DISPLAY is unset, or (2) we are running in the Streamlit Atom plugin.
|
47 |
+
headless = true
|
48 |
+
|
49 |
+
# Automatically rerun script when the file is modified on disk.
|
50 |
+
# Default: false
|
51 |
+
runOnSave = true
|
52 |
+
|
53 |
+
# The address where the server will listen for client and browser connections. Use this if you want
|
54 |
+
# to bind the server to a specific address. If set, the server will only be accessible from this
|
55 |
+
# address, and not from any aliases (like localhost).
|
56 |
+
# Default: (unset)
|
57 |
+
address = "0.0.0.0"
|
58 |
+
|
59 |
+
# The port where the server will listen for browser connections. Don't use port 3000 which is
|
60 |
+
# reserved for internal development.
|
61 |
+
# Default: 8501
|
62 |
+
port = 8501
|
63 |
+
|
64 |
+
# The base path for the URL where Streamlit should be served from.
|
65 |
+
# Default: ""
|
66 |
+
baseUrlPath = ""
|
67 |
+
|
68 |
+
# Enables support for Cross-Origin Resource Sharing (CORS) protection, for added security. Due to
|
69 |
+
# conflicts between CORS and XSRF, if `server.enableXsrfProtection` is on and `server.enableCORS`
|
70 |
+
# is off at the same time, we will prioritize `server.enableXsrfProtection`.
|
71 |
+
# Default: true
|
72 |
+
enableCORS = true
|
73 |
+
|
74 |
+
# Enables support for Cross-Site Request Forgery (XSRF) protection, for added security. Due to
|
75 |
+
# conflicts between CORS and XSRF, if `server.enableXsrfProtection` is on and `server.enableCORS`
|
76 |
+
# is off at the same time, we will prioritize `server.enableXsrfProtection`.
|
77 |
+
# Default: true
|
78 |
+
enableXsrfProtection = true
|
79 |
+
|
80 |
+
# Enable serving files from a `static` directory in the running app's directory.
|
81 |
+
# Default: false
|
82 |
+
enableStaticServing = false
|
83 |
+
|
84 |
+
[browser]
|
85 |
+
# Internet address where users should point their browsers in order to connect to the app. Can be
|
86 |
+
# IP address or DNS name and path. This is used to:
|
87 |
+
# - Set the correct URL for CORS and XSRF protection purposes.
|
88 |
+
# - Show the URL on the terminal
|
89 |
+
# - Open the browser
|
90 |
+
# Default: "localhost"
|
91 |
+
serverAddress = "localhost"
|
92 |
+
|
93 |
+
# Whether to send usage statistics to Streamlit.
|
94 |
+
# Default: true
|
95 |
+
gatherUsageStats = false
|
.vscode/settings.json
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"editor.rulers": [110],
|
3 |
+
|
4 |
+
"files.exclude": {
|
5 |
+
".venv/**": true
|
6 |
+
},
|
7 |
+
"files.watcherExclude": {
|
8 |
+
".venv/**": true
|
9 |
+
},
|
10 |
+
|
11 |
+
"notebook.formatOnSave.enabled": true,
|
12 |
+
"notebook.codeActionsOnSave": {
|
13 |
+
"notebook.source.fixAll.ruff": "explicit",
|
14 |
+
"notebook.source.organizeImports.ruff": "explicit"
|
15 |
+
},
|
16 |
+
|
17 |
+
"[python]": {
|
18 |
+
"editor.defaultFormatter": "charliermarsh.ruff",
|
19 |
+
"editor.formatOnSave": true,
|
20 |
+
"editor.tabSize": 4,
|
21 |
+
"editor.codeActionsOnSave": {
|
22 |
+
"source.fixAll.ruff": "explicit",
|
23 |
+
"source.organizeImports.ruff": "explicit"
|
24 |
+
}
|
25 |
+
}
|
26 |
+
}
|
ruff.toml
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
extend-include = ["*.ipynb"]
|
2 |
+
|
3 |
+
line-length = 110
|
4 |
+
|
5 |
+
[lint]
|
6 |
+
ignore = ["F401"]
|
7 |
+
|
8 |
+
[lint.per-file-ignores]
|
9 |
+
"*.ipynb" = ["E402"]
|