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 2a292b9
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ jobs:

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

- name: Prettify code
uses: creyD/[email protected]
with:
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
3 changes: 3 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"printWidth":100
}

0 comments on commit 2a292b9

Please sign in to comment.