Skip to content

Commit

Permalink
Linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nvuillam committed Jul 3, 2023
1 parent 02186bc commit 993bd4f
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -1422,6 +1422,7 @@
"workerpool",
"wrappy",
"wscript",
"xadd",
"xargs",
"xdist",
"xinclude",
Expand Down
6 changes: 5 additions & 1 deletion .github/linters/.mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@

[mypy]
ignore_missing_imports = True
exclude = megalinter/server.py
exclude =
exclude = (?x)(
server/server.py
| server/types.py
)
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ if [ "${MEGALINTER_SERVER}" == "true" ]; then
echo "[MegaLinter Worker] Init Redis Queue Worker pool (${MEGALINTER_SERVER_WORKER_POOL_NUMBER} processes)"
rq worker-pool --num-workers "${MEGALINTER_SERVER_WORKER_POOL_NUMBER}" --url "redis://${MEGALINTER_SERVER_REDIS_HOST}:${MEGALINTER_SERVER_REDIS_PORT}" "${MEGALINTER_SERVER_REDIS_QUEUE}"
else
# Use RQ worker (a worker can execute a single job paralelly)
# Use RQ worker (a worker can execute a single job parallelly)
echo "[MegaLinter Worker] Init Redis Queue Single worker"
rq worker --url "redis://${MEGALINTER_SERVER_REDIS_HOST}:${MEGALINTER_SERVER_REDIS_PORT}" "${MEGALINTER_SERVER_REDIS_QUEUE}"
fi
Expand Down
2 changes: 1 addition & 1 deletion server/docker-compose-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ services:

# PubSub mode
- REDIS_LINTER_REPORTER_METHOD=PUBSUB
## You can force a channel. If not set, megalinter:pubsub:linter_results:REQUEST_ID will be used (request_id is returned in initial THHP POST body)
## You can force a channel. If not set, megalinter:pubsub:linter_results:REQUEST_ID will be used (request_id is returned in initial POST body)
- REDIS_LINTER_REPORTER_PUBSUB_CHANNEL=megalinter:pubsub:linter_results
depends_on:
- megalinter_server_redis
Expand Down
2 changes: 1 addition & 1 deletion server/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ services:

# PubSub mode
- REDIS_LINTER_REPORTER_METHOD=PUBSUB
## You can force a channel. If not set, megalinter:pubsub:linter_results:REQUEST_ID will be used (request_id is returned in initial THHP POST body)
## You can force a channel. If not set, megalinter:pubsub:linter_results:REQUEST_ID will be used (request_id is returned in initial POST body)
- REDIS_LINTER_REPORTER_PUBSUB_CHANNEL=megalinter:pubsub:linter_results
depends_on:
- megalinter_server_redis
Expand Down

0 comments on commit 993bd4f

Please sign in to comment.