Skip to content

Commit a68dc92

Browse files
nirgaclaude
andcommitted
feat: finalize ruff migration with lint:fix targets and npm scripts
- Add lint:fix target to all 31 project.json files for auto-fixing - Add npm scripts: 'lint' (CI mode) and 'lint:fix' (dev mode) - Update lint-staged to use lint:fix target for pre-commit hooks - Maintain separate CI and dev workflows: - CI: npx nx affected -t lint (fix: false) - detects issues - Pre-commit: npx nx affected -t lint:fix (fix: true) - auto-fixes - GitHub CI already correctly configured with lint target 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 8de9e61 commit a68dc92

File tree

32 files changed

+559
-94
lines changed

32 files changed

+559
-94
lines changed

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
"version": "0.0.0",
44
"license": "MIT",
55
"scripts": {
6-
"prepare": "husky"
6+
"prepare": "husky",
7+
"lint": "nx run-many --target=lint",
8+
"lint:fix": "nx run-many --target=lint:fix"
79
},
810
"private": true,
911
"devDependencies": {
@@ -16,6 +18,6 @@
1618
"packages/*"
1719
],
1820
"lint-staged": {
19-
"**/*.py": "npx nx affected --target=lint -- --fix"
21+
"**/*.py": "npx nx affected --target=lint:fix"
2022
}
2123
}

packages/opentelemetry-instrumentation-alephalpha/project.json

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@
2525
},
2626
"build": {
2727
"executor": "@nxlv/python:build",
28-
"outputs": ["{projectRoot}/dist"],
28+
"outputs": [
29+
"{projectRoot}/dist"
30+
],
2931
"options": {
3032
"outputPath": "packages/opentelemetry-instrumentation-alephalpha/dist",
3133
"publish": false,
@@ -46,7 +48,9 @@
4648
"lint": {
4749
"executor": "@nxlv/python:ruff-check",
4850
"options": {
49-
"lintFilePatterns": ["**/*.py"],
51+
"lintFilePatterns": [
52+
"**/*.py"
53+
],
5054
"fix": false
5155
}
5256
},
@@ -70,7 +74,18 @@
7074
],
7175
"cwd": "packages/opentelemetry-instrumentation-alephalpha"
7276
}
77+
},
78+
"lint:fix": {
79+
"executor": "@nxlv/python:ruff-check",
80+
"options": {
81+
"lintFilePatterns": [
82+
"**/*.py"
83+
],
84+
"fix": true
85+
}
7386
}
7487
},
75-
"tags": ["instrumentation"]
88+
"tags": [
89+
"instrumentation"
90+
]
7691
}

packages/opentelemetry-instrumentation-anthropic/project.json

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@
2525
},
2626
"build": {
2727
"executor": "@nxlv/python:build",
28-
"outputs": ["{projectRoot}/dist"],
28+
"outputs": [
29+
"{projectRoot}/dist"
30+
],
2931
"options": {
3032
"outputPath": "packages/opentelemetry-instrumentation-anthropic/dist",
3133
"publish": false,
@@ -46,7 +48,9 @@
4648
"lint": {
4749
"executor": "@nxlv/python:ruff-check",
4850
"options": {
49-
"lintFilePatterns": ["**/*.py"],
51+
"lintFilePatterns": [
52+
"**/*.py"
53+
],
5054
"fix": false
5155
}
5256
},
@@ -70,7 +74,18 @@
7074
],
7175
"cwd": "packages/opentelemetry-instrumentation-anthropic"
7276
}
77+
},
78+
"lint:fix": {
79+
"executor": "@nxlv/python:ruff-check",
80+
"options": {
81+
"lintFilePatterns": [
82+
"**/*.py"
83+
],
84+
"fix": true
85+
}
7386
}
7487
},
75-
"tags": ["instrumentation"]
88+
"tags": [
89+
"instrumentation"
90+
]
7691
}

