-
Notifications
You must be signed in to change notification settings - Fork 18
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
fix: Fix profile's mechanism and update OSL profile #189
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR, @xmnlab! Looks very good to me. I'll try using this branch locally this week to test if everything is working right!
] | ||
|
||
[tool.poetry.scripts] | ||
"scicookie" = "scicookie.__main__:app" | ||
|
||
[tool.poetry.dependencies] | ||
python = ">=3.8.1,<4" | ||
python = ">=3.8.1,<3.12" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason why we're not supporting Python 3.12?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not exactly, but we would need to test it first on CI
but the other deps we have like makim and sugar, for example, is not working with 3.12
we can add support for that in a follow-up
but I think it is better to add support for python version incrementally instead of <4, because it could silently break
@@ -85,11 +72,18 @@ select = [ | |||
"RUF", # Ruff-specific rules |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The select
section should now be under [tool.ruff.lint]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, I am going to change that in a bit. thanks for the update about that!
pyproject.toml
Outdated
@@ -85,11 +72,18 @@ select = [ | |||
"RUF", # Ruff-specific rules | |||
"I001", # isort | |||
] | |||
fixable = ["I001"] | |||
fix = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should not be here; instead, we should have --fix
in args
in `.pre-commit-config.yaml
fix = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I will going to do that in a bit, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it seems we don't need that for ruff format :)
so it would be totally fine to just remove that from pyproject.
thanks for caching that!
from jinja2 import Template | ||
|
||
from scicookie.logs import SciCookieErrorType, SciCookieLogs | ||
|
||
# Initialize Colorama | ||
init() | ||
|
||
|
||
def _create_question( | ||
question_id: str, question: dict | ||
) -> Optional[inquirer.questions.Question]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The types in the codebase can be simplified, for example -
) -> Optional[inquirer.questions.Question]: | |
) -> inquirer.questions.Question | None: |
But thus is not related to this PR. I can create a follow-up PR to update the typing hints.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice! it would be great to have a follow-up pr for that :) thank you
thank you so much @Saransh-cpp and @Anavelyz for the review and feedback. |
@Saransh-cpp is it ready to go? or are you still checking that locally? |
I am merging this PR. but feel free to point me any other issue and I can work on a follow-up. |
🎉 This PR is included in version 0.6.3 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Pull Request description
This PR aims to:
How to test these changes
...
Pull Request checklists
This PR is a:
About this PR:
Author's checklist:
Additional information
Reviewer's checklist
Copy and paste this template for your review's note: