Skip to content

Commit 08233b6

Browse files
update linters to start using ruff
1 parent d084276 commit 08233b6

2 files changed

Lines changed: 19 additions & 10 deletions

File tree

Makefile

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
1-
lint: isort black
1+
format:
2+
@ruff check --select I --fix
3+
@ruff format .
4+
@echo Ruff formatting completed.
25

3-
isort:
4-
isort .
56

6-
black:
7-
black .
7+
ruff-lint:
8+
@echo Running ruff check...
9+
@ruff check
10+
@echo Ruff linter check completed.
811

912
pylint:
10-
pylint rocketserializer/ --output="pylint_report.txt"
13+
@echo Running pylint check...
14+
@pylint .
15+
@echo Pylint check completed.
16+
17+
lint: ruff-lint pylint
1118

1219
tests:
1320
pytest
@@ -18,3 +25,7 @@ tests:
1825

1926
# tests-integration:
2027

28+
install:
29+
pip install -r requirements.in
30+
pip install -r requirements-dev.txt
31+
pip install -e .

requirements-dev.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
black[jupyter]
21
pylint
3-
isort
4-
flake8
52
mypy
63
pytest==7.4.0
7-
pytest-coverage
4+
pytest-coverage
5+
ruff

0 commit comments

Comments
 (0)