Skip to content

Commit

Permalink
ci: run all lints even when some fail
Browse files Browse the repository at this point in the history
This should make it easier to fix errors all in one go
  • Loading branch information
alcarney committed Sep 30, 2023
1 parent b38b40d commit 159b6e7
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,6 @@ ruff = "ruff check ."
mypy = "mypy -p pygls"
check_generated_client = "python scripts/check_client_is_uptodate.py"
check_commit_style = "npx commitlint --from origin/main --to HEAD --verbose --config commitlintrc.yaml"
lint = [
"ruff",
"mypy",
"check_generated_client",
"check_commit_style",
"black_check"
]
generate_client = "python scripts/generate_client.py --output pygls/lsp/client.py"
generate_contributors_md = "python scripts/generate_contributors_md.py"
black_check = "black --check ."
Expand All @@ -75,6 +68,15 @@ sequence = [
]
ignore_fail = "return_non_zero"

[tool.poe.tasks.lint]
sequence = [
"ruff",
"mypy",
"check_generated_client",
"check_commit_style",
"black_check"
]
ignore_fail = "return_non_zero"

[tool.pyright]
strict = ["pygls"]
Expand Down

0 comments on commit 159b6e7

Please sign in to comment.