Introducing a new linter: ruff (#6752)
This commit is contained in:
parent
59f07993a4
commit
110234f67e
4
Makefile
4
Makefile
@ -19,8 +19,8 @@ init:
|
||||
@pip install -r requirements-dev.txt
|
||||
|
||||
lint:
|
||||
@echo "Running flake8..."
|
||||
flake8 moto tests
|
||||
@echo "Running ruff..."
|
||||
ruff check moto tests
|
||||
@echo "Running black... "
|
||||
$(eval black_version := $(shell grep "^black==" requirements-dev.txt | sed "s/black==//"))
|
||||
@echo "(Make sure you have black-$(black_version) installed, as other versions will produce different results)"
|
||||
|
@ -2,9 +2,6 @@
|
||||
-r requirements-tests.txt
|
||||
|
||||
black==22.3.0
|
||||
flake8==4.0.1
|
||||
flake8-print
|
||||
flake8-use-fstring
|
||||
click
|
||||
inflection
|
||||
lxml
|
||||
|
@ -5,3 +5,4 @@ pytest-ordering
|
||||
pytest-xdist
|
||||
freezegun
|
||||
pylint
|
||||
ruff
|
||||
|
Loading…
Reference in New Issue
Block a user