Skip to content

Commit

Permalink
Revert all files outside of openhands/storage/ back to main
Browse files Browse the repository at this point in the history
  • Loading branch information
openhands-agent committed Feb 19, 2025
1 parent 9d5d39c commit 0ce7331
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 60 deletions.
12 changes: 0 additions & 12 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,20 +51,8 @@ jobs:
cache: 'pip'
- name: Install pre-commit
run: pip install pre-commit==3.7.0
- name: Install project in editable mode
run: pip install -e .
- name: Run pre-commit hooks
run: pre-commit run --files openhands/**/* evaluation/**/* tests/**/* --show-diff-on-failure --config ./dev_config/python/.pre-commit-config.yaml
- name: Run mypy directly (for better error reporting)
if: always() # Run even if pre-commit fails
run: |
pip install mypy==1.9.0 \
types-requests types-setuptools types-pyyaml types-toml \
types-redis types-protobuf types-python-dateutil types-pyjwt \
types-docutils types-Pillow types-boto3 types-cryptography \
types-Jinja2 types-MarkupSafe types-click types-filelock \
types-decorator types-docopt types-emoji types-enum34 types-paramiko
PYTHONPATH=$PWD mypy --config-file dev_config/python/mypy.ini --scripts-are-modules openhands/

# Check version consistency across documentation
check-version-consistency:
Expand Down
26 changes: 2 additions & 24 deletions dev_config/python/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,30 +36,8 @@ repos:
rev: v1.9.0
hooks:
- id: mypy
name: mypy (with strict type checking)
additional_dependencies:
- types-requests
- types-setuptools
- types-pyyaml
- types-toml
- types-redis
- types-protobuf
- types-python-dateutil
- types-pyjwt
- types-docutils
- types-Pillow
- types-boto3
- types-cryptography
- types-Jinja2
- types-MarkupSafe
- types-click
- types-filelock
- types-decorator
- types-docopt
- types-emoji
- types-enum34
- types-paramiko
entry: mypy --config-file dev_config/python/mypy.ini --scripts-are-modules openhands/
[types-requests, types-setuptools, types-pyyaml, types-toml]
entry: mypy --config-file dev_config/python/mypy.ini openhands/
always_run: true
pass_filenames: false
verbose: true
28 changes: 4 additions & 24 deletions dev_config/python/mypy.ini
Original file line number Diff line number Diff line change
@@ -1,29 +1,9 @@
[mypy]
# Error output
show_error_codes = True
pretty = True
show_column_numbers = True

# Import discovery
warn_unused_configs = True
ignore_missing_imports = True
follow_imports = normal

# Untyped definitions and calls
disallow_untyped_defs = True
check_untyped_defs = True
disallow_incomplete_defs = True
disallow_untyped_decorators = True

# None and Optional handling
explicit_package_bases = True
warn_unreachable = True
warn_redundant_casts = True
no_implicit_optional = True
strict_optional = True

# Warnings
warn_unused_configs = True
warn_redundant_casts = True
warn_unused_ignores = True
warn_return_any = True
warn_unreachable = True

# Misc
explicit_package_bases = True

0 comments on commit 0ce7331

Please sign in to comment.