Skip to content

Commit

Permalink
Add formatting (0xSpaceShard#237) [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
FabijanC committed Aug 29, 2022
1 parent c8fe2eb commit 9497af4
Show file tree
Hide file tree
Showing 72 changed files with 1,903 additions and 1,020 deletions.
5 changes: 3 additions & 2 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@

## Checklist:

- [ ] No linter errors
- [ ] Performed a self-review of the code
- [ ] Applied formatting - `./scripts/format.sh`
- [ ] No linter errors - `./scripts/lint.sh`
- [ ] Performed code self-review
- [ ] Rebased to the last commit of the target branch (or merged it into my branch)
- [ ] Documented the changes
- [ ] Linked the issues which this PR resolves
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -609,9 +609,10 @@ poetry run starknet-devnet
./scripts/starknet_devnet_debug.sh
```

### Development - Lint
### Development - Format and lint

```text
./scripts/format.sh
./scripts/lint.sh
```

Expand Down
94 changes: 71 additions & 23 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ psutil = "~5.9.1"
jsonschema = "~3.2.0"
pytest-xdist = "~2.5.0"
pylint-quotes = "~0.2.3"
black = "~22.6"

[build-system]
requires = ["poetry-core>=1.0.0"]
Expand Down
5 changes: 5 additions & 0 deletions scripts/format.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

set -e

poetry run black $(git ls-files '*.py')
Loading

0 comments on commit 9497af4

Please sign in to comment.