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
|
@pip install -r requirements-dev.txt
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
@echo "Running flake8..."
|
@echo "Running ruff..."
|
||||||
flake8 moto tests
|
ruff check moto tests
|
||||||
@echo "Running black... "
|
@echo "Running black... "
|
||||||
$(eval black_version := $(shell grep "^black==" requirements-dev.txt | sed "s/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)"
|
@echo "(Make sure you have black-$(black_version) installed, as other versions will produce different results)"
|
||||||
|
@ -2,9 +2,6 @@
|
|||||||
-r requirements-tests.txt
|
-r requirements-tests.txt
|
||||||
|
|
||||||
black==22.3.0
|
black==22.3.0
|
||||||
flake8==4.0.1
|
|
||||||
flake8-print
|
|
||||||
flake8-use-fstring
|
|
||||||
click
|
click
|
||||||
inflection
|
inflection
|
||||||
lxml
|
lxml
|
||||||
|
@ -5,3 +5,4 @@ pytest-ordering
|
|||||||
pytest-xdist
|
pytest-xdist
|
||||||
freezegun
|
freezegun
|
||||||
pylint
|
pylint
|
||||||
|
ruff
|
||||||
|
Loading…
Reference in New Issue
Block a user