increase text linting in pre-commit, vim etc
This commit is contained in:
parent
641f25cc99
commit
aabb0dadc1
@ -114,3 +114,7 @@ repos:
|
|||||||
language: docker_image
|
language: docker_image
|
||||||
entry: --entrypoint /usr/local/bin/run-jflint.sh askulkarni2/jenkinslint
|
entry: --entrypoint /usr/local/bin/run-jflint.sh askulkarni2/jenkinslint
|
||||||
files: Jenkinsfile
|
files: Jenkinsfile
|
||||||
|
- repo: git@github.com:amperser/proselint.git
|
||||||
|
rev: 0.10.2
|
||||||
|
hooks:
|
||||||
|
- id: proselint
|
||||||
|
@ -7,5 +7,7 @@ echo "Installing moro, a productivity CLI tool"
|
|||||||
npm install -g moro
|
npm install -g moro
|
||||||
echo "Install wiki CLI tool"
|
echo "Install wiki CLI tool"
|
||||||
npm install -g wikit
|
npm install -g wikit
|
||||||
|
echo "Install Write-good CLI spell checker"
|
||||||
|
npm install -g write-good
|
||||||
|
|
||||||
cd "$HOME" || exit
|
cd "$HOME" || exit
|
||||||
|
@ -6,11 +6,11 @@ sudo pip install --upgrade pip
|
|||||||
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
|
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
|
||||||
sudo python3 get-pip.py
|
sudo python3 get-pip.py
|
||||||
case "$(uname -s)" in
|
case "$(uname -s)" in
|
||||||
Darwin)
|
Darwin)
|
||||||
echo "(Mac OS X) Updating PATH for loading pip user installed packages"
|
echo "(Mac OS X) Updating PATH for loading pip user installed packages"
|
||||||
ln -snf /usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/bin/pip pip3
|
ln -snf /usr/local/opt/python/bin//pip3.8 /usr/local/bin/pip3
|
||||||
export PATH="$PATH:/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/bin/:/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/bin:/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/bin"
|
export PATH="$PATH:/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/bin/:/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/bin:/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/bin:/usr/local/opt/python/bin/"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
echo "Upgrading pip"
|
echo "Upgrading pip"
|
||||||
sudo pip install --upgrade pip
|
sudo pip install --upgrade pip
|
||||||
|
@ -116,7 +116,7 @@ let g:ale_fixers = {
|
|||||||
\ 'zsh' : ['shfmt'],
|
\ 'zsh' : ['shfmt'],
|
||||||
\}
|
\}
|
||||||
|
|
||||||
let g:ale_linters = {'zsh': ['shellcheck']}
|
let g:ale_linters = {'zsh': ['shellcheck'], 'text': ['writegood', 'proselint']}
|
||||||
|
|
||||||
" when running at every change you may want to disable quickfix
|
" when running at every change you may want to disable quickfix
|
||||||
let g:prettier#quickfix_enabled = 1
|
let g:prettier#quickfix_enabled = 1
|
||||||
|
@ -278,13 +278,15 @@ function invalid_file_refs() {
|
|||||||
|
|
||||||
|
|
||||||
# Text search
|
# Text search
|
||||||
# run aspell in non interactive mode, to list all mispelled words found
|
# run write-good, proselint, and aspell in non interactive mode, to list all mispelled words found
|
||||||
function checkenlist() {
|
function checkenlist() {
|
||||||
aspell -d en list < "$1" | sort --unique --ignore-case
|
aspell -d en list < "$1" | sort --unique --ignore-case
|
||||||
|
write-good "$1" | sort --unique --ignore-case
|
||||||
|
proselint "$1" | sort --unique --ignore-case
|
||||||
}
|
}
|
||||||
|
|
||||||
function checkenremote() {
|
function checkenremote() {
|
||||||
curl --location --insecure --silent "$1" > /tmp/file && checkenlist /tmp/file
|
curl --location --insecure --silent "$1" > /tmp/file && checkenlist /tmp/file && write-good /tmp/file && proselint /tmp/file
|
||||||
}
|
}
|
||||||
|
|
||||||
# Time management
|
# Time management
|
||||||
|
@ -18,7 +18,6 @@ cachetools==3.1.1
|
|||||||
certifi==2019.9.11
|
certifi==2019.9.11
|
||||||
cffi==1.13.2
|
cffi==1.13.2
|
||||||
chardet==3.0.4
|
chardet==3.0.4
|
||||||
Click==7.0
|
|
||||||
colorama==0.4.1
|
colorama==0.4.1
|
||||||
colorzero==1.1
|
colorzero==1.1
|
||||||
configobj==5.0.6
|
configobj==5.0.6
|
||||||
@ -120,7 +119,6 @@ Scrapy==1.8.0
|
|||||||
semver==2.9.0
|
semver==2.9.0
|
||||||
service-identity==18.1.0
|
service-identity==18.1.0
|
||||||
sh==1.12.14
|
sh==1.12.14
|
||||||
six==1.13.0
|
|
||||||
slacker==0.13.0
|
slacker==0.13.0
|
||||||
soupsieve==1.9.5
|
soupsieve==1.9.5
|
||||||
stashy==0.6
|
stashy==0.6
|
||||||
@ -147,3 +145,6 @@ websocket-client==0.56.0
|
|||||||
wrapt==1.11.2
|
wrapt==1.11.2
|
||||||
yamllint==1.23.0
|
yamllint==1.23.0
|
||||||
zope.interface==4.6.0
|
zope.interface==4.6.0
|
||||||
|
click==7.1.2
|
||||||
|
proselint==0.10.2
|
||||||
|
six==1.15.0
|
||||||
|
Loading…
Reference in New Issue
Block a user