-
-
Notifications
You must be signed in to change notification settings - Fork 610
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
Support config defaults using .pip-tools.toml
or pyproject.toml
#1863
Support config defaults using .pip-tools.toml
or pyproject.toml
#1863
Commits on Jun 13, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 1204f72 - Browse repository at this point
Copy the full SHA 1204f72View commit details -
Configuration menu - View commit details
-
Copy full SHA for 04af2a5 - Browse repository at this point
Copy the full SHA 04af2a5View commit details -
Switch the toml fallback library to
tomli
This implementation is the de-facto go-to choice nowadays. It is also API-compatible with the stdlib's `tomllib`.
Configuration menu - View commit details
-
Copy full SHA for 06fb793 - Browse repository at this point
Copy the full SHA 06fb793View commit details -
Use
pathlib.Path
objects internallyIt is the best practice nowadays. Paths are only converted to strings for text representation, like when logging.
Configuration menu - View commit details
-
Copy full SHA for 9ef5f8f - Browse repository at this point
Copy the full SHA 9ef5f8fView commit details -
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Configuration menu - View commit details
-
Copy full SHA for 0098ee5 - Browse repository at this point
Copy the full SHA 0098ee5View commit details -
Update the config defaults in CLI ctx in place
This patch is supposed to improve the readability of said block of code and optimize it a bit.
Configuration menu - View commit details
-
Copy full SHA for fc4b8f5 - Browse repository at this point
Copy the full SHA fc4b8f5View commit details -
🎨 Separate updating CLI context with the config
This is a refactoring patch aimed at improving readability.
Configuration menu - View commit details
-
Copy full SHA for cc28f42 - Browse repository at this point
Copy the full SHA cc28f42View commit details -
🎨Mv parsing error processing->parse_config_file
This helper is a better location since it already contains similar processing code that converts problems into process-interrupting exceptions. It is also rather weird to process low-level exceptions on the higher level when the context is lost.
Configuration menu - View commit details
-
Copy full SHA for 5dab95d - Browse repository at this point
Copy the full SHA 5dab95dView commit details -
🎨 Couple config parsing-n-ctx-assigning w/ walrus
This change demonstrates a rather indivisible relation between getting the config contents into the CLI context making it a perfect target for the future refactoring.
Configuration menu - View commit details
-
Copy full SHA for 92e455f - Browse repository at this point
Copy the full SHA 92e455fView commit details -
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Configuration menu - View commit details
-
Copy full SHA for 2e86931 - Browse repository at this point
Copy the full SHA 2e86931View commit details -
🐛 Compare pathlib objects @ precedence test
This was missing from a previous commit, could be used to fix it up.
Configuration menu - View commit details
-
Copy full SHA for f4692a7 - Browse repository at this point
Copy the full SHA f4692a7View commit details -
🎨 Rename config option callback to
determine_config_file
This improves the readability and follows common function naming practices of using verbs to describe actions they perform.
Configuration menu - View commit details
-
Copy full SHA for c8298e0 - Browse repository at this point
Copy the full SHA c8298e0View commit details -
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Configuration menu - View commit details
-
Copy full SHA for fe16e26 - Browse repository at this point
Copy the full SHA fe16e26View commit details -
We'll be able to revert this commit in about 1.5 months, once Python 3.7 is no longer supported.
Configuration menu - View commit details
-
Copy full SHA for cc4a91f - Browse repository at this point
Copy the full SHA cc4a91fView commit details -
Simplify config file lookup @
select_config_file
This makes it easier to follow that's happening in the helper function step-by-step.
Configuration menu - View commit details
-
Copy full SHA for c3c4795 - Browse repository at this point
Copy the full SHA c3c4795View commit details -
Iterate over config lookup dirs lazily
The change converts list comprehensions into generator expressions. This helps save memory and reduce unnecessary syscalls.
Configuration menu - View commit details
-
Copy full SHA for 64e3a2a - Browse repository at this point
Copy the full SHA 64e3a2aView commit details -
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Configuration menu - View commit details
-
Copy full SHA for 050e278 - Browse repository at this point
Copy the full SHA 050e278View commit details -
Drop unnecessary parens from
lru_cache
This is a tiny cosmetic change, making the code cleaner.
Configuration menu - View commit details
-
Copy full SHA for a111641 - Browse repository at this point
Copy the full SHA a111641View commit details -
Reuse working dir in
select_config_file
This makes sure there's no unnecessary syscalls.
Configuration menu - View commit details
-
Copy full SHA for ca76900 - Browse repository at this point
Copy the full SHA ca76900View commit details -
Revert "Drop unnecessary parens from
lru_cache
" This reverts commit 75f2729. That patch was incompatible with Python 3.7.
Configuration menu - View commit details
-
Copy full SHA for 8627df8 - Browse repository at this point
Copy the full SHA 8627df8View commit details -
Configuration menu - View commit details
-
Copy full SHA for db2f30b - Browse repository at this point
Copy the full SHA db2f30bView commit details -
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Configuration menu - View commit details
-
Copy full SHA for bb015ad - Browse repository at this point
Copy the full SHA bb015adView commit details -
Improve test value for non-existant TOML file.
Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>
Configuration menu - View commit details
-
Copy full SHA for d01af78 - Browse repository at this point
Copy the full SHA d01af78View commit details -
Configuration menu - View commit details
-
Copy full SHA for 97d30bc - Browse repository at this point
Copy the full SHA 97d30bcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 228f2a7 - Browse repository at this point
Copy the full SHA 228f2a7View commit details -
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Configuration menu - View commit details
-
Copy full SHA for 8d9dd8a - Browse repository at this point
Copy the full SHA 8d9dd8aView commit details -
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Configuration menu - View commit details
-
Copy full SHA for 8de18db - Browse repository at this point
Copy the full SHA 8de18dbView commit details