Skip to content

Commit

Permalink
limit pre-commit to python, yaml, json & toml
Browse files Browse the repository at this point in the history
  • Loading branch information
bimac committed Sep 13, 2023
1 parent f31aca3 commit ecbbb0c
Show file tree
Hide file tree
Showing 85 changed files with 28,184 additions and 28,205 deletions.
2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ exclude =
.git,
scratch_*.py,
Bonsai,
venv*
venv*
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,3 @@ app.log
/.idea/*
/venv/
*.autosave
build
5 changes: 4 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@ repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
types_or: [python, yaml, json, toml]
- id: trailing-whitespace
types_or: [python, yaml, json, toml]
- id: check-yaml
- id: check-json
- id: check-toml

- repo: https://github.com/pycqa/flake8
Expand Down
2 changes: 1 addition & 1 deletion Bonsai/Bonsai.config
Original file line number Diff line number Diff line change
Expand Up @@ -180,4 +180,4 @@
<LibraryFolder path="Packages\Rhythm.Net.1.5.0\build\native\bin\x64" platform="x64" />
<LibraryFolder path="Packages\Rhythm.Net.1.5.0\build\native\bin\x86" platform="x86" />
</LibraryFolders>
</PackageConfiguration>
</PackageConfiguration>
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
<HintPath>$(MSBuildThisFileDirectory)..\..\build\net45\bin\x64\FlyCapture2Managed_v100.dll</HintPath>
</Reference>
</ItemGroup>
</Project>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@
</None>
</ItemGroup>
</Target>
</Project>
</Project>
2 changes: 1 addition & 1 deletion Bonsai/install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ if (!(Test-Path "./Bonsai.exe")) {
Expand-Archive "temp.zip" -DestinationPath "." -Force
Remove-Item -Path "temp.zip"
}
& .\Bonsai.exe --no-editor
& .\Bonsai.exe --no-editor
2 changes: 1 addition & 1 deletion Bonsai/setup.bat
Original file line number Diff line number Diff line change
@@ -1 +1 @@
powershell -ExecutionPolicy Bypass -File .\install.ps1
powershell -ExecutionPolicy Bypass -File .\install.ps1
2 changes: 1 addition & 1 deletion devices/camera_recordings/Extensions/GetFrameData.bonsai
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,4 @@
<Edge From="15" To="16" Label="Source1" />
</Edges>
</Workflow>
</WorkflowBuilder>
</WorkflowBuilder>
2 changes: 1 addition & 1 deletion devices/camera_recordings/Osc.config
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
<RemoteHostName>127.0.0.1</RemoteHostName>
<RemotePort>0</RemotePort>
</TransportConfiguration>
</TransportConfigurationSettings>
</TransportConfigurationSettings>
Original file line number Diff line number Diff line change
Expand Up @@ -136,4 +136,4 @@
<Edge From="17" To="18" Label="Source1" />
</Edges>
</Workflow>
</WorkflowBuilder>
</WorkflowBuilder>
Original file line number Diff line number Diff line change
Expand Up @@ -234,4 +234,4 @@
</Size>
<WindowState>Normal</WindowState>
</DialogSettings>
</VisualizerLayout>
</VisualizerLayout>
2 changes: 1 addition & 1 deletion devices/camera_recordings/one_camera.bonsai.layout
Original file line number Diff line number Diff line change
Expand Up @@ -482,4 +482,4 @@
</Size>
<WindowState>Normal</WindowState>
</DialogSettings>
</VisualizerLayout>
</VisualizerLayout>
2 changes: 1 addition & 1 deletion devices/camera_setup/setup_video.bonsai
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,4 @@
<Edge From="13" To="14" Label="Source1" />
</Edges>
</Workflow>
</WorkflowBuilder>
</WorkflowBuilder>
2 changes: 1 addition & 1 deletion devices/camera_setup/setup_video.bonsai.layout
Original file line number Diff line number Diff line change
Expand Up @@ -219,4 +219,4 @@
<IplImageVisualizer />
</VisualizerSettings>
</DialogSettings>
</VisualizerLayout>
</VisualizerLayout>
2 changes: 1 addition & 1 deletion devices/harp_photodiode/photodiode_harp.bonsai
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@
<Edge From="1" To="2" Label="Source1" />
</Edges>
</Workflow>
</WorkflowBuilder>
</WorkflowBuilder>
2 changes: 1 addition & 1 deletion devices/harp_photodiode/photodiode_harp.bonsai.layout
Original file line number Diff line number Diff line change
Expand Up @@ -112,4 +112,4 @@
</DialogSettings>
</EditorVisualizerLayout>
</DialogSettings>
</VisualizerLayout>
</VisualizerLayout>
Original file line number Diff line number Diff line change
Expand Up @@ -469,4 +469,4 @@ def process(value):
<Edge From="25" To="26" Label="Source1" />
</Edges>
</Workflow>
</WorkflowBuilder>
</WorkflowBuilder>
Original file line number Diff line number Diff line change
Expand Up @@ -542,4 +542,4 @@
</DialogSettings>
</EditorVisualizerLayout>
</DialogSettings>
</VisualizerLayout>
</VisualizerLayout>
2 changes: 1 addition & 1 deletion devices/microphone/record_mic.bonsai
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,4 @@
<Edge From="9" To="10" Label="Source1" />
</Edges>
</Workflow>
</WorkflowBuilder>
</WorkflowBuilder>
2 changes: 1 addition & 1 deletion devices/microphone/record_mic.bonsai.layout
Original file line number Diff line number Diff line change
Expand Up @@ -146,4 +146,4 @@
</Size>
<WindowState>Normal</WindowState>
</DialogSettings>
</VisualizerLayout>
</VisualizerLayout>
2 changes: 1 addition & 1 deletion devices/screen_calibration/AppleLCD_EDID.txt

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions devices/screen_calibration/instructions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ Hue -> 0

Click on Apply (bottom right of the window)
Close the Nvidia control panel.

2 changes: 1 addition & 1 deletion devices/screen_calibration/wrkflws/Extensions/range.bonsai
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,4 @@
<Edge From="12" To="13" Label="Source1" />
</Edges>
</Workflow>
</WorkflowBuilder>
</WorkflowBuilder>
Original file line number Diff line number Diff line change
Expand Up @@ -179,4 +179,4 @@
</Size>
<WindowState>Normal</WindowState>
</DialogSettings>
</VisualizerLayout>
</VisualizerLayout>
2 changes: 1 addition & 1 deletion devices/screen_calibration/wrkflws/Osc.config
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
<RemoteHostName>localhost</RemoteHostName>
<RemotePort>6668</RemotePort>
</TransportConfiguration>
</TransportConfigurationSettings>
</TransportConfigurationSettings>
2 changes: 1 addition & 1 deletion devices/screen_calibration/wrkflws/Shaders.config
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@
<QuadEffects>None</QuadEffects>
</MeshConfiguration>
</Meshes>
</ShaderWindowSettings>
</ShaderWindowSettings>
Loading

0 comments on commit ecbbb0c

Please sign in to comment.