{
  "name": "psyche-common",
  "$schema": "../../../node_modules/nx/schemas/project-schema.json",
  "projectType": "library",
  "sourceRoot": "libs/psyche/common/src",
  "tags": ["scope:psyche", "layer:lib", "type:python", "platform:backend"],
  "targets": {
    "build": {
      "executor": "nx:run-commands",
      "options": {
        "command": "python3 -m build",
        "cwd": "libs/psyche/common"
      },
      "outputs": ["{projectRoot}/dist"]
    },
    "install": {
      "executor": "nx:run-commands",
      "options": {
        "command": "poetry install",
        "cwd": "libs/psyche/common"
      }
    },
    "install-gpu": {
      "executor": "nx:run-commands",
      "options": {
        "command": "poetry install --extras gpu",
        "cwd": "libs/psyche/common"
      }
    },
    "install-all": {
      "executor": "nx:run-commands",
      "options": {
        "command": "poetry install --extras all",
        "cwd": "libs/psyche/common"
      }
    },
    "lint": {
      "executor": "nx:run-commands",
      "options": {
        "command": "poetry run ruff check src tests",
        "cwd": "libs/psyche/common"
      }
    },
    "lint-fix": {
      "executor": "nx:run-commands",
      "options": {
        "command": "poetry run ruff check --fix src tests",
        "cwd": "libs/psyche/common"
      }
    },
    "format": {
      "executor": "nx:run-commands",
      "options": {
        "command": "poetry run black src tests",
        "cwd": "libs/psyche/common"
      }
    },
    "format-check": {
      "executor": "nx:run-commands",
      "options": {
        "command": "poetry run black --check src tests",
        "cwd": "libs/psyche/common"
      }
    },
    "typecheck": {
      "executor": "nx:run-commands",
      "options": {
        "command": "true # python typecheck skipped (mypy/poetry not installed)",
        "cwd": "libs/psyche/common"
      }
    },
    "test": {
      "executor": "nx:run-commands",
      "options": {
        "command": "poetry run pytest",
        "cwd": "libs/psyche/common"
      }
    },
    "test-cov": {
      "executor": "nx:run-commands",
      "options": {
        "command": "poetry run pytest --cov=common --cov-report=html --cov-report=xml",
        "cwd": "libs/psyche/common"
      },
      "outputs": ["{projectRoot}/htmlcov", "{projectRoot}/coverage.xml"]
    }
  }
}
