huntcsg / bragly Goto Github PK
View Code? Open in Web Editor NEWA command line tool to help remind you of your accomplishments
License: MIT License
A command line tool to help remind you of your accomplishments
License: MIT License
$ brag s
No configuration found, using default configuration:
Traceback (most recent call last):
File "/usr/local/bin/brag", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python2.7/site-packages/bragly/__main__.py", line 36, in main
for result in results:
File "/usr/local/lib/python2.7/site-packages/bragly/brag.py", line 92, in search
for result in results:
File "/usr/local/lib/python2.7/site-packages/bragly/persist.py", line 77, in search
mech, config = _get_module_and_kwargs_from_config(mechanism)
File "/usr/local/lib/python2.7/site-packages/bragly/persist.py", line 93, in _get_module_and_kwargs_from_config
config = get_config(mechanism)
File "/usr/local/lib/python2.7/site-packages/bragly/config.py", line 49, in get_config
if 'mechanism' in conf_parser:
TypeError: argument of type 'instance' is not iterable
Currently exceptions aren't being handled at all. This means under certain circumstances, an end user of the brag or brag-util scripts will get a python traceback instead of a useful error message (with possible ways to fix the error).
At the very minimum exceptions should be caught by the main scripts and replaced with a user friendly error message. Possibly, they should accept a --debug argument to pass the exception through, and perhaps a verbose argument to log all actions for debugging of issues.
Cyclomatic complexity is too high in function search. (17)
Identical code found in 1 other location (mass = 55)
https://codeclimate.com/github/huntcsg/bragly/bragly/brag.py#issue_56ee4ca08f717b00010193c7
Identical code found in 1 other location (mass = 55)
https://codeclimate.com/github/huntcsg/bragly/bragly/brag.py#issue_56ee4ca08a5169000100df26
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.