mirror of https://github.com/sipwise/repoapi.git
* update README.md
* replace screen with tmux with custom config
* pre-commit:
- add requirements-txt-fixer
- add python reorder imports
helps to keep imports tidy
- add eslint to check and format javascript
* configure black via pyproject.toml
* update gitignore
Change-Id: I86a8ad4a01203f3d592ff6c2ff0052b5e491a1e1
changes/47/37647/17
parent
ce0aa7897c
commit
0ed960e079
@ -0,0 +1,22 @@
|
|||||||
|
{
|
||||||
|
"env": {
|
||||||
|
"browser": true,
|
||||||
|
"commonjs": true,
|
||||||
|
"es6": true,
|
||||||
|
"jquery": true
|
||||||
|
},
|
||||||
|
"extends": [
|
||||||
|
"eslint:recommended",
|
||||||
|
"jquery"
|
||||||
|
],
|
||||||
|
"globals": {
|
||||||
|
"Atomics": "readonly",
|
||||||
|
"SharedArrayBuffer": "readonly"
|
||||||
|
},
|
||||||
|
"parserOptions": {
|
||||||
|
"ecmaVersion": 2018
|
||||||
|
},
|
||||||
|
"rules": {
|
||||||
|
"camelcase": "off"
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -1,4 +1,7 @@
|
|||||||
*~
|
*~
|
||||||
|
node_modules/
|
||||||
*.pyc
|
*.pyc
|
||||||
db.sqlite3
|
db.sqlite3
|
||||||
|
install.log
|
||||||
reports
|
reports
|
||||||
|
src
|
||||||
|
|||||||
@ -0,0 +1,91 @@
|
|||||||
|
#set-option -g default-shell /bin/zsh
|
||||||
|
|
||||||
|
# Use Ctrl-a, like Screen
|
||||||
|
set -g prefix C-a
|
||||||
|
unbind C-b
|
||||||
|
|
||||||
|
|
||||||
|
# Start counting from 1 for windows and panes
|
||||||
|
set -g base-index 1
|
||||||
|
set -g pane-base-index 1
|
||||||
|
|
||||||
|
bind C-a send-prefix
|
||||||
|
|
||||||
|
bind | split-window -h
|
||||||
|
bind - split-window -v
|
||||||
|
|
||||||
|
bind e detach
|
||||||
|
bind x kill-pane
|
||||||
|
bind & kill-window
|
||||||
|
|
||||||
|
set-option -g allow-rename off
|
||||||
|
|
||||||
|
#vim moves
|
||||||
|
bind h select-pane -L
|
||||||
|
bind j select-pane -D
|
||||||
|
bind k select-pane -U
|
||||||
|
bind l select-pane -R
|
||||||
|
|
||||||
|
bind r source-file ~/.tmux.conf \; display "Configuration reloaded!"
|
||||||
|
|
||||||
|
#Toogle
|
||||||
|
bind -r C-h select-window -t :-
|
||||||
|
bind -r C-l select-window -t :+
|
||||||
|
|
||||||
|
#set -g mouse-select-pane on
|
||||||
|
#set -g mouse-resize-pane on
|
||||||
|
#set -g mouse-select-pane on
|
||||||
|
#set -g mode-mouse on
|
||||||
|
|
||||||
|
set -g monitor-activity off
|
||||||
|
set -g visual-activity off
|
||||||
|
|
||||||
|
bind-key * list-clients
|
||||||
|
|
||||||
|
setw -g automatic-rename
|
||||||
|
set-option -g set-titles on
|
||||||
|
|
||||||
|
set -g history-limit 10000
|
||||||
|
|
||||||
|
set -g status-keys vi
|
||||||
|
set -g mode-keys vi
|
||||||
|
|
||||||
|
set -sg escape-time 0
|
||||||
|
|
||||||
|
unbind q
|
||||||
|
bind q confirm kill-session
|
||||||
|
bind Q confirm kill-server
|
||||||
|
|
||||||
|
unbind d
|
||||||
|
bind -r d resize-pane -D 5
|
||||||
|
bind -r u resize-pane -U 5
|
||||||
|
|
||||||
|
#set -g status-utf8 on
|
||||||
|
set -g status-right "#S:#I.#P"
|
||||||
|
set -g status-justify left
|
||||||
|
set-option -g status-position top
|
||||||
|
|
||||||
|
if-shell "if [[ `tmux -V | cut -d' ' -f2` -lt 2.0 ]]; then true; else false; fi" \
|
||||||
|
'set -g status-utf8 on; \
|
||||||
|
set -g mouse-select-pane on; \
|
||||||
|
set -g mouse-resize-pane on; \
|
||||||
|
set -g mouse-select-pane on; \
|
||||||
|
set -g mode-mouse on;'
|
||||||
|
|
||||||
|
#
|
||||||
|
## THEME
|
||||||
|
##
|
||||||
|
#
|
||||||
|
## Colors make life better
|
||||||
|
set -g default-terminal "screen-256color"
|
||||||
|
#
|
||||||
|
set -g status-fg colour253 # lightgrey
|
||||||
|
set -g status-bg colour234 # darkgrey
|
||||||
|
|
||||||
|
## Status bar info
|
||||||
|
#set -g status-utf8 on
|
||||||
|
set -g status-left "#[fg=red]($SERVER)⚡ [#I]"
|
||||||
|
set -g status-right "[#I] #[fg=yellow]#S:#I:#P #[fg=green]%H:%M %d-%h"
|
||||||
|
set -g status-justify left
|
||||||
|
set-option -g status-position top
|
||||||
|
|
||||||
@ -0,0 +1,9 @@
|
|||||||
|
[tool.black]
|
||||||
|
line-length = 79
|
||||||
|
py37 = true
|
||||||
|
exclude = '''
|
||||||
|
/(
|
||||||
|
migrations
|
||||||
|
| __pycache__
|
||||||
|
)/
|
||||||
|
'''
|
||||||
@ -1,17 +1,18 @@
|
|||||||
|
celery
|
||||||
Django==1.11.28
|
Django==1.11.28
|
||||||
django-extensions
|
|
||||||
yuicompressor
|
|
||||||
django-assets
|
django-assets
|
||||||
|
django-celery-beat
|
||||||
|
django-celery-results
|
||||||
|
django-extensions
|
||||||
|
django-filter
|
||||||
|
django-jsonify
|
||||||
|
django-rest-swagger
|
||||||
djangorestframework>=3.6,<3.7
|
djangorestframework>=3.6,<3.7
|
||||||
drfapikey
|
drfapikey
|
||||||
django-rest-swagger
|
flower
|
||||||
markdown
|
markdown
|
||||||
django-filter
|
python-debian
|
||||||
|
PyYAML
|
||||||
six>=1.9
|
six>=1.9
|
||||||
webassets
|
webassets
|
||||||
celery
|
yuicompressor
|
||||||
django-celery-beat
|
|
||||||
django-celery-results
|
|
||||||
flower
|
|
||||||
django-jsonify
|
|
||||||
python-debian
|
|
||||||
|
|||||||
Loading…
Reference in new issue