mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-19 18:27:29 -05:00
run pre-commit on all files (#1789)
pre-commit.ci has been disabled for a while. This PR ensures that all the files has been validated/formatted by pre-commit, to avoid spurious diffs in subsequent PRs. During the process, ruff broke the code because it removed an "unused" import which was actually used. A linter which breaks my code is a linter which I cannot trust, so I just removed it. I re-enabled isort instead.
This commit is contained in:
@@ -7,31 +7,7 @@ dynamic = ["version"]
|
||||
|
||||
[tool.codespell]
|
||||
ignore-words-list = "afterall"
|
||||
|
||||
[tool.ruff]
|
||||
builtins = [
|
||||
"Element",
|
||||
"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
|
||||
skip = "*.js,*.json"
|
||||
|
||||
[tool.setuptools]
|
||||
include-package-data = false
|
||||
|
||||
Reference in New Issue
Block a user