mirror of
https://github.com/exo-explore/exo.git
synced 2025-12-23 22:27:50 -05:00
Add Linter
This commit is contained in:
@@ -26,9 +26,10 @@ darwin = [
|
||||
|
||||
# task runner configuration
|
||||
[tool.poe.tasks]
|
||||
fmt = { shell = "ruff format .", help = "Format the code" }
|
||||
fmt = { shell = "ruff format master worker shared", help = "Format the code" }
|
||||
lint = { shell = "ruff check --fix master worker shared", help = "Run the linter" }
|
||||
test = { shell = "pytest master worker shared", help = "Run the tests" }
|
||||
check = { shell = "basedpyright --project .", help = "Run type checker" }
|
||||
check = { shell = "basedpyright --project master worker shared", help = "Run type checker" }
|
||||
|
||||
###
|
||||
# workspace configuration
|
||||
@@ -90,4 +91,11 @@ pythonPlatform = "Darwin"
|
||||
environments = [
|
||||
"sys_platform == 'darwin'",
|
||||
"sys_platform == 'linux'",
|
||||
]
|
||||
]
|
||||
|
||||
###
|
||||
# ruff configuration
|
||||
###
|
||||
|
||||
[tool.ruff.lint]
|
||||
extend-select = ["I", "N", "B", "A", "PIE", "SIM"]
|
||||
Reference in New Issue
Block a user