diff --git a/.gitignore b/.gitignore index 1f10a2bf..f9985260 100644 --- a/.gitignore +++ b/.gitignore @@ -1,28 +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 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 42a00dd6..47a52fc0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,14 +1,14 @@ 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 diff --git a/pyproject.toml b/pyproject.toml index 07ecbee3..2783d137 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -121,12 +121,6 @@ indent-style = "space" "**/__init__.py" = [ "F401", # Unused imports ] -"**/{scripts}/*" = [ - "D", # Everything from the pydocstyle - "INP001", # File {filename} is part of an implicit namespace package, add an __init__.py - "PLR2004", # Magic value used in comparison, consider replacing {value} with a constant variable - "T20", # flake8-print -] "**/{tests}/*" = [ "D", # Everything from the pydocstyle "INP001", # File {filename} is part of an implicit namespace package, add an __init__.py @@ -169,7 +163,7 @@ timeout = 1200 [tool.mypy] python_version = "3.9" plugins = ["pydantic.mypy"] -files = ["scripts", "src", "tests"] +files = ["src", "tests"] check_untyped_defs = true disallow_incomplete_defs = true disallow_untyped_calls = true 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*