Skip to content

Commit

Permalink
fmt to format
Browse files Browse the repository at this point in the history
  • Loading branch information
droserasprout committed Oct 24, 2023
1 parent 77b8c75 commit 4e3b8cc
Show file tree
Hide file tree
Showing 36 changed files with 55 additions and 55 deletions.
2 changes: 1 addition & 1 deletion docs/13.troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ Exceptions that occurred during callback execution are reraised as `CallbackErro

```shell [Terminal]
# PDM
pdm fmt
pdm format
pdm lint
# Manually
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,14 @@ _mypy = "mypy src tests scripts"

[tool.pdm.scripts.all]
help = "Run all checks"
composite = ["fmt", "lint", "test"]
composite = ["format", "lint", "test"]

[tool.pdm.scripts.demos]
help = "Recreate demo projects from templates"
shell = """
python scripts/update_demos.py
python scripts/init_demos.py
pdm run fmt
pdm run format
pdm run lint
"""

Expand All @@ -140,7 +140,7 @@ cmd = "python scripts/dump_references.py"
help = "Find FIXME and TODO comments"
cmd = "grep -r -e 'FIXME: ' -e 'TODO: ' -e 'type: ignore' -n src/dipdup --color"

[tool.pdm.scripts.fmt]
[tool.pdm.scripts.format]
help = "Format code with black"
composite = ["_black"]

Expand Down
2 changes: 1 addition & 1 deletion src/demo_auction/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Some tools are included to help you keep the code quality high: black, ruff and

```shell
# Format code
pdm fmt
pdm format

# Lint code
pdm lint
Expand Down
4 changes: 2 additions & 2 deletions src/demo_auction/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ _mypy = "mypy --no-incremental --exclude demo_auction ."

[tool.pdm.scripts.all]
help = "Run all checks"
composite = ["fmt", "lint"]
composite = ["format", "lint"]

[tool.pdm.scripts.fmt]
[tool.pdm.scripts.format]
help = "Format code with isort and black"
composite = ["_isort", "_black"]

Expand Down
2 changes: 1 addition & 1 deletion src/demo_big_maps/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Some tools are included to help you keep the code quality high: black, ruff and

```shell
# Format code
pdm fmt
pdm format

# Lint code
pdm lint
Expand Down
4 changes: 2 additions & 2 deletions src/demo_big_maps/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ _mypy = "mypy --no-incremental --exclude demo_big_maps ."

[tool.pdm.scripts.all]
help = "Run all checks"
composite = ["fmt", "lint"]
composite = ["format", "lint"]

[tool.pdm.scripts.fmt]
[tool.pdm.scripts.format]
help = "Format code with isort and black"
composite = ["_isort", "_black"]

Expand Down
2 changes: 1 addition & 1 deletion src/demo_blank/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Some tools are included to help you keep the code quality high: black, ruff and

```shell
# Format code
pdm fmt
pdm format

# Lint code
pdm lint
Expand Down
4 changes: 2 additions & 2 deletions src/demo_blank/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ _mypy = "mypy --no-incremental --exclude demo_blank ."

[tool.pdm.scripts.all]
help = "Run all checks"
composite = ["fmt", "lint"]
composite = ["format", "lint"]

[tool.pdm.scripts.fmt]
[tool.pdm.scripts.format]
help = "Format code with isort and black"
composite = ["_isort", "_black"]

Expand Down
2 changes: 1 addition & 1 deletion src/demo_dao/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Some tools are included to help you keep the code quality high: black, ruff and

```shell
# Format code
pdm fmt
pdm format

# Lint code
pdm lint
Expand Down
4 changes: 2 additions & 2 deletions src/demo_dao/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ _mypy = "mypy --no-incremental --exclude demo_dao ."

[tool.pdm.scripts.all]
help = "Run all checks"
composite = ["fmt", "lint"]
composite = ["format", "lint"]

[tool.pdm.scripts.fmt]
[tool.pdm.scripts.format]
help = "Format code with isort and black"
composite = ["_isort", "_black"]

Expand Down
2 changes: 1 addition & 1 deletion src/demo_dex/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Some tools are included to help you keep the code quality high: black, ruff and

