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

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

- name: Prettify code
uses: creyD/prettier_action@v4.3
with:
prettier_options: --check contracts/**/*.sol
prettier_plugins: @prettier/plugin-solidity
prettier_version: 2.8.1
dry: true

- 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
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 42dc13b

Please sign in to comment.