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

ci: add selene as a linter #9

Merged
merged 1 commit into from
Oct 21, 2024
Merged

Conversation

AliSajid
Copy link
Member

@AliSajid AliSajid commented Oct 20, 2024

TL;DR

Added Selene Lua linter to pre-commit hooks and configured it for Vim/Neovim development.

What changed?

  • Updated .pre-commit-config.yaml to include Selene as a local hook
  • Added selene.toml configuration file to set the Vim standard
  • Created vim.toml to define Vim-specific globals and functions for Selene

How to test?

  1. Install Selene: cargo install selene
  2. Run pre-commit hooks: pre-commit run --all-files
  3. Verify that Selene lints Lua files without errors
  4. Make changes to Lua files and ensure Selene catches any issues

Why make this change?

Integrating Selene as a Lua linter improves code quality and consistency in Vim/Neovim plugin development. It helps catch potential errors and enforces best practices specific to the Vim environment.

Copy link
Member Author

AliSajid commented Oct 20, 2024

Merge activity

  • Oct 19, 11:32 PM EDT: A user started a stack merge that includes this pull request via Graphite.
  • Oct 19, 11:35 PM EDT: Graphite couldn't merge this pull request because a downstack PR docs: update the README.md #8 failed to merge.
  • Oct 20, 5:51 PM EDT: @AliSajidImami we removed the merge queue label because we could not find a Graphite account associated with your GitHub profile.

You must have a Graphite account in order to use the merge queue. Create an account and try again using this link

  • Oct 20, 6:22 PM EDT: Graphite rebased this pull request after merging its parent, because this pull request is set to merge when ready.
  • Oct 20, 7:20 PM EDT: The Graphite merge queue removed this pull request due to downstack failures on PR #8.
  • Oct 20, 9:01 PM EDT: A user started a stack merge that includes this pull request via Graphite.
  • Oct 20, 9:07 PM EDT: Graphite rebased this pull request as part of a merge.
  • Oct 20, 9:11 PM EDT: Graphite couldn't merge this PR because it failed for an unknown reason.
  • Oct 20, 9:40 PM EDT: A user added this pull request to the Graphite merge queue.
  • Oct 20, 9:42 PM EDT: A user merged this pull request with the Graphite merge queue.

AliSajidImami
AliSajidImami previously approved these changes Oct 20, 2024
@AliSajid AliSajid force-pushed the 10-19-docs_update_the_readme.md_ branch from 5417210 to 30562ad Compare October 20, 2024 22:19
@AliSajid AliSajid force-pushed the 10-19-ci_add_selene_as_a_linter branch from 5b4cfd8 to 2ae7c6b Compare October 20, 2024 22:21
@AliSajid AliSajid changed the base branch from 10-19-docs_update_the_readme.md_ to main October 20, 2024 22:22
@AliSajid AliSajid dismissed AliSajidImami’s stale review October 20, 2024 22:22

The base branch was changed.

@AliSajid AliSajid changed the base branch from main to next October 21, 2024 01:05
@AliSajid AliSajid force-pushed the 10-19-ci_add_selene_as_a_linter branch from 2ae7c6b to 88591ff Compare October 21, 2024 01:06
AliSajidImami
AliSajidImami previously approved these changes Oct 21, 2024
@AliSajid AliSajid changed the base branch from next to main October 21, 2024 01:41
@AliSajid AliSajid dismissed AliSajidImami’s stale review October 21, 2024 01:41

The base branch was changed.

@graphite-app graphite-app bot merged commit 88591ff into main Oct 21, 2024
9 checks passed
@AliSajid AliSajid deleted the 10-19-ci_add_selene_as_a_linter branch October 21, 2024 02:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants