-
Notifications
You must be signed in to change notification settings - Fork 8
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
Hw3 submission #11
base: main
Are you sure you want to change the base?
Hw3 submission #11
Conversation
trello integration with show mw toto and add todo comands on slack Add .DS_Store to .gitignore Add correct python version and uv Add correct python version Add correct python version and checks fix: correct python version and enbled all ruff checks Update Readme.md Update CircleCi with uv package manager Added uv.lock Update README with uv dependency installation instructions Added .DS_Store to ignored files trello integration with show mw toto and add todo comands on slack Add .DS_Store to .gitignore Add correct python version Add correct python version and checks fix: correct python version and enbled all ruff checks Update Readme.md Update CircleCi with uv package manager
1. Change Granularity 2. Code Functionality 3. Readability & Structure
4. Standards Compatibility
5. Testing
Reviewers: Sidhved Warik (sw6071), Yaxin Ke (yk2991) An open-ended question on the choice of using a separate requirements.txt for dependencies when project. toml made by uv already exists? And can the Operating System related dependencies be mentioned separately? |
src/trello/trello_api.py
Outdated
""" | ||
# Fetch all lists (both open and closed if include_archived is True) | ||
filter_value = 'all' if include_archived else 'open' | ||
url_all_lists = f"https://api.trello.com/1/boards/{TRELLO_BOARD_ID}/lists" |
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.
Trello API base URLs (https://api.trello.com) are repeated multiple times. This could lead to errors if the API version changes. Consider defining a constant like TRELLO_API_BASE = "https://api.trello.com/1".
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.
This has been fixed in the new version.
src/trello/trello_api.py
Outdated
return True | ||
else: | ||
raise Exception(f"Failed to archive the list '{list_name}': {response.status_code}, {response.text}") | ||
|
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.
A consistent number of blank lines should be used.
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.
This has been fixed in the new version.
src/trello/trello_api.py
Outdated
# Fetch all lists (both open and closed if include_archived is True) | ||
filter_value = 'all' if include_archived else 'open' | ||
url_all_lists = f"https://api.trello.com/1/boards/{TRELLO_BOARD_ID}/lists" | ||
query_params = { |
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.
query and query_params are inconsistently used. Standardize the naming for clarity.
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.
This has been fixed in the new version.
src/trello/trello_api.py
Outdated
# List does not exist, so create it | ||
list_id = create_trello_list(list_name) | ||
|
||
url = f"https://api.trello.com/1/cards" |
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.
Use more specific names for url in each function, such as create_card_url
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.
This has been fixed in the new version.
-> How is each file in your PR connected to the task at hand?
-> You should not have files that are irrelevant to the task.
-> Make sure files that should be .gitignore are inin .gitignore
E.g. .DS_Store*
-> Make sure secrets are not checked in!
-> Make sure there is a clear and separated API!
-> If your change is big and changes many files a description of the change overall is in order
-> How should it be reviewed?
-> What should the reviewer look at in what order?
-> What is the main idea?