```shell
# Format code
pdm fmt
pdm format

# Lint code
pdm lint
Expand Down
4 changes: 2 additions & 2 deletions src/demo_dex/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ _mypy = "mypy --no-incremental --exclude demo_dex ."

[tool.pdm.scripts.all]
help = "Run all checks"
composite = ["fmt", "lint"]
composite = ["format", "lint"]

[tool.pdm.scripts.fmt]
[tool.pdm.scripts.format]
help = "Format code with isort and black"
composite = ["_isort", "_black"]

Expand Down
2 changes: 1 addition & 1 deletion src/demo_domains/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Some tools are included to help you keep the code quality high: black, ruff and

```shell
# Format code
pdm fmt
pdm format

# Lint code
pdm lint
Expand Down
4 changes: 2 additions & 2 deletions src/demo_domains/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ _mypy = "mypy --no-incremental --exclude demo_domains ."

[tool.pdm.scripts.all]
help = "Run all checks"
composite = ["fmt", "lint"]
composite = ["format", "lint"]

[tool.pdm.scripts.fmt]
[tool.pdm.scripts.format]
help = "Format code with isort and black"
composite = ["_isort", "_black"]

Expand Down
2 changes: 1 addition & 1 deletion src/demo_events/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Some tools are included to help you keep the code quality high: black, ruff and

```shell
# Format code
pdm fmt
pdm format

# Lint code
pdm lint
Expand Down
4 changes: 2 additions & 2 deletions src/demo_events/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ _mypy = "mypy --no-incremental --exclude demo_events ."

[tool.pdm.scripts.all]
help = "Run all checks"
composite = ["fmt", "lint"]
composite = ["format", "lint"]

[tool.pdm.scripts.fmt]
[tool.pdm.scripts.format]
help = "Format code with isort and black"
composite = ["_isort", "_black"]

Expand Down
2 changes: 1 addition & 1 deletion src/demo_evm_events/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Some tools are included to help you keep the code quality high: black, ruff and

```shell
# Format code
pdm fmt
pdm format

# Lint code
pdm lint
Expand Down
4 changes: 2 additions & 2 deletions src/demo_evm_events/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ _mypy = "mypy --no-incremental --exclude demo_evm_events ."

[tool.pdm.scripts.all]
help = "Run all checks"
composite = ["fmt", "lint"]
composite = ["format", "lint"]

[tool.pdm.scripts.fmt]
[tool.pdm.scripts.format]
help = "Format code with isort and black"
composite = ["_isort", "_black"]

Expand Down
2 changes: 1 addition & 1 deletion src/demo_factories/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Some tools are included to help you keep the code quality high: black, ruff and

```shell
# Format code
pdm fmt
pdm format

# Lint code
pdm lint
Expand Down
4 changes: 2 additions & 2 deletions src/demo_factories/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ _mypy = "mypy --no-incremental --exclude demo_factories ."

[tool.pdm.scripts.all]
help = "Run all checks"
composite = ["fmt", "lint"]
composite = ["format", "lint"]

[tool.pdm.scripts.fmt]
[tool.pdm.scripts.format]
help = "Format code with isort and black"
composite = ["_isort", "_black"]

Expand Down
2 changes: 1 addition & 1 deletion src/demo_head/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Some tools are included to help you keep the code quality high: black, ruff and

```shell
# Format code
pdm fmt
pdm format

# Lint code
pdm lint
Expand Down
4 changes: 2 additions & 2 deletions src/demo_head/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ _mypy = "mypy --no-incremental --exclude demo_head ."

[tool.pdm.scripts.all]
help = "Run all checks"
composite = ["fmt", "lint"]
composite = ["format", "lint"]

[tool.pdm.scripts.fmt]
[tool.pdm.scripts.format]
help = "Format code with isort and black"
composite = ["_isort", "_black"]

Expand Down
2 changes: 1 addition & 1 deletion src/demo_nft_marketplace/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Some tools are included to help you keep the code quality high: black, ruff and

```shell
# Format code
pdm fmt
pdm format

# Lint code
pdm lint
Expand Down
4 changes: 2 additions & 2 deletions src/demo_nft_marketplace/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ _mypy = "mypy --no-incremental --exclude demo_nft_marketplace ."

[tool.pdm.scripts.all]
help = "Run all checks"
composite = ["fmt", "lint"]
composite = ["format", "lint"]

[tool.pdm.scripts.fmt]
[tool.pdm.scripts.format]
help = "Format code with isort and black"
composite = ["_isort", "_black"]

Expand Down
2 changes: 1 addition & 1 deletion src/demo_raw/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Some tools are included to help you keep the code quality high: black, ruff and

```shell
# Format code
pdm fmt
pdm format

