From 4371df6657c3c8c872230db3a4fed51777e55bd8 Mon Sep 17 00:00:00 2001 From: saratomaz Date: Wed, 20 Nov 2024 10:29:36 +0000 Subject: [PATCH] Apply latests updates from old repo --- db_sync_tests/scripts/postgres-start.sh | 2 +- .../tests/full_sync_from_clean_state.py | 2 +- requirements-dev.txt | 3 ++- setup.cfg | 18 ++++++++++++++++++ 4 files changed, 22 insertions(+), 3 deletions(-) diff --git a/db_sync_tests/scripts/postgres-start.sh b/db_sync_tests/scripts/postgres-start.sh index f50a6436..a34f876f 100755 --- a/db_sync_tests/scripts/postgres-start.sh +++ b/db_sync_tests/scripts/postgres-start.sh @@ -1,4 +1,4 @@ -#! /usr/bin/env -S nix develop --accept-flake-config .#postgres -i -k PGHOST -k PGPORT -k PGUSER -c bash +#! /usr/bin/env -S nix develop --accept-flake-config github:input-output-hk/cardano-node-tests#postgres -i -k PGHOST -k PGPORT -k PGUSER -c bash # shellcheck shell=bash set -euo pipefail diff --git a/db_sync_tests/tests/full_sync_from_clean_state.py b/db_sync_tests/tests/full_sync_from_clean_state.py index e6e35a68..e2403960 100644 --- a/db_sync_tests/tests/full_sync_from_clean_state.py +++ b/db_sync_tests/tests/full_sync_from_clean_state.py @@ -172,7 +172,7 @@ def main(): NODE_DIR=clone_repo('cardano-node', node_version_from_gh_action) os.chdir(NODE_DIR) execute_command("nix build -v .#cardano-node -o cardano-node-bin") - execute_command("nix build -v --debug .#cardano-cli -o cardano-cli-bin") + execute_command("nix-build -v -A cardano-cli -o cardano-cli-bin") print("--- Node setup") copy_node_executables(build_method="nix") diff --git a/requirements-dev.txt b/requirements-dev.txt index 0f89e9b8..d545e539 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -3,6 +3,7 @@ # linting mypy pre-commit -pylint +pylint==2.15.5 types-PyYAML types-requests + diff --git a/setup.cfg b/setup.cfg index ae1ebb57..b0ad32d7 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,3 +1,19 @@ +[flake8] +ignore = E128,E811,W503,E203,PT001,PT004,PT007,PT012,PT018,PT023,PL123 +max_line_length = 100 + +[pydocstyle] +inherit = false +# google convention + D413 +ignore = D10,D203,D212,D213,D214,D215,D404,D405,D406,D407,D408,D409,D410,D411,D413 +match = .*\.py + +[rstcheck] +ignore_directives = + automodule, + mdinclude, +ignore_messages=(Undefined substitution referenced: \":) + [metadata] name = cardano-sync-tests url = https://github.com/IntersectMBO/cardano-sync-tests @@ -11,6 +27,7 @@ classifiers = Programming Language :: Python :: 3 Programming Language :: Python :: 3.8 Programming Language :: Python :: 3.9 + Programming Language :: Python :: 3.10 Intended Audience :: Developers [options] @@ -29,3 +46,4 @@ install_requires = pymysql requests setuptools >= 60.5.0 +