Coder Social home page Coder Social logo

hoox's Introduction

hoox's People

Contributors

kirillsulim avatar

Stargazers

 avatar

Watchers

 avatar  avatar

hoox's Issues

No hoox.version in package

[sulim@sulim-skbkontur ~]$ python3 -m pip install hoox
Collecting hoox
Using cached https://files.pythonhosted.org/packages/e5/b8/1ee1d0f128fb889028ef7ed95de4df9f20cad2200f1bc543c699ffcdafdd/hoox-0.0.2.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-build-vpqhwxta/hoox/setup.py", line 13, in
version=load_from('hoox.version').strip(),
File "/tmp/pip-build-vpqhwxta/hoox/setup.py", line 8, in load_from
with open(path.join(project_directory, file_name), encoding='utf-8') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-build-vpqhwxta/hoox/hoox.version'

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-vpqhwxta/hoox/

Add hoox info

Info should print information like current hoox directory, enabled hooks etc.

Hide utility functions

For example hoox get_function_name fail with stacktrace:

[sulim@sulim-pc hercules]$ hoox get_function_name
Traceback (most recent call last):
  File "/home/sulim/.local/bin/hoox", line 11, in <module>
    load_entry_point('hoox', 'console_scripts', 'hoox')()
  File "/home/sulim/git/kirillsulim/hoox/src/hoox/hoox.py", line 29, in main
    exit(func(main_args.options))
  File "/home/sulim/git/kirillsulim/hoox/src/hoox/hoox.py", line 149, in get_function_name
    return name.replace('-', '_')
AttributeError: 'list' object has no attribute 'replace'

But get_function_name is utility function and in that case error message like "No such subcommand, subcommands are [subcommands list]" must be shown.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.