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 a077b6e
Show file tree
Hide file tree
Showing 3 changed files with 15 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/prettier_action@v4.3
with:
dry: true
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 a077b6e

Please sign in to comment.