From 8c11b576cbc0a5bd9cd104345387970f66850b55 Mon Sep 17 00:00:00 2001 From: Andrew Ferrazzutti Date: Thu, 13 Feb 2025 16:04:03 -0500 Subject: [PATCH] Include Python in static analysis job Also refactor "yarn lint" of each module/package to run whatever lint task is appropriate for it --- modules/opendesk/element-web/package.json | 2 +- modules/restricted-guests/synapse/package.json | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/opendesk/element-web/package.json b/modules/opendesk/element-web/package.json index ca9e7b3f2d..298d4de5c2 100644 --- a/modules/opendesk/element-web/package.json +++ b/modules/opendesk/element-web/package.json @@ -8,7 +8,7 @@ ], "scripts": { "prepare": "vite build", - "lint:ts": "tsc --noEmit", + "lint": "tsc --noEmit", "test": "echo no tests yet" }, "devDependencies": { diff --git a/modules/restricted-guests/synapse/package.json b/modules/restricted-guests/synapse/package.json index 868aadef5b..3968ba3a87 100644 --- a/modules/restricted-guests/synapse/package.json +++ b/modules/restricted-guests/synapse/package.json @@ -11,8 +11,7 @@ "build": "echo \"Nothing to build\"", "docker:build": "docker build -t element-hq/synapse-guest-module -f Dockerfile .", "tsc": "echo \"Nothing to tsc\"", - "lint": "echo \"Nothing to lint\"", - "lint:ts": "echo \"Nothing to lint:ts\"", + "lint": "yarn types:py && yarn lint:py", "types:py": "./scripts/run_in_venv.sh tox -e check_types", "lint:py": "./scripts/run_in_venv.sh tox -e check_codestyle", "lint:fix": "./scripts/run_in_venv.sh tox -e fix_codestyle",