🛠 Replace flake8 + pylint with ruff

As ruff is a lot faster than the other options, use this for code style checks etc. This
change also removes setup.cfg (See also: gh-85).
pull/90/head
Mike Gerber 1 year ago
parent e8e58e76c4
commit 32bd1896e0

@ -32,6 +32,6 @@ pytest --cov=dinglehopper --cov-report=html
Static code analysis: Static code analysis:
```bash ```bash
pytest -k "not test" --flake8
pytest -k "not test" --mypy pytest -k "not test" --mypy
pytest -k "not test" --ruff
``` ```

@ -61,3 +61,8 @@ markers = [
[tool.mypy] [tool.mypy]
ignore_missing_imports = true ignore_missing_imports = true
[tool.ruff]
select = ["E", "F", "I"]
ignore = []

@ -1,5 +1,6 @@
pytest pytest
pytest-flake8
pytest-cov pytest-cov
pytest-mypy pytest-mypy
pytest-ruff
black black
ruff

@ -1,9 +0,0 @@
[flake8]
max-line-length = 88
extend-ignore = E203, W503
[pylint]
max-line-length = 88
[pylint.messages_control]
disable = C0330, C0326
Loading…
Cancel
Save