Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Sourcery refactored main branch#1

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
sourcery-ai wants to merge1 commit intomain
base:main
Choose a base branch
Loading
fromsourcery/main

Conversation

sourcery-ai[bot]
Copy link

Branchmain refactored bySourcery.

If you're happy with these changes, merge this Pull Request using theSquash and merge strategy.

See our documentationhere.

Run Sourcery locally

Reduce the feedback loop during development by using the Sourcery editor plugin:

Review changes via command line

To manually merge these changes, make sure you're on themain branch, then run:

git fetch origin sourcery/maingit merge --ff-only FETCH_HEADgit reset HEAD^

Help usimprove this pull request!

Comment on lines -27 to +29
else:
result += temp
exclude += [x["objectID"] for x in temp]
count += 1
result += temp
exclude += [x["objectID"] for x in temp]
count += 1
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Functionmain refactored with the following changes:

Comment on lines -17 to +22
"params":f'query=&hitsPerPage=1000&facetFilters=[["city.work_country_name:Indonesia"]]',
"params": 'query=&hitsPerPage=1000&facetFilters=[["city.work_country_name:Indonesia"]]',
}
]
}

if not filter_object_id:
pass
else:
if filter_object_id:
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Functionfetch refactored with the following changes:

@sourcery-ai
Copy link
Author

Sourcery Code Quality Report

✅  Merging this PR willincrease code quality in the affected files by1.11%.

Quality metricsBeforeAfterChange
Complexity5.60 ⭐4.89 ⭐-0.71 👍
Method Length51.00 ⭐50.00 ⭐-1.00 👍
Working memory2.08 ⭐1.87 ⭐-0.21 👍
Quality73.95% 🙂75.06%1.11% 👍
Other metricsBeforeAfterChange
Lines8681-5
Changed filesQuality BeforeQuality AfterQuality Change
scraper/main.py70.31% 🙂71.46% 🙂1.15% 👍
scraper/tool.py80.71% ⭐82.86% ⭐2.15% 👍

Here are some functions in these files that still need a tune-up:

FileFunctionComplexityLengthWorking MemoryQualityRecommendation

Legend and Explanation

The emojis denote the absolute quality of the code:

  • ⭐ excellent
  • 🙂 good
  • 😞 poor
  • ⛔ very poor

The 👍 and 👎 indicate whether the quality has improved or gotten worse with this pull request.


Please see our documentationhere for details on how these metrics are calculated.

We are actively working on this report - lots more documentation and extra metrics to come!

Help usimprove this quality report!

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@pythonjokeunpythonjokeunAwaiting requested review from pythonjokeun

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

0 participants

[8]ページ先頭

©2009-2025 Movatter.jp