Track
ai-easy (AI/Engineering - Easy)
Task Description
Background
- Black formatting differs between Python 3.9 and 3.11
- W_Ethics Gate shows flaky behavior at threshold boundary (0.50)
Tasks
- Align Python version requirements in pyproject.toml (e.g. python>=3.10)
- Configure Black and Ruff consistently (version pin recommended)
- Add or update pre-commit hooks
- Add minimal reproducible test for threshold boundary
- Ensure CI passes on Python 3.10 and 3.11
Acceptance Criteria
pre-commit run --all-files passes locally
- CI is green (lint/type/security/unit)
- Boundary test is stable across 50 repeated runs
How to Start
make setup
make test
If tests fail, capture logs and share them in the issue.
Skills Needed
- Basic Python programming (>=3.10)
- Understanding of code formatting tools (Black, Ruff)
- Familiarity with pre-commit hooks
- Basic knowledge of unit testing (pytest)
- Ability to reproduce and debug flaky tests
- (Optional) Familiarity with floating-point precision issues
Learning Outcome
By completing this task, contributors will learn:
- How to stabilize CI pipelines across Python versions
- How to configure and enforce code formatting with pre-commit
- How to design minimal reproducible tests for flaky behavior
- How to debug boundary conditions involving floating-point values
- Best practices for contributing to a production-grade open source project
Resources & Guidance
Resources & Guidance
Relevant Files
pyproject.toml
.pre-commit-config.yaml
po_core/ethics/gate.py
tests/test_ethics_gate_min.py
Related Concepts
Tips
- Run
pre-commit run --all-files before pushing
- If CI fails, compare Python versions locally
Suggested Implementation Steps
Suggested Implementation Steps
- Run tests and confirm failure
2.Run formatter
pre-commit run --all-files
Prerequisites
Additional Context
No response
Track
ai-easy (AI/Engineering - Easy)
Task Description
Background
Tasks
Acceptance Criteria
pre-commit run --all-filespasses locallyHow to Start
make setup
make test
If tests fail, capture logs and share them in the issue.
Skills Needed
Learning Outcome
By completing this task, contributors will learn:
Resources & Guidance
Resources & Guidance
Relevant Files
pyproject.toml.pre-commit-config.yamlpo_core/ethics/gate.pytests/test_ethics_gate_min.pyRelated Concepts
Tips
pre-commit run --all-filesbefore pushingSuggested Implementation Steps
Suggested Implementation Steps
make test2.Run formatter
pre-commit run --all-files
Prerequisites
Additional Context
No response