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 6f4e111
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/prettier_action@v4.3
with:
prettier_plugins: '@prettier/plugin-solidity'
prettier_options: --check --plugin=prettier-plugin-solidity 'contracts/**/*.sol'

- name: Python lint
uses: cclauss/GitHub-Action-for-pylint@0.7.0
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 6f4e111

Please sign in to comment.