From 4e3b8cc8d3ca455382e00672b235d838488b1875 Mon Sep 17 00:00:00 2001 From: Lev Gorodetskiy Date: Mon, 23 Oct 2023 22:38:05 -0300 Subject: [PATCH] fmt to format --- docs/13.troubleshooting.md | 2 +- pyproject.toml | 6 +++--- src/demo_auction/README.md | 2 +- src/demo_auction/pyproject.toml | 4 ++-- src/demo_big_maps/README.md | 2 +- src/demo_big_maps/pyproject.toml | 4 ++-- src/demo_blank/README.md | 2 +- src/demo_blank/pyproject.toml | 4 ++-- src/demo_dao/README.md | 2 +- src/demo_dao/pyproject.toml | 4 ++-- src/demo_dex/README.md | 2 +- src/demo_dex/pyproject.toml | 4 ++-- src/demo_domains/README.md | 2 +- src/demo_domains/pyproject.toml | 4 ++-- src/demo_events/README.md | 2 +- src/demo_events/pyproject.toml | 4 ++-- src/demo_evm_events/README.md | 2 +- src/demo_evm_events/pyproject.toml | 4 ++-- src/demo_factories/README.md | 2 +- src/demo_factories/pyproject.toml | 4 ++-- src/demo_head/README.md | 2 +- src/demo_head/pyproject.toml | 4 ++-- src/demo_nft_marketplace/README.md | 2 +- src/demo_nft_marketplace/pyproject.toml | 4 ++-- src/demo_raw/README.md | 2 +- src/demo_raw/pyproject.toml | 4 ++-- src/demo_token/README.md | 2 +- src/demo_token/pyproject.toml | 4 ++-- src/demo_token_balances/README.md | 2 +- src/demo_token_balances/pyproject.toml | 4 ++-- src/demo_token_transfers/README.md | 2 +- src/demo_token_transfers/pyproject.toml | 4 ++-- src/demo_uniswap/README.md | 2 +- src/demo_uniswap/pyproject.toml | 4 ++-- src/dipdup/projects/base/README.md.j2 | 2 +- src/dipdup/projects/base/pyproject.toml.j2 | 4 ++-- 36 files changed, 55 insertions(+), 55 deletions(-) diff --git a/docs/13.troubleshooting.md b/docs/13.troubleshooting.md index 7545aff63..95a667fa7 100644 --- a/docs/13.troubleshooting.md +++ b/docs/13.troubleshooting.md @@ -78,7 +78,7 @@ Exceptions that occurred during callback execution are reraised as `CallbackErro ```shell [Terminal] # PDM -pdm fmt +pdm format pdm lint # Manually diff --git a/pyproject.toml b/pyproject.toml index 74d640208..a078580bc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 """ @@ -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"] diff --git a/src/demo_auction/README.md b/src/demo_auction/README.md index 2ae574ec4..cb7b8232b 100644 --- a/src/demo_auction/README.md +++ b/src/demo_auction/README.md @@ -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 diff --git a/src/demo_auction/pyproject.toml b/src/demo_auction/pyproject.toml index e903c5409..cacb7cb0e 100644 --- a/src/demo_auction/pyproject.toml +++ b/src/demo_auction/pyproject.toml @@ -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"] diff --git a/src/demo_big_maps/README.md b/src/demo_big_maps/README.md index 3f4d37887..939e14408 100644 --- a/src/demo_big_maps/README.md +++ b/src/demo_big_maps/README.md @@ -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 diff --git a/src/demo_big_maps/pyproject.toml b/src/demo_big_maps/pyproject.toml index 0b8be9e98..34a8fe495 100644 --- a/src/demo_big_maps/pyproject.toml +++ b/src/demo_big_maps/pyproject.toml @@ -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"] diff --git a/src/demo_blank/README.md b/src/demo_blank/README.md index 7429f9346..89e82dd7a 100644 --- a/src/demo_blank/README.md +++ b/src/demo_blank/README.md @@ -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 diff --git a/src/demo_blank/pyproject.toml b/src/demo_blank/pyproject.toml index d7b9a5f2a..efa4cb0c3 100644 --- a/src/demo_blank/pyproject.toml +++ b/src/demo_blank/pyproject.toml @@ -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"] diff --git a/src/demo_dao/README.md b/src/demo_dao/README.md index 1a49da48c..fcfba6d46 100644 --- a/src/demo_dao/README.md +++ b/src/demo_dao/README.md @@ -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 diff --git a/src/demo_dao/pyproject.toml b/src/demo_dao/pyproject.toml index ed8e09859..50ae1fde5 100644 --- a/src/demo_dao/pyproject.toml +++ b/src/demo_dao/pyproject.toml @@ -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"] diff --git a/src/demo_dex/README.md b/src/demo_dex/README.md index c12dde947..44ae6a1fc 100644 --- a/src/demo_dex/README.md +++ b/src/demo_dex/README.md @@ -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 diff --git a/src/demo_dex/pyproject.toml b/src/demo_dex/pyproject.toml index 7a78a63a4..c3daf40e7 100644 --- a/src/demo_dex/pyproject.toml +++ b/src/demo_dex/pyproject.toml @@ -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"] diff --git a/src/demo_domains/README.md b/src/demo_domains/README.md index 5d19bc536..e8f2411cc 100644 --- a/src/demo_domains/README.md +++ b/src/demo_domains/README.md @@ -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 diff --git a/src/demo_domains/pyproject.toml b/src/demo_domains/pyproject.toml index 83d7de114..16c94734c 100644 --- a/src/demo_domains/pyproject.toml +++ b/src/demo_domains/pyproject.toml @@ -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"] diff --git a/src/demo_events/README.md b/src/demo_events/README.md index e1f5558f2..bd7b32daa 100644 --- a/src/demo_events/README.md +++ b/src/demo_events/README.md @@ -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 diff --git a/src/demo_events/pyproject.toml b/src/demo_events/pyproject.toml index a0d28f383..b55e44f3f 100644 --- a/src/demo_events/pyproject.toml +++ b/src/demo_events/pyproject.toml @@ -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"] diff --git a/src/demo_evm_events/README.md b/src/demo_evm_events/README.md index 02a69909f..4dff84c1c 100644 --- a/src/demo_evm_events/README.md +++ b/src/demo_evm_events/README.md @@ -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 diff --git a/src/demo_evm_events/pyproject.toml b/src/demo_evm_events/pyproject.toml index 4a660e146..e5aa75e91 100644 --- a/src/demo_evm_events/pyproject.toml +++ b/src/demo_evm_events/pyproject.toml @@ -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"] diff --git a/src/demo_factories/README.md b/src/demo_factories/README.md index 3b024cdb4..33a4358ce 100644 --- a/src/demo_factories/README.md +++ b/src/demo_factories/README.md @@ -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 diff --git a/src/demo_factories/pyproject.toml b/src/demo_factories/pyproject.toml index c87acd14f..c8a0e0e4a 100644 --- a/src/demo_factories/pyproject.toml +++ b/src/demo_factories/pyproject.toml @@ -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"] diff --git a/src/demo_head/README.md b/src/demo_head/README.md index 664acf724..39909b33e 100644 --- a/src/demo_head/README.md +++ b/src/demo_head/README.md @@ -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 diff --git a/src/demo_head/pyproject.toml b/src/demo_head/pyproject.toml index f6a880e16..c7c75beac 100644 --- a/src/demo_head/pyproject.toml +++ b/src/demo_head/pyproject.toml @@ -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"] diff --git a/src/demo_nft_marketplace/README.md b/src/demo_nft_marketplace/README.md index 58ab05018..91fdd872d 100644 --- a/src/demo_nft_marketplace/README.md +++ b/src/demo_nft_marketplace/README.md @@ -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 diff --git a/src/demo_nft_marketplace/pyproject.toml b/src/demo_nft_marketplace/pyproject.toml index e1456fa61..5e40d518d 100644 --- a/src/demo_nft_marketplace/pyproject.toml +++ b/src/demo_nft_marketplace/pyproject.toml @@ -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"] diff --git a/src/demo_raw/README.md b/src/demo_raw/README.md index f18a2b146..75ad18113 100644 --- a/src/demo_raw/README.md +++ b/src/demo_raw/README.md @@ -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 diff --git a/src/demo_raw/pyproject.toml b/src/demo_raw/pyproject.toml index 0a0e4da86..099caeaa6 100644 --- a/src/demo_raw/pyproject.toml +++ b/src/demo_raw/pyproject.toml @@ -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"] diff --git a/src/demo_token/README.md b/src/demo_token/README.md index f275566f9..63fc8d44c 100644 --- a/src/demo_token/README.md +++ b/src/demo_token/README.md @@ -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 diff --git a/src/demo_token/pyproject.toml b/src/demo_token/pyproject.toml index 8e991f514..e6c9f32a2 100644 --- a/src/demo_token/pyproject.toml +++ b/src/demo_token/pyproject.toml @@ -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"] diff --git a/src/demo_token_balances/README.md b/src/demo_token_balances/README.md index 580ed8ec4..00d61eda6 100644 --- a/src/demo_token_balances/README.md +++ b/src/demo_token_balances/README.md @@ -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 diff --git a/src/demo_token_balances/pyproject.toml b/src/demo_token_balances/pyproject.toml index b25893c6e..84da18dc2 100644 --- a/src/demo_token_balances/pyproject.toml +++ b/src/demo_token_balances/pyproject.toml @@ -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"] diff --git a/src/demo_token_transfers/README.md b/src/demo_token_transfers/README.md index 812ecd61a..5145c7a0e 100644 --- a/src/demo_token_transfers/README.md +++ b/src/demo_token_transfers/README.md @@ -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 diff --git a/src/demo_token_transfers/pyproject.toml b/src/demo_token_transfers/pyproject.toml index 9ee68568a..f5c50888f 100644 --- a/src/demo_token_transfers/pyproject.toml +++ b/src/demo_token_transfers/pyproject.toml @@ -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"] diff --git a/src/demo_uniswap/README.md b/src/demo_uniswap/README.md index 1699a6161..e16afbec7 100644 --- a/src/demo_uniswap/README.md +++ b/src/demo_uniswap/README.md @@ -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 diff --git a/src/demo_uniswap/pyproject.toml b/src/demo_uniswap/pyproject.toml index 0edbcdadb..2cc453282 100644 --- a/src/demo_uniswap/pyproject.toml +++ b/src/demo_uniswap/pyproject.toml @@ -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"] diff --git a/src/dipdup/projects/base/README.md.j2 b/src/dipdup/projects/base/README.md.j2 index a13c3e2d9..abfb57901 100644 --- a/src/dipdup/projects/base/README.md.j2 +++ b/src/dipdup/projects/base/README.md.j2 @@ -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 diff --git a/src/dipdup/projects/base/pyproject.toml.j2 b/src/dipdup/projects/base/pyproject.toml.j2 index 77a96fb5b..b8152204d 100644 --- a/src/dipdup/projects/base/pyproject.toml.j2 +++ b/src/dipdup/projects/base/pyproject.toml.j2 @@ -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"]