Skip to content

πŸ™Œ OpenHands: AI-Driven Development

(chore) Fix linting issues across the codebase (#7336)

Engel Nystd9e40f721c22
diff --git a/Development.md b/Development.md
index b9499fb312..0f5baca141 100644
--- a/Development.md
+++ b/Development.md
@@ -141,4 +141,4 @@ Here's a guide to the important documentation files in the repository:
- `/evaluation/README.md`: Documentation for the evaluation framework and benchmarks
- `/microagents/README.md`: Information about the microagents architecture and implementation
- `/openhands/server/README.md`: Server implementation details and API documentation
-- `/openhands/runtime/README.md`: Documentation for the runtime environment and execution model
\ No newline at end of file
+- `/openhands/runtime/README.md`: Documentation for the runtime environment and execution model
diff --git a/docs/modules/usage/how-to/development-overview.md b/docs/modules/usage/how-to/development-overview.md
index 541a193fe3..325362d108 100644
--- a/docs/modules/usage/how-to/development-overview.md
+++ b/docs/modules/usage/how-to/development-overview.md
@@ -9,48 +9,48 @@ This guide provides an overview of the key documentation resources available in
## Core Documentation
### Project Fundamentals
-- **Main Project Overview** (`/README.md`)
+- **Main Project Overview** (`/README.md`)
The primary entry point for understanding OpenHands, including features and basic setup instructions.
-- **Development Guide** (`/Development.md`)
+- **Development Guide** (`/Development.md`)
Comprehensive guide for developers working on OpenHands, including setup, requirements, and development workflows.
-- **Contributing Guidelines** (`/CONTRIBUTING.md`)
+- **Contributing Guidelines** (`/CONTRIBUTING.md`)
Essential information for contributors, covering code style, PR process, and contribution workflows.
### Component Documentation
#### Frontend
-- **Frontend Application** (`/frontend/README.md`)
+- **Frontend Application** (`/frontend/README.md`)
Complete guide for setting up and developing the React-based frontend application.
#### Backend
-- **Backend Implementation** (`/openhands/README.md`)
+- **Backend Implementation** (`/openhands/README.md`)
Detailed documentation of the Python backend implementation and architecture.
-- **Server Documentation** (`/openhands/server/README.md`)
+- **Server Documentation** (`/openhands/server/README.md`)
Server implementation details, API documentation, and service architecture.
-- **Runtime Environment** (`/openhands/runtime/README.md`)
+- **Runtime Environment** (`/openhands/runtime/README.md`)
Documentation covering the runtime environment, execution model, and runtime configurations.
#### Infrastructure
-- **Container Documentation** (`/containers/README.md`)
+- **Container Documentation** (`/containers/README.md`)
Comprehensive information about Docker containers, deployment strategies, and container management.
### Testing and Evaluation
-- **Unit Testing Guide** (`/tests/unit/README.md`)
+- **Unit Testing Guide** (`/tests/unit/README.md`)
Instructions for writing, running, and maintaining unit tests.
-- **Evaluation Framework** (`/evaluation/README.md`)
+- **Evaluation Framework** (`/evaluation/README.md`)
Documentation for the evaluation framework, benchmarks, and performance testing.
### Advanced Features
-- **Microagents Architecture** (`/microagents/README.md`)
+- **Microagents Architecture** (`/microagents/README.md`)
Detailed information about the microagents architecture, implementation, and usage.
### Documentation Standards
-- **Documentation Style Guide** (`/docs/DOC_STYLE_GUIDE.md`)
+- **Documentation Style Guide** (`/docs/DOC_STYLE_GUIDE.md`)
Standards and guidelines for writing and maintaining project documentation.
## Getting Started with Development
@@ -71,4 +71,4 @@ When making changes to the codebase, please ensure that:
1. Relevant documentation is updated to reflect your changes
2. New features are documented in the appropriate README files
3. Any API changes are reflected in the server documentation
-4. Documentation follows the style guide in `/docs/DOC_STYLE_GUIDE.md`
\ No newline at end of file
+4. Documentation follows the style guide in `/docs/DOC_STYLE_GUIDE.md`
diff --git a/openhands/server/routes/settings.py b/openhands/server/routes/settings.py
index a953e7a005..8b682d793c 100644
--- a/openhands/server/routes/settings.py
+++ b/openhands/server/routes/settings.py
@@ -91,7 +91,7 @@ async def store_settings(
# Handle token updates immutably
if settings.unset_github_token:
- settings = settings.model_copy(update={"secrets_store": SecretStore()})
+ settings = settings.model_copy(update={'secrets_store': SecretStore()})
else: # Only merge if not unsetting tokens
if settings.provider_tokens:
@@ -168,10 +168,10 @@ def convert_to_settings(settings_with_token_data: POSTSettingsModel) -> Settings
tokens[provider] = ProviderToken(
token=SecretStr(token_value), user_id=None
)
-
+
# Create new SecretStore with tokens
- settings = settings.model_copy(update={"secrets_store": SecretStore(
- provider_tokens=tokens
- )})
+ settings = settings.model_copy(
+ update={'secrets_store': SecretStore(provider_tokens=tokens)}
+ )
- return settings
\ No newline at end of file
+ return settings