packages/opentelemetry-instrumentation-bedrock/project.json

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@
2525
},
2626
"build": {
2727
"executor": "@nxlv/python:build",
28-
"outputs": ["{projectRoot}/dist"],
28+
"outputs": [
29+
"{projectRoot}/dist"
30+
],
2931
"options": {
3032
"outputPath": "packages/opentelemetry-instrumentation-bedrock/dist",
3133
"publish": false,
@@ -46,7 +48,9 @@
4648
"lint": {
4749
"executor": "@nxlv/python:ruff-check",
4850
"options": {
49-
"lintFilePatterns": ["**/*.py"],
51+
"lintFilePatterns": [
52+
"**/*.py"
53+
],
5054
"fix": false
5155
}
5256
},
@@ -70,7 +74,18 @@
7074
],
7175
"cwd": "packages/opentelemetry-instrumentation-bedrock"
7276
}
77+
},
78+
"lint:fix": {
79+
"executor": "@nxlv/python:ruff-check",
80+
"options": {
81+
"lintFilePatterns": [
82+
"**/*.py"
83+
],
84+
"fix": true
85+
}
7386
}
7487
},
75-
"tags": ["instrumentation"]
88+
"tags": [
89+
"instrumentation"
90+
]
7691
}

packages/opentelemetry-instrumentation-chromadb/project.json

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@
2525
},
2626
"build": {
2727
"executor": "@nxlv/python:build",
28-
"outputs": ["{projectRoot}/dist"],
28+
"outputs": [
29+
"{projectRoot}/dist"
30+
],
2931
"options": {
3032
"outputPath": "packages/opentelemetry-instrumentation-chromadb/dist",
3133
"publish": false,
@@ -46,7 +48,9 @@
4648
"lint": {
4749
"executor": "@nxlv/python:ruff-check",
4850
"options": {
49-
"lintFilePatterns": ["**/*.py"],
51+
"lintFilePatterns": [
52+
"**/*.py"
53+
],
5054
"fix": false
5155
}
5256
},
@@ -70,7 +74,18 @@
7074
],
7175
"cwd": "packages/opentelemetry-instrumentation-chromadb"
7276
}
77+
},
78+
"lint:fix": {
79+
"executor": "@nxlv/python:ruff-check",
80+
"options": {
81+
"lintFilePatterns": [
82+
"**/*.py"
83+
],
84+
"fix": true
85+
}
7386
}
7487
},
75-
"tags": ["instrumentation"]
88+
"tags": [
89+
"instrumentation"
90+
]
7691
}

packages/opentelemetry-instrumentation-cohere/project.json

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@
2525
},
2626
"build": {
2727
"executor": "@nxlv/python:build",
28-
"outputs": ["{projectRoot}/dist"],
28+
"outputs": [
29+
"{projectRoot}/dist"
30+
],
2931
"options": {
3032
"outputPath": "packages/opentelemetry-instrumentation-cohere/dist",
3133
"publish": false,
@@ -46,7 +48,9 @@
4648
"lint": {
4749
"executor": "@nxlv/python:ruff-check",
4850
"options": {
49-
"lintFilePatterns": ["**/*.py"],
51+
"lintFilePatterns": [
52+
"**/*.py"
53+
],
5054
"fix": false
5155
}
5256
},
@@ -70,7 +74,18 @@
7074
],
7175
"cwd": "packages/opentelemetry-instrumentation-cohere"
7276
}
77+
},
78+
"lint:fix": {
79+
"executor": "@nxlv/python:ruff-check",
80+
"options": {
81+
"lintFilePatterns": [
82+
"**/*.py"
83+
],
84+
"fix": true
85+
}
7386
}
7487
},
75-
"tags": ["instrumentation"]
88+
"tags": [
89+
"instrumentation"
90+
]
7691
}

packages/opentelemetry-instrumentation-crewai/project.json

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@
2525
},
2626
"build": {
2727
"executor": "@nxlv/python:build",
28-
"outputs": ["{projectRoot}/dist"],
28+
"outputs": [
29+
"{projectRoot}/dist"
30+
],
2931
"options": {
3032
"outputPath": "packages/opentelemetry-instrumentation-crewai/dist",
3133
"publish": false,
@@ -46,7 +48,9 @@
4648
"lint": {
4749
"executor": "@nxlv/python:ruff-check",
4850
"options": {
49-
"lintFilePatterns": ["**/*.py"],
51+
"lintFilePatterns": [
52+
"**/*.py"
53+
],
5054
"fix": false
5155
}
5256
},
@@ -70,7 +74,18 @@
7074
],
7175
"cwd": "packages/opentelemetry-instrumentation-crewai"
7276
}
77+
},
78+
"lint:fix": {
79+
"executor": "@nxlv/python:ruff-check",
80+
"options": {
81+
"lintFilePatterns": [
82+
"**/*.py"
83+
],
84+
"fix": true
85+
}
7386
}
7487
},
75-
"tags": ["instrumentation"]
88+
"tags": [
89+
"instrumentation"
90+
]
7691
}

