diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8f6cab6..425a19b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -38,7 +38,7 @@ jobs: - name: lint with mypy run: poetry run mypy src - - name: lint with flake8 - run: poetry run flake8 --show-source --statistics --ignore=E203,E501,W503 src + - name: lint with ruff + run: poetry run ruff --show-source --statistics --ignore=E203,E501,W503 src - name: pytest run: poetry run pytest diff --git a/docs/contributing.md b/docs/contributing.md index 8ff0405..bea3d37 100644 --- a/docs/contributing.md +++ b/docs/contributing.md @@ -33,7 +33,7 @@ Bug reports, questions, or feature requests can be submitted as [GitHub issues]( ### Linting & Type Checking -`poetry run inv lint` will run flake8 and black to lint the code style. +`poetry run inv lint` will run ruff and black to lint the code style. `poetry run inv mypy` will run the mypy type checker. diff --git a/pyproject.toml b/pyproject.toml index b2d7ca4..0e5a640 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,7 +35,6 @@ ipython = {version = "^7.19.0", extras = ["shell"]} [tool.poetry.dev-dependencies] pytest = "^6.2.1" pytest-cov = "^2.11.1" -flake8 = "^3" black = "^22" bump2version = "^1.0.1" mypy = "^0.900" @@ -48,6 +47,9 @@ importlib-metadata = "<5.0" types-requests = "^0.1.11" types-click = "^7.1.1" +[tool.poetry.group.dev.dependencies] +ruff = "^0.1.6" + [tool.mypy] disallow_untyped_defs = true diff --git a/tasks.py b/tasks.py index 1857999..4d2df5e 100644 --- a/tasks.py +++ b/tasks.py @@ -19,7 +19,7 @@ def mypy(c): @task def lint(c): - c.run("poetry run flake8 src/ tests/ --ignore=E203,E501,W503", pty=True) + c.run("poetry run ruff src/ tests/ --ignore=E203,E501,W503", pty=True) c.run("poetry run black --check src/ tests/", pty=True)