-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SqlMagic Config File Locations #880
Comments
Yes, I think it makes sense to have a user-level configuration. This seems relevant to decide what this location should be: psf/black#1899 I can ask someone from our team to work on this as soon as they finish their existing PRs, but it might take a couple of weeks (we'd highly appreciate it if you give us a hand) When is your class starting? |
Early students are dribbling in now, but we may end up using a legacy environment which uses I'm not sure how much help I can provide code-wise (I've not really engaged with tests, ever!)? I do note that the file is loaded via: Line 677 in a71ea40
which leads to: Lines 377 to 390 in a71ea40
Currently, it looks like the connections file and path are picked up literally, so some thinking about how that path is declared may need rethinking. Lines 132 to 139 in 4011175
The |
we need to modify this line: Line 677 in a71ea40
and replace it with some searching logic:
edge case: if both |
In the edge case, and in case of conflict, should the |
@marshallwhiteorg: let's see how other projects are tackling this (see my comment: #880 (comment)) and implement something similar |
Sounds good, I'll implement this similar to If |
any updates @marshallwhiteorg ? |
This reverts commit 815b05b.
* #880 User-level config * 880 changelog * 880 works if .jupysql dir doesn't exist yet * #890 debugging windows * #892 fix link * Revert "#892 fix link" This reverts commit 3354a8e. * #890 * #880 fix link * Revert "#880 fix link" This reverts commit 815b05b. * #880 PR feedback: tests and docs * #880 formatting * #880 patch -> monkeypatch
Currently, the database connection file defaults to
~/.jupysql/connections.ini
, whereas magic settings are found in apyproject.toml
"in the current or parent directories" (docs).I am trying to set up a clean environment for students to work in and would like to be able to hide the
pyproject.toml
file.Ideally, it would be useful if the
~/.jupysql/
path were also a checked location for theSqlMagic
confg settings.The text was updated successfully, but these errors were encountered: