Skip to content
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

Provide support for multiple accounts, add a new state module #48

Open
wants to merge 16 commits into
base: main
Choose a base branch
from

Conversation

LivInTheLookingGlass
Copy link
Owner

No description provided.

@LivInTheLookingGlass LivInTheLookingGlass self-assigned this Nov 10, 2022
@netlify
Copy link

netlify bot commented Nov 10, 2022

Deploy Preview for admirable-pika-22aea5 ready!

Name Link
🔨 Latest commit 565b77f
🔍 Latest deploy log https://app.netlify.com/sites/admirable-pika-22aea5/deploys/639e5c8b9b4dc200080e616e
😎 Deploy Preview https://deploy-preview-48--admirable-pika-22aea5.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.



@db_wrapper
def update_market(
Copy link

Choose a reason for hiding this comment

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

Function update_market has 7 arguments (exceeds 6 allowed). Consider refactoring.

Copy link
Owner Author

@LivInTheLookingGlass LivInTheLookingGlass Nov 10, 2022

Choose a reason for hiding this comment

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

It only has 6, though?



@db_wrapper
def select_markets(
Copy link

Choose a reason for hiding this comment

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

Function select_markets has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.


@lru_cache
@db_wrapper
def select_account(
Copy link

Choose a reason for hiding this comment

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

Function select_account has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.

@codeclimate
Copy link

codeclimate bot commented Nov 10, 2022

Code Climate has analyzed commit 565b77f and detected 2 issues on this pull request.

Here's the issue category breakdown:

Category Count
Duplication 2

The test coverage on the diff in this pull request is 58.3% (50% is the threshold).

This pull request will bring the total coverage in the repository to 73.2% (-1.2% change).

View more on Code Climate.



@db_wrapper
def update_market(
Copy link

Choose a reason for hiding this comment

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

Function update_market has 8 arguments (exceeds 6 allowed). Consider refactoring.

ManifoldMarketManager/rule/github.py Show resolved Hide resolved
ManifoldMarketManager/rule/github.py Show resolved Hide resolved


@db_wrapper
def update_market(
Copy link

Choose a reason for hiding this comment

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

Function update_market has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.

@LivInTheLookingGlass
Copy link
Owner Author

This will merge after I add a few tests and merge the production databases

@LivInTheLookingGlass
Copy link
Owner Author

This will close #18, #19, #20, #34

assert db is not None
params: tuple[Any, ...] = ()
q_additions = []
for name, value in {
Copy link

Choose a reason for hiding this comment

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

Similar blocks of code found in 2 locations. Consider refactoring.

query = "from accounts select id, raw_account, account, is_encrypted where "
params: tuple[Any, ...] = ()
q_additions = []
for name, value in {
Copy link

Choose a reason for hiding this comment

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

Similar blocks of code found in 2 locations. Consider refactoring.

Copy link

@codeclimate codeclimate bot left a comment

Choose a reason for hiding this comment

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

The PR diff size of 7584 lines exceeds the maximum allowed for the inline comments feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In Progress
1 participant