pre-commit: Add ruff to replace bandit, flake8, isort, and pyupgrade (#1210)

* pre-commit: Add ruff to replace bandit, flake8, isort, and pyupgrade

* Upgrade ruff

* Update .pre-commit-config.yaml

* Update .pre-commit-config.yaml

* Update .pre-commit-config.yaml
This commit is contained in:
Christian Clauss
2023-03-06 15:20:08 +01:00
committed by GitHub
parent 71d24a445e
commit 7ffe6a598e
7 changed files with 58 additions and 42 deletions

39
pyproject.toml Normal file
View File

@@ -0,0 +1,39 @@
[build-system]
requires = ["setuptools>=61.2"]
build-backend = "setuptools.build_meta"
[project]
dynamic = ["version"]
[tool.codespell]
skip = "pyscriptjs/node_modules/*,*.js,*.json"
[tool.ruff]
builtins = [
"Element",
"PyItemTemplate",
"PyListTemplate",
"pyscript",
]
ignore = [
"S101",
"S113",
]
line-length = 100
select = [
"B",
"C9",
"E",
"F",
"I",
"S",
"UP",
"W",
]
target-version = "py310"
[tool.ruff.mccabe]
max-complexity = 10
[tool.setuptools]
include-package-data = false