diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 8c2afdaa..eddbec94 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -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 diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 00000000..6986c444 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,5 @@ +**/contracts/contracts/proxy/ +**/contracts/contracts/StakingEscrow.sol +**/contracts/contracts/NuCypherToken.sol +**/contracts/test/proxy/ +**/contracts/test/StakingEscrowTestSet.sol diff --git a/.prettierrc.json b/.prettierrc.json new file mode 100644 index 00000000..56928048 --- /dev/null +++ b/.prettierrc.json @@ -0,0 +1,3 @@ +{ + "printWidth":100 +} \ No newline at end of file