Spaces:
Configuration error
Configuration error
|
Download docs/contributing.md from varshithreddy1807/aria: direct link, hf CLI and curl.
- Browser
- Download file 1.31 kB
-
https://huggingface.co/spaces/varshithreddy1807/aria/resolve/main/docs/contributing.md
- Command line
-
hf download hf://spaces/varshithreddy1807/aria/docs/contributing.md
-
curl -L -o contributing.md https://huggingface.co/spaces/varshithreddy1807/aria/resolve/main/docs/contributing.md
1.31 kB
Contributing Guide
We welcome contributions to ARIA! Please follow these guidelines to set up your environment, write tests, and submit pull requests.
Development Workflow
Format & Style Checks: Ruff is used for linting and formatting. Run the following checks before committing code:
ruff check . ruff format --check .Format Code Automatically:
ruff format . ruff check --fix .Running the Test Suite: Run the full pytest suite to verify you did not introduce regressions:
pytest tests/ -vAlways target
pytest tests/explicitly — running barepytestfrom the root will traversedata/and fail on import errors from cloned repositories.
Coding Standards
- Backward Compatibility: Ensure 100% backward compatibility. Do not modify existing API routers or payload schemas.
- Centralized Configuration: Fetch all environment variables via
backend/settings.settings. Do not write directos.environ.get()calls in business logic. - Logging: Use standard loggers
logging.getLogger(__name__). Do not useprint()statements for diagnostic messages. - Middlewares: Make sure new HTTP features are implemented as modular Starlette/FastAPI middlewares where possible.