feat: migrate flake8 -> ruff

This commit is contained in:
Felix Spöttel
2023-06-28 10:26:40 +02:00
parent 6e61e0fcf8
commit 5689830601
4 changed files with 6 additions and 15 deletions

View File

@@ -1,4 +0,0 @@
[flake8]
max-line-length = 88
extend-ignore = E203
exclude = .git,__pycache__,__init__.py,.mypy_cache,.pytest_cache,app/alembic/versions

View File

@@ -13,10 +13,8 @@ jobs:
cache: 'pip'
cache-dependency-path: '**/pyproject.toml'
- run: pip install -e .[web,tooling]
- run: black --check app
- run: isort --check app
- run: flake8 app
- run: mypy app
- run: make lint
test:
runs-on: ubuntu-latest
name: Test

View File

@@ -7,10 +7,11 @@ dev:
fmt:
black app
isort app
ruff check app --fix
lint:
flake8 app
black --check app
ruff check app
mypy app
test:

View File

@@ -26,9 +26,8 @@ worker=[
tooling = [
# code formatting
"black ==23.3.0",
"isort ==5.12.0",
# linting
"flake8 ==6.0.0",
"ruff ==0.0.275",
# tests
"httpx",
"sqlalchemy-utils ==0.41.1",
@@ -39,8 +38,5 @@ tooling = [
"types-requests ==2.31.0.1"
]
[tool.isort]
profile = "black"
[tool.setuptools]
py-modules = []