Code quality: Remove trailing whitespace and improve PEP 8 compliance#123
Draft
cursor[bot] wants to merge 1 commit into
Draft
Code quality: Remove trailing whitespace and improve PEP 8 compliance#123cursor[bot] wants to merge 1 commit into
cursor[bot] wants to merge 1 commit into
Conversation
- Remove trailing whitespace from linkedin.py (lines 32, 45, 58, 66, 93, 105, 113, 139, 145, 168, 181, 208, 213, 219, 228, 259, 273, 290, 316, 328, 340, 350) - Remove trailing whitespace from utils.py (lines 92, 94, 110, 316, 318, 320, 329) - Fix PEP 8: Remove unnecessary parentheses in conditional statements - linkedin.py: chromeBrowserOptions(), jobsToPages() - utils.py: chooseResume() method comparisons, getJobProperties() blacklist checks - Fix spacing in control flow statements - linkedin.py line 66: 'try: ' -> 'try:' - linkedin.py line 118: 'try: ' -> 'try:' - Fix logic bug: Replace 'type(len(resumes)) != int' with 'len(resumes) == 0' in chooseResume() - Clean up duplicate print() statements in getJobProperties() (lines 340, 350) - Improve code consistency and readability Co-authored-by: Ongun Demirag <ongun@ongundemirag.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR focuses on code quality improvements by removing trailing whitespace and enhancing PEP 8 compliance throughout the codebase.
Changes Made
Trailing Whitespace Removal
linkedin.py(15 lines)utils.py(7 lines)PEP 8 Formatting Improvements
chromeBrowserOptions():if(config.headless):→if config.headless:jobsToPages():if(len(...) > 0)→if len(...) > 0chooseResume(): Removed unnecessary parentheses from conditionsgetJobProperties(): Cleaned up list comprehensions and comparisonsCode Cleanup
try:→try:try:→try:print()statements in exception handlers that were followed by formatted warningstype(len(resumes)) != inttolen(resumes) == 0Impact
Files Modified
linkedin.py: 23 changesutils.py: 12 changes