feat: init commit
This commit is contained in:
16
scripts/style
Executable file
16
scripts/style
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
PYTHON_DIRS=("neotest_python")
|
||||
|
||||
if [[ $1 == "-w" ]]; then
|
||||
black "${PYTHON_DIRS[@]}"
|
||||
isort "${PYTHON_DIRS[@]}"
|
||||
autoflake --remove-unused-variables --remove-all-unused-imports --ignore-init-module-imports --remove-duplicate-keys --recursive -i "${PYTHON_DIRS[@]}"
|
||||
stylua lua
|
||||
else
|
||||
black --check "${PYTHON_DIRS[@]}"
|
||||
isort --check "${PYTHON_DIRS[@]}"
|
||||
autoflake --remove-unused-variables --remove-all-unused-imports --ignore-init-module-imports --remove-duplicate-keys --recursive "${PYTHON_DIRS[@]}"
|
||||
fi
|
10
scripts/test
Executable file
10
scripts/test
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
PYTHON_DIR="rplugin/python3/ultest"
|
||||
|
||||
pytest \
|
||||
--cov-branch \
|
||||
--cov=${PYTHON_DIR} \
|
||||
--cov-report xml:coverage/coverage.xml \
|
||||
--cov-report term \
|
||||
--cov-report html:coverage
|
Reference in New Issue
Block a user