diff --git a/.github/workflows/dd-static-analysis.yml b/.github/workflows/dd-static-analysis.yml new file mode 100644 index 00000000000..856d96a1a15 --- /dev/null +++ b/.github/workflows/dd-static-analysis.yml @@ -0,0 +1,17 @@ +on: [push] + +jobs: + check-quality: + runs-on: ubuntu-latest + name: Datadog Static Analyzer + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Check code meets quality standards + id: datadog-static-analysis + uses: DataDog/datadog-static-analyzer-github-action@v1.0.0 + with: + dd_app_key: ${{ secrets.DD_APP_KEY }} + dd_api_key: ${{ secrets.DD_API_KEY_STATIC_ANALYSIS }} + dd_service: "dd-trace-py" + dd_env: "ci" diff --git a/static-analysis.datadog.yml b/static-analysis.datadog.yml new file mode 100644 index 00000000000..a58447674b6 --- /dev/null +++ b/static-analysis.datadog.yml @@ -0,0 +1,4 @@ +rulesets: + - python-code-style + - python-best-practices + - python-inclusive