Skip to content

Commit f0516b2

Browse files
committed
ruff
1 parent 0a41733 commit f0516b2

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

.github/workflows/test.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838

3939
- name: lint with mypy
4040
run: poetry run mypy src
41-
- name: lint with flake8
42-
run: poetry run flake8 --show-source --statistics --ignore=E203,E501,W503 src
41+
- name: lint with ruff
42+
run: poetry run ruff --show-source --statistics --ignore=E203,E501,W503 src
4343
- name: pytest
4444
run: poetry run pytest

docs/contributing.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Bug reports, questions, or feature requests can be submitted as [GitHub issues](
3333

3434
### Linting & Type Checking
3535

36-
`poetry run inv lint` will run flake8 and black to lint the code style.
36+
`poetry run inv lint` will run ruff and black to lint the code style.
3737

3838
`poetry run inv mypy` will run the mypy type checker.
3939

pyproject.toml

+3-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ ipython = {version = "^7.19.0", extras = ["shell"]}
3535
[tool.poetry.dev-dependencies]
3636
pytest = "^6.2.1"
3737
pytest-cov = "^2.11.1"
38-
flake8 = "^3"
3938
black = "^22"
4039
bump2version = "^1.0.1"
4140
mypy = "^0.900"
@@ -48,6 +47,9 @@ importlib-metadata = "<5.0"
4847
types-requests = "^0.1.11"
4948
types-click = "^7.1.1"
5049

50+
[tool.poetry.group.dev.dependencies]
51+
ruff = "^0.1.6"
52+
5153
[tool.mypy]
5254
disallow_untyped_defs = true
5355

tasks.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def mypy(c):
1919

2020
@task
2121
def lint(c):
22-
c.run("poetry run flake8 src/ tests/ --ignore=E203,E501,W503", pty=True)
22+
c.run("poetry run ruff src/ tests/ --ignore=E203,E501,W503", pty=True)
2323
c.run("poetry run black --check src/ tests/", pty=True)
2424

2525

0 commit comments

Comments
 (0)