Skip to content

Commit 85b1ed2

Browse files
authored
Merge pull request #36 from BruinGrowly/claude/check-code-011CUp2Hr6Bt5FhZChxFkL2W
fix: Resolve codebase quality issues
2 parents a332816 + 400be4a commit 85b1ed2

File tree

6 files changed

+17
-8
lines changed

6 files changed

+17
-8
lines changed

.github/workflows/harmony-check.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
# Exit codes: 0=harmonious, 1=medium, 2=high, 3=critical
3535
# Note: Currently informational as source code itself has some disharmony
3636
# (main.py functions do more than their names suggest - great meta example!)
37-
find src -name "*.py" -type f | xargs harmonizer || {
37+
find harmonizer -name "*.py" -type f | xargs harmonizer || {
3838
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
3939
echo "⚠️ Source code has disharmony (demonstrates tool working!)"
4040
echo " This is a great example of semantic issues the tool catches."
@@ -76,7 +76,7 @@ jobs:
7676
echo "📋 Generating detailed JSON harmony report..."
7777
7878
# Generate JSON report for all Python files
79-
find src examples tests -name "*.py" -type f | xargs harmonizer --format json > harmony-report.json 2>/dev/null || true
79+
find harmonizer examples tests -name "*.py" -type f | xargs harmonizer --format json > harmony-report.json 2>/dev/null || true
8080
8181
# Display summary if report was generated
8282
if [ -f harmony-report.json ] && [ -s harmony-report.json ]; then
@@ -170,7 +170,7 @@ jobs:
170170
171171
# Use stricter threshold (0.3 instead of default 0.5)
172172
# This catches even minor semantic drift
173-
if find src -name "*.py" -type f | xargs harmonizer --threshold 0.3; then
173+
if find harmonizer -name "*.py" -type f | xargs harmonizer --threshold 0.3; then
174174
echo "✅ Code meets excellent harmony standards!"
175175
else
176176
echo ""

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,15 @@ We use `black` for code formatting and `flake8` for linting to ensure a consiste
5555
Before you commit your changes, please run `black` to automatically format your code:
5656

5757
```sh
58-
black src/ tests/
58+
black harmonizer/ tests/
5959
```
6060

6161
### Linting
6262

6363
You can check for any style issues or potential errors with `flake8`:
6464

6565
```sh
66-
flake8 src/ tests/
66+
flake8 harmonizer/ tests/
6767
```
6868

6969
Our Continuous Integration (CI) pipeline will automatically check for formatting and linting issues, so it's a good idea to run these tools locally before pushing your changes.

harmonizer/divine_invitation_engine_V2.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,14 @@ def infer_unknown_meaning(
451451

452452

453453
class GeopoliticalAnalyzer:
454-
"""Optimized geopolitical analysis"""
454+
"""
455+
Optimized geopolitical analysis
456+
457+
NOTE: This class is currently not integrated into the main analysis pipeline.
458+
It provides experimental capabilities for analyzing entity postures and relationships
459+
in a geopolitical context using the 4D semantic framework. Available for future
460+
extensions or custom use cases.
461+
"""
455462

456463
def __init__(self, vocab_manager: VocabularyManager, analyzer: SemanticAnalyzer):
457464
self.vocab = vocab_manager

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "PythonCodeHarmonizer"
7-
version = "1.1.0"
7+
version = "1.4.0"
88
description = "A semantic code debugger."
99
readme = "README.md"
1010
license = { file="LICENSE" }
@@ -16,6 +16,9 @@ classifiers = [
1616
[project.scripts]
1717
harmonizer = "harmonizer.main:run_cli"
1818

19+
[project.optional-dependencies]
20+
refactor = ["black>=24.4.2"]
21+
1922
[tool.setuptools.packages.find]
2023
where = ["."]
2124
include = ["harmonizer"]

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
pytest
22
black==24.4.2
33
astunparse==1.6.3
4-
astunparse==1.6.3
54
flake8
65
isort
76
pre-commit

0 commit comments

Comments
 (0)