-
Notifications
You must be signed in to change notification settings - Fork 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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scrape fixing #4
Draft
AstrophysicsAndPython
wants to merge
82
commits into
main
Choose a base branch
from
scrap-dev2
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Conversation
This file contains 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
* added relative path option in __init__ method * added static methods about add_import_to_results and add_from_results * changed __scrape_import method * changed __scrape_variables method * added import_count method * added option of all or top N most_used_variables * separated imports in from_, import_, and all_ in get_import_names * added more functionalities to utilities.py * added test.py to .gitignore file
TODO
|
Insane stuff man, looking over it right now its like a full revision |
Centered quick stat completely
We messed up the MAJOR-MINOR thing good 😆 |
[+] Added a rule line on line 494
[+] Not gonna explain
[+] Added a new parameter in command line options called --vars, supposed to be an int this will determine how many variables to get. (Astro take a look at line 397 i have implemented a temp fix but please implement a better fix as my code is giving me headache lol) [+] Made all fetch statements Status statements [=] I think line_count function parameter 2 (exclude_empty_line) is not working (line 199)
please revise the get_import_count function in visualwrapper please
* some major formatting corrections * some minor function call and other corrections
|
[+] Added a new panel which shows how many if, while, for, try and with statements exist im not sure how to get the numbers coloured but if you want you can mess with it at line 638 [=] Now from and import modules are always the same height :) [=] From import's are still not working properly
[+] Fixed a few bugs [+] Added a total variable count
[+] Added a decorator count without ast using regex instead
[+] Fixed some bugs with Statements panel
Resolved issues in the following files via DeepSource Autofix: 1. All current dashboard ideas.py/revision design.py 2. checks.py 3. gex/func and class.py 4. PyStats.py 5. utilities.py
[=] Changed some existing code so it improves performance - removed unused var - useless lines
Fixed typos
Revert "Fixed typos"
[+] Fixed a bug with a try statement count fixed it by rounding up also fixed an error with functions showing 1 less (defined line)
* major code reformatting and minor spellings corrections * code cleanup and variable naming * partially consistent color scheme for the dashboard
these are rare [+] Added an img view option --imgpath which displays an img
i did something
probably spent like 6hrs today on python [=] Massively improved quick stats
* major code reformatting and minor spellings corrections * code cleanup and variable naming * partially consistent color scheme for the dashboard
* got PyStats.py working again properly
minor stuff totally did not take me hrs
* some minor fixes, the variable count is still whack
* added the table format and some fixes
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.
__init__
methodadd_import_to_results
andadd_from_results
__scrape_import
method__scrape_variables
methodimport_count
methodmost_used_variables
from_
,import_
, andall_
inget_import_names