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? |
| """ | ||
| # 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.
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.
This has been fixed in the new version.
| 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.
A consistent number of blank lines should be used.
There was a problem hiding this comment.
This has been fixed in the new version.
| # 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.
query and query_params are inconsistently used. Standardize the naming for clarity.
There was a problem hiding this comment.
This has been fixed in the new version.
| # 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.
Use more specific names for url in each function, such as create_card_url
There was a problem hiding this comment.
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?