# Lint code
pdm lint
Expand Down
4 changes: 2 additions & 2 deletions src/demo_raw/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ _mypy = "mypy --no-incremental --exclude demo_raw ."

[tool.pdm.scripts.all]
help = "Run all checks"
composite = ["fmt", "lint"]
composite = ["format", "lint"]

[tool.pdm.scripts.fmt]
[tool.pdm.scripts.format]
help = "Format code with isort and black"
composite = ["_isort", "_black"]

Expand Down
2 changes: 1 addition & 1 deletion src/demo_token/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Some tools are included to help you keep the code quality high: black, ruff and

```shell
# Format code
pdm fmt
pdm format

# Lint code
pdm lint
Expand Down
4 changes: 2 additions & 2 deletions src/demo_token/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ _mypy = "mypy --no-incremental --exclude demo_token ."

[tool.pdm.scripts.all]
help = "Run all checks"
composite = ["fmt", "lint"]
composite = ["format", "lint"]

[tool.pdm.scripts.fmt]
[tool.pdm.scripts.format]
help = "Format code with isort and black"
composite = ["_isort", "_black"]

Expand Down
2 changes: 1 addition & 1 deletion src/demo_token_balances/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Some tools are included to help you keep the code quality high: black, ruff and

```shell
# Format code
pdm fmt
pdm format

# Lint code
pdm lint
Expand Down
4 changes: 2 additions & 2 deletions src/demo_token_balances/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ _mypy = "mypy --no-incremental --exclude demo_token_balances ."

[tool.pdm.scripts.all]
help = "Run all checks"
composite = ["fmt", "lint"]
composite = ["format", "lint"]

[tool.pdm.scripts.fmt]
[tool.pdm.scripts.format]
help = "Format code with isort and black"
composite = ["_isort", "_black"]

Expand Down
2 changes: 1 addition & 1 deletion src/demo_token_transfers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Some tools are included to help you keep the code quality high: black, ruff and

```shell
# Format code
pdm fmt
pdm format

# Lint code
pdm lint
Expand Down
4 changes: 2 additions & 2 deletions src/demo_token_transfers/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ _mypy = "mypy --no-incremental --exclude demo_token_transfers ."

[tool.pdm.scripts.all]
help = "Run all checks"
composite = ["fmt", "lint"]
composite = ["format", "lint"]

[tool.pdm.scripts.fmt]
[tool.pdm.scripts.format]
help = "Format code with isort and black"
composite = ["_isort", "_black"]

Expand Down
2 changes: 1 addition & 1 deletion src/demo_uniswap/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Some tools are included to help you keep the code quality high: black, ruff and

```shell
# Format code
pdm fmt
pdm format

# Lint code
pdm lint
Expand Down
4 changes: 2 additions & 2 deletions src/demo_uniswap/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ _mypy = "mypy --no-incremental --exclude demo_uniswap ."

[tool.pdm.scripts.all]
help = "Run all checks"
composite = ["fmt", "lint"]
composite = ["format", "lint"]

[tool.pdm.scripts.fmt]
[tool.pdm.scripts.format]
help = "Format code with isort and black"
composite = ["_isort", "_black"]

Expand Down
2 changes: 1 addition & 1 deletion src/dipdup/projects/base/README.md.j2
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Some tools are included to help you keep the code quality high: black, ruff and

```shell
# Format code
pdm fmt
pdm format

# Lint code
pdm lint
Expand Down
4 changes: 2 additions & 2 deletions src/dipdup/projects/base/pyproject.toml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ _mypy = "mypy --no-incremental --exclude {{ project.package }} ."

[tool.pdm.scripts.all]
help = "Run all checks"
composite = ["fmt", "lint"]
composite = ["format", "lint"]

[tool.pdm.scripts.fmt]
[tool.pdm.scripts.format]
help = "Format code with isort and black"
composite = ["_isort", "_black"]

Expand Down

0 comments on commit 4e3b8cc

Please sign in to comment.