-
-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e19e3c4
commit ae26621
Showing
6 changed files
with
76 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
- id: selene-system | ||
name: selene (system) | ||
description: An opinionated Lua code linter | ||
entry: selene | ||
language: system | ||
types: [lua] | ||
|
||
- id: selene-docker | ||
name: selene (docker) | ||
description: An opinionated Lua code linter | ||
entry: /selene | ||
language: docker | ||
types: [lua] | ||
|
||
- id: selene-github | ||
name: selene (GitHub) | ||
description: An opinionated Lua code linter | ||
entry: selene | ||
language: python | ||
types: [lua] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Pre-commit | ||
|
||
`pre-commit` allows integration of `selene` into your Git workflow using git hooks. After [installing pre-commit](https://pre-commit.com/#install), add one of the following configurations to your `.pre-commit-config.yaml` file: | ||
|
||
* Use the `selene` binary present on the system path (Should be pre-installed): | ||
|
||
```yaml | ||
repos: | ||
- repo: https://github.com/Kampfkarren/selene | ||
rev: '' | ||
hooks: | ||
- id: selene-system | ||
``` | ||
* Use `selene` through GitHub releases: | ||
|
||
```yaml | ||
repos: | ||
- repo: https://github.com/Kampfkarren/selene | ||
rev: '' | ||
hooks: | ||
- id: selene-github | ||
``` | ||
|
||
* Use the `selene` binary present in the `selene` docker image (Since this uses docker, it might take some time to bootstrap and is slower than the other two options): | ||
|
||
```yaml | ||
repos: | ||
- repo: https://github.com/Kampfkarren/selene | ||
rev: '' | ||
hooks: | ||
- id: selene-docker | ||
``` | ||
|
||
You may see a `warning` being generated when pre-commit runs. To resolve that, set the `rev` key to any selene tag or commit, for e.g. `rev: '0.26.2'`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[build-system] | ||
requires = ["release-gitter[builder]"] | ||
build-backend = "pseudo_builder" | ||
|
||
[tool.release-gitter] | ||
git-url = "https://github.com/Kampfkarren/selene" | ||
extract-files = ["selene"] | ||
format = "selene-{version}-{system}.zip" | ||
|
||
[tool.release-gitter.map-system] | ||
Darwin = "macos" | ||
Windows = "windows" | ||
Linux = "linux" |