Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move test for g:load_black to improve plugin performance #2896

Merged
merged 4 commits into from
Mar 5, 2022
Merged
Show file tree
Hide file tree
Changes from 2 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
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ and the first release covered by our new

### Integrations

- Move test to disable plugin in vim/neovim, which speeds up loading (#2896)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the changelog for the already released 22.1.0, move your entry to the unreleased section at line 36

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry!

- Update GitHub action to support containerized runs (#2748)

### Documentation
Expand Down
8 changes: 4 additions & 4 deletions plugin/black.vim
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
" 1.2:
" - use autoload script

if exists("g:load_black")
finish
endif

if v:version < 700 || !has('python3')
func! __BLACK_MISSING()
echo "The black.vim plugin requires vim7.0+ with Python 3.6 support."
Expand All @@ -25,10 +29,6 @@ if v:version < 700 || !has('python3')
finish
endif

if exists("g:load_black")
finish
endif

let g:load_black = "py1.0"
if !exists("g:black_virtualenv")
if has("nvim")
Expand Down