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

chore: Refactor code quality issues #263

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .deepsource.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version = 1

[[analyzers]]
name = "python"
enabled = true

[analyzers.meta]
runtime_version = "3.x.x"

1 change: 0 additions & 1 deletion irrelevant/notebook_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

import json
import os
import pprint

fpath = os.path.join(os.path.dirname( __file__ ), '..', 'README.md')
examples = []
Expand Down
2 changes: 1 addition & 1 deletion irrelevant/obsolete/parse_readme.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
while True:
title = content.next()
cat = content.next().strip()
is_new = True if cat[-1]=="*" else False

Choose a reason for hiding this comment

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

Errado, arruma o true if

is_new = cat[-1]=="*"
cat = cat.replace('*','')
snips_by_title[title] = {
"category": cat,
Expand Down