Skip to content

Afloat setup permissions #16

New issue

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

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

Already on GitHub? # to your account

Merged
merged 16 commits into from
Sep 27, 2023
Merged
Show file tree
Hide file tree
Changes from all 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
13 changes: 13 additions & 0 deletions .githooks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

Choose a reason for hiding this comment

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

GPT summary of None - 2914ba:

  • Added a pre-commit hook to check if code style is correct before commit
  • If code style is incorrect, an error message is printed and the commit is aborted


diff=$(cargo fmt -- --check)
result=$?

if [[ ${result} -ne 0 ]] ; then
cat <<\EOF
There are some code style issues, run `cargo fmt` first.
EOF
exit 1
fi

exit 0
6 changes: 6 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ jobs:
rustup update nightly

Choose a reason for hiding this comment

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

GPT summary of 0fead3 - 1eecd5:

  • Added a job to check the format of the code
  • Updated the nightly and stable toolchains
  • Added the wasm32-unknown-unknown target to the nightly toolchain
  • Added rustfmt component
  • Added a check for all code formatting
  • Added a check for the release build

rustup update stable
rustup target add wasm32-unknown-unknown --toolchain nightly

- name: Check format
run: |
rustup component add rustfmt
cargo fmt --all -- --check

- name: Check Build
run: |
SKIP_WASM_BUILD=1 cargo check --release
Expand Down
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"Permill"

Choose a reason for hiding this comment

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

GPT summary of b03b0e - 0038eb:

  • Changed the value of editor.tabSize from 2 to 4
  • Enabled editor.formatOnSave
  • Changed github.gitProtocol to ssh

],
"task.allowAutomaticTasks": "on",
"editor.tabSize": 2,
"editor.tabSize": 4,
"editor.formatOnSave": true,
"github.gitProtocol": "ssh",
"[rust]": {
Expand Down
Loading