My name is Kirill Sulim. I am a language agnostic developer.
kirillsulim / hoox Goto Github PK
View Code? Open in Web Editor NEWGit hooks manager
License: MIT License
Git hooks manager
License: MIT License
My name is Kirill Sulim. I am a language agnostic developer.
[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/
It must not rewrite file. In one hook repo scheme additional projects can be added to the same hoox directory with hoox init -d {dir}
.
That will be usefull
If you want for some reason store hooks in separate directory/repository hoox must give that opportunity
Info should print information like current hoox directory, enabled hooks etc.
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.
As made in https://github.com/pre-commit/pre-commit . But pre-commit not support pre-push etc (is it true?) Actually supports. And has fatal flaw also =)
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.