From ff45019250f77eff0ecdec7e805744b948604749 Mon Sep 17 00:00:00 2001 From: James Stevenson Date: Fri, 22 Mar 2024 14:41:20 -0400 Subject: [PATCH] remove flake8 things --- .flake8 | 12 ------------ Pipfile | 7 +++---- README.md | 4 ++-- 3 files changed, 5 insertions(+), 18 deletions(-) delete mode 100644 .flake8 diff --git a/.flake8 b/.flake8 deleted file mode 100644 index 5db9c0f2..00000000 --- a/.flake8 +++ /dev/null @@ -1,12 +0,0 @@ -[flake8] -ignore = D205, D400, W503 -max-line-length = 88 -exclude = - .git - venv - __pycache__ - source - outputs - docs/* -per-file-ignores = - *__init__.py:F401 diff --git a/Pipfile b/Pipfile index 06b9a1d7..8982e35d 100644 --- a/Pipfile +++ b/Pipfile @@ -23,11 +23,10 @@ asyncclick = "*" [dev-packages] metakb = {editable = true, path = "."} +pre-commit = "*" +ruff = "==0.2.0" mock = "*" pytest = "*" -pre-commit = "*" -flake8 = "*" -flake8-docstrings = "*" pytest-cov = "*" -ipykernel = "*" pytest-asyncio = "*" +ipykernel = "*" diff --git a/README.md b/README.md index 5d4809b2..72f8a8ef 100644 --- a/README.md +++ b/README.md @@ -152,10 +152,10 @@ python3 -m pytest ### And coding style tests -Code style is managed by [flake8](https://github.com/PyCQA/flake8) and checked prior to commit. +Code style is managed by [ruff](https://astral.sh/ruff) and checked prior to commit. ``` -see .flake8 +python3 -m ruff check --fix . && python3 -m ruff format . ```