Skip to content

Commit

Permalink
Run format:fix in the root directory
Browse files Browse the repository at this point in the history
This is a result of running the format:fix script.
  • Loading branch information
nkuba committed Nov 23, 2023
1 parent fb9478a commit 0976ac1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 17 deletions.
16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ please see the [documentation](https://pnpm.io/installation).
#### Package Dependencies

To install the packages dependencies run:

```sh
pnpm install
```
Expand All @@ -30,24 +31,25 @@ automatically discover code issues, before they submit the code.
To setup the hooks follow the steps:

1. Install `pre-commit` tool:
```sh
brew install pre-commit
```

```sh
brew install pre-commit
```

2. Install the hooks for the repository:
```sh
pre-commit install
```
```sh
pre-commit install
```

#### Testing

To test the pre-commit hooks configuration you can invoke them with one of the
commands:

```sh
# Execute hooks for all files:
pre-commit run --all-files

# Execute hooks for specific files (e.g. Acre.sol):
pre-commit run --files ./core/contracts/Acre.sol
```

20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"private": true,
"packageManager": "[email protected]",
"scripts": {
"format": "prettier --check .",
"format:fix": "prettier --write ."
},
"devDependencies": {
"@thesis/prettier-config": "github:thesis/prettier-config",
"prettier": "^3.1.0"
}
"private": true,
"packageManager": "[email protected]",
"scripts": {
"format": "prettier --check .",
"format:fix": "prettier --write ."
},
"devDependencies": {
"@thesis/prettier-config": "github:thesis/prettier-config",
"prettier": "^3.1.0"
}
}

0 comments on commit 0976ac1

Please sign in to comment.