packages/opentelemetry-instrumentation-google-generativeai/project.json

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@
2525
},
2626
"build": {
2727
"executor": "@nxlv/python:build",
28-
"outputs": ["{projectRoot}/dist"],
28+
"outputs": [
29+
"{projectRoot}/dist"
30+
],
2931
"options": {
3032
"outputPath": "packages/opentelemetry-instrumentation-google-generativeai/dist",
3133
"publish": false,
@@ -46,7 +48,9 @@
4648
"lint": {
4749
"executor": "@nxlv/python:ruff-check",
4850
"options": {
49-
"lintFilePatterns": ["**/*.py"],
51+
"lintFilePatterns": [
52+
"**/*.py"
53+
],
5054
"fix": false
5155
}
5256
},
@@ -70,7 +74,18 @@
7074
],
7175
"cwd": "packages/opentelemetry-instrumentation-google-generativeai"
7276
}
77+
},
78+
"lint:fix": {
79+
"executor": "@nxlv/python:ruff-check",
80+
"options": {
81+
"lintFilePatterns": [
82+
"**/*.py"
83+
],
84+
"fix": true
85+
}
7386
}
7487
},
75-
"tags": ["instrumentation"]
88+
"tags": [
89+
"instrumentation"
90+
]
7691
}

packages/opentelemetry-instrumentation-groq/project.json

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@
2525
},
2626
"build": {
2727
"executor": "@nxlv/python:build",
28-
"outputs": ["{projectRoot}/dist"],
28+
"outputs": [
29+
"{projectRoot}/dist"
30+
],
2931
"options": {
3032
"outputPath": "packages/opentelemetry-instrumentation-groq/dist",
3133
"publish": false,
@@ -46,7 +48,9 @@
4648
"lint": {
4749
"executor": "@nxlv/python:ruff-check",
4850
"options": {
49-
"lintFilePatterns": ["**/*.py"],
51+
"lintFilePatterns": [
52+
"**/*.py"
53+
],
5054
"fix": false
5155
}
5256
},
@@ -70,7 +74,18 @@
7074
],
7175
"cwd": "packages/opentelemetry-instrumentation-groq"
7276
}
77+
},
78+
"lint:fix": {
79+
"executor": "@nxlv/python:ruff-check",
80+
"options": {
81+
"lintFilePatterns": [
82+
"**/*.py"
83+
],
84+
"fix": true
85+
}
7386
}
7487
},
75-
"tags": ["instrumentation"]
88+
"tags": [
89+
"instrumentation"
90+
]
7691
}

packages/opentelemetry-instrumentation-haystack/project.json

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@
2525
},
2626
"build": {
2727
"executor": "@nxlv/python:build",
28-
"outputs": ["{projectRoot}/dist"],
28+
"outputs": [
29+
"{projectRoot}/dist"
30+
],
2931
"options": {
3032
"outputPath": "packages/opentelemetry-instrumentation-haystack/dist",
3133
"publish": false,
@@ -46,7 +48,9 @@
4648
"lint": {
4749
"executor": "@nxlv/python:ruff-check",
4850
"options": {
49-
"lintFilePatterns": ["**/*.py"],
51+
"lintFilePatterns": [
52+
"**/*.py"
53+
],
5054
"fix": false
5155
}
5256
},
@@ -70,7 +74,18 @@
7074
],
7175
"cwd": "packages/opentelemetry-instrumentation-haystack"
7276
}
77+
},
78+
"lint:fix": {
79+
"executor": "@nxlv/python:ruff-check",
80+
"options": {
81+
"lintFilePatterns": [
82+
"**/*.py"
83+
],
84+
"fix": true
85+
}
7386
}
7487
},
75-
"tags": ["instrumentation"]
88+
"tags": [
89+
"instrumentation"
90+
]
7691
}

0 commit comments

Comments
 (0)