-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DEVOPS-1591] Install pre-commit, and fix all files (#12)
Install pre-commit, and fix all files
- Loading branch information
1 parent
bbc288b
commit ed3b10e
Showing
50 changed files
with
74 additions
and
24 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
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,29 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.2.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-added-large-files | ||
- id: check-shebang-scripts-are-executable | ||
- id: check-executables-have-shebangs | ||
|
||
- repo: https://github.com/shellcheck-py/shellcheck-py | ||
rev: v0.9.0.5 | ||
hooks: | ||
- id: shellcheck | ||
args: ["-x"] | ||
|
||
- repo: https://github.com/hadolint/hadolint.git | ||
rev: v2.12.1-beta | ||
hooks: | ||
- id: hadolint-docker | ||
entry: hadolint/hadolint:v2.12.1-beta hadolint | ||
|
||
# Lint: YAML | ||
- repo: https://github.com/adrienverge/yamllint.git | ||
rev: v1.32.0 | ||
hooks: | ||
- id: yamllint | ||
args: [ "-d {extends: relaxed, rules: {line-length: disable}}", "-s" ] | ||
files: \.(yaml|yml)$ |
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 |
---|---|---|
|
@@ -35,14 +35,14 @@ We welcome many different types of contributions including: | |
To begin contributing changes to notebook kernels, you'll need to setup your local environment | ||
|
||
### Requirements | ||
- `python`: Version depending on which kernels being built | ||
- `docker`: For building and testing images | ||
- `python`: Version depending on which kernels being built | ||
- `docker`: For building and testing images | ||
|
||
### Setup | ||
```shell | ||
### Setup | ||
```shell | ||
git clone [email protected]:noteable-io/kernels | ||
cd kernels/$kernel/ | ||
# Make proposed edits as needed | ||
cd kernels/$kernel/ | ||
# Make proposed edits as needed | ||
docker buildx bake <target> | ||
``` | ||
|
||
|
@@ -63,4 +63,4 @@ before you submit your code: | |
- [ ] I am able to build images locally | ||
- [ ] Has the issue it resolves been discussed with maintainers? | ||
|
||
**Note**: This checklist is also part of the pull request template for this project | ||
**Note**: This checklist is also part of the pull request template for this project |
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
Empty file.
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
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
conda-forge::cudatoolkit=11.7.0 | ||
nvidia::cuda-nvcc=11.3.58 | ||
nvidia::cuda-nvcc=11.3.58 |
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 |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
auto_update_conda: false | ||
show_channel_urls: true | ||
channels: | ||
- conda-forge | ||
- conda-forge |
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
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
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 |
---|---|---|
@@ -1 +1 @@ | ||
ipykernel==6.23.3 | ||
ipykernel==6.23.3 |
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
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 |
---|---|---|
|
@@ -2,4 +2,4 @@ tensorflow==2.12.* | |
torch==2.* | ||
torchvision==0.15.* | ||
torchaudio==2.* | ||
fastai | ||
fastai |
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
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 |
---|---|---|
|
@@ -66,4 +66,4 @@ def main(stdin=sys.stdin, stdout=sys.stdout): | |
|
||
|
||
if __name__ == "__main__": | ||
main() | ||
main() |
Empty file.
Empty file.
Empty file.
Empty file.