Introducing a new linter: ruff (#6752)

This commit is contained in:
Akira Noda 2023-09-03 15:16:24 +09:00 committed by GitHub
parent 59f07993a4
commit 110234f67e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 5 deletions

View File

@ -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)"

View File

@ -2,9 +2,6 @@
-r requirements-tests.txt
black==22.3.0
flake8==4.0.1
flake8-print
flake8-use-fstring
click
inflection
lxml

View File

@ -5,3 +5,4 @@ pytest-ordering
pytest-xdist
freezegun
pylint
ruff

1
ruff.toml Normal file
View File

@ -0,0 +1 @@
ignore = ["E501", "E721", "E741", "F601"]