diff --git a/.gitignore b/.gitignore index 07dee620..f9985260 100644 --- a/.gitignore +++ b/.gitignore @@ -1,25 +1,53 @@ +# Cache __pycache__ .mypy_cache .pytest_cache .ruff_cache +# Virtual envs .venv .direnv .envrc .python-version +# Poetry +poetry.toml +poetry.lock + +# Mise +mise.toml +.mise.toml + +# Egg and build artifacts *.egg-info/ *.egg dist/ build/ -.coverage + +# Coverage reports +.coverage* htmlcov +# IDE, editors .vscode .idea .DS_Store +.nvim.lua +Session.vim +# Docs docs/changelog.md -# default folder for memory storage data +# Website build artifacts, node dependencies +website/build +website/node_modules +website/.yarn +website/.docusaurus +website/api-typedoc-generated.json +website/apify-shared-docspec-dump.jsonl +website/docspec-dump.jsonl +website/module_shortcuts.json +website/typedoc-types* + +# Default directory for memory storage storage/ diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b574f024..082c8f50 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,20 +1,20 @@ repos: - repo: local hooks: - - id: lint - name: Lint codebase + - id: lint-check + name: Lint check entry: make lint language: system pass_filenames: false - id: type-check - name: Type-check codebase + name: Type check entry: make type-check language: system pass_filenames: false - - id: check-async-docstrings - name: Check async docstrings + - id: async-docstrings-check + name: Async docstrings check entry: make check-async-docstrings language: system pass_filenames: false diff --git a/docs/index.md b/docs/index.md index c8d1d3f0..2afcf457 100644 --- a/docs/index.md +++ b/docs/index.md @@ -273,7 +273,7 @@ apify_client = ApifyClient('MY-APIFY-TOKEN') # Start an Actor and waits for it to finish finished_actor_run = apify_client.actor('username/actor-name').call() -# Starts an Actor and waits maximum 60s (1 minute) for the finish +# Starts an Actor and waits maximum 60s (1 minute) for the finish actor_run = apify_client.actor('username/actor-name').start(wait_for_finish=60) ``` @@ -304,7 +304,7 @@ while True: response = dataset_client.list_items(limit=limit, offset=offset) items = response.items total = response.total - + print(f'Fetched {len(items)} items') # Merge new items with other already loaded items diff --git a/website/.gitignore b/website/.gitignore deleted file mode 100644 index fde1c731..00000000 --- a/website/.gitignore +++ /dev/null @@ -1,23 +0,0 @@ -# Dependencies -/node_modules - -# Production -/build - -# Generated files -.docusaurus -.cache-loader -api-typedoc-generated.json -docspec-dump.jsonl -apify-shared-docspec-dump.jsonl -module_shortcuts.json - -# Misc -.env.local -.env.development.local -.env.test.local -.env.production.local - -npm-debug.log* -yarn-debug.log* -yarn-error.log*