Skip to content

Commit

Permalink
Adds prettier as a hook and github action
Browse files Browse the repository at this point in the history
  • Loading branch information
vzotova committed Aug 11, 2023
1 parent 06af750 commit 29808ec
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,13 @@ jobs:

- name: Solidty Lint
run: solhint 'contracts/**/*.sol'

- name: Prettify code
uses: creyD/[email protected]
with:
dry: true
prettier_plugins: prettier-plugin-solidity
prettier_options: --check contracts/**/*.sol

- name: Python lint
uses: cclauss/[email protected]
Expand Down
5 changes: 5 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
**/contracts/contracts/proxy/
**/contracts/contracts/StakingEscrow.sol
**/contracts/contracts/NuCypherToken.sol
**/contracts/test/proxy/
**/contracts/test/StakingEscrowTestSet.sol
4 changes: 4 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"plugins": ["prettier-plugin-solidity"],
"printWidth":100
}

0 comments on commit 29808ec

Please sign in to comment.