Skip to content

Commit 3c456f2

Browse files
committed
Adds pre-commit as the format and lint check in CI
1 parent 17c5437 commit 3c456f2

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ rosetta_energy = [
6565
"biopython",
6666
"pyrosetta-installer",
6767
]
68-
dev = ["black", "tox", "pytest", "bump-my-version"]
68+
dev = ["black", "tox", "pytest", "bump-my-version", "pre-commit", "pyright"]
6969
docs = ["sphinx", "furo"]
7070

7171
[project.urls]
@@ -89,7 +89,7 @@ markers = [
8989

9090
[tool.pyright]
9191
include = ["src/poli"]
92-
exclude = ["src/poli/core/util/proteins/rasp/inner_rasp", "src/poli/objective_repository/gfp_cbas"]
92+
exclude = ["src/poli/core/util/proteins/rasp/inner_rasp", "src/poli/objective_repository/gfp_cbas", "examples"]
9393
reportIncompatibleMethodOverride = "none"
9494

9595
[tool.isort]

tox.ini

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,9 @@ commands =
2626
[testenv:lint]
2727
description = check the code style with black
2828
deps =
29-
black
30-
isort
31-
ruff
29+
pre-commit
3230
commands =
33-
black --check --diff .
34-
isort --profile black --check-only src/
35-
ruff check
31+
pre-commit run --all-files
3632

3733
[testenv:poli-base-py310]
3834
description = run the tests with pytest on the base environment for poli

0 commit comments

Comments
 (0)