Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
111 changes: 56 additions & 55 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,74 +1,75 @@
__pycache__
!build/
!src/test/pythonEnvironments/**/*.*
!yarn.lock
.DS_Store
.eslintcache
.github_token
.huskyrc.json
dist
out
.nyc_output
.pytest_cache
.python-version
.qlty/cache
.qlty/logs
.qlty/out
.qlty/plugin_cachedir
.qlty/results
.vs/
.vscode-test
.vscode-test-web
*.exe
log.log
**/node_modules
*.i18n.json
*.nls.*.json
*.noseids
*.pyc
*.vsix
*.xlf
**/.mypy_cache/**
**/.venv*/
**/.vscode test/**
**/.vscode-smoke/**
**/.vscode-test/**
**/.vscode/.ropeproject/**
**/*.esbuild.meta.json
**/node_modules
**/testFiles/**/.cache/**
*.noseids
.nyc_output
.vscode-test
__pycache__
npm-debug.log
**/.mypy_cache/**
!yarn.lock
# Compilation of less to css
# Esbuild files
# Qlty cache directories
# translation files
bin/**
coverage/
cucumber-report.json
**/.vscode-test/**
**/.vscode test/**
**/.vscode-smoke/**
**/.venv*/
port.txt
precommit.hook
pythonFiles/lib/**
debug_coverage*/**
languageServer/**
debug*.log
debugpy*.log
dist
l10n/
languageServer.*/**
bin/**
languageServer/**
log.log
logs/**
nodeLanguageServer.*/**
nodeLanguageServer/**
npm-debug.log
obj/**
.pytest_cache
temp
tmp
src/test/datascience/tmp/**
src/test/datascience/temp/**
.python-version
.vs/
test-results*.xml
testresults.json
telemetry.json
xunit-test-results.xml
!build/
debug*.log
debugpy*.log
out
port.txt
precommit.hook
pydevd*.log
vscode.d.ts
vscode.proposed.*.d.ts
nodeLanguageServer/**
nodeLanguageServer.*/**
pythonFiles/lib/**
src/test/datascience/.venv*
!src/test/pythonEnvironments/**/*.*
.vscode-test-web
.github_token
# translation files
*.xlf
*.nls.*.json
*.i18n.json
l10n/
# Esbuild files
**/*.esbuild.meta.json
# Compilation of less to css
src/test/datascience/temp/**
src/test/datascience/tmp/**
src/webviews/webview-side/interactive-common/variableExplorerGrid.css
src/webviews/webview-side/interactive-common/variableExplorerGrid.css.map
src/webviews/webview-side/react-common/seti/seti.css
src/webviews/webview-side/react-common/seti/seti.css.map
# Qlty cache directories
.qlty/cache
.qlty/logs
.qlty/out
.qlty/plugin_cachedir
.qlty/results
telemetry.json
temp
test-results*.xml
testresults.json
tmp
vscode.d.ts
vscode.proposed.*.d.ts
xunit-test-results.xml
1 change: 1 addition & 0 deletions .husky/post-checkout
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npm ci
18 changes: 1 addition & 17 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,17 +1 @@
#!/bin/sh
if npm list prettier | grep -q prettier@ ; then
echo husky - prettier is installed
else
echo husky - prettier is not installed, skipping format check
exit 0
fi

# run prettier on all .ts files that are in the commit
changed=$(git diff --diff-filter=ACM --cached --name-only | grep .ts$ | tr '\n' ' ')

if [ -z "$changed" ]; then
echo husky - No modified files to check
exit 0
fi

npx prettier $changed --check
npm exec lint-staged
5 changes: 5 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
branch_name="$(git symbolic-ref --short HEAD)"
if [ "$branch_name" = "main" ]; then
echo "Pushing directly to main is not allowed."
exit 1
fi
Loading