mirror of https://github.com/astral-sh/ruff
Add black to pre-commit (#3192)
This commit is contained in:
parent
bda2a0007a
commit
a688a237d7
|
|
@ -46,5 +46,16 @@ repos:
|
|||
pass_filenames: false
|
||||
exclude: target
|
||||
|
||||
# Black
|
||||
- repo: https://github.com/psf/black
|
||||
rev: 23.1.0
|
||||
hooks:
|
||||
- id: black
|
||||
exclude: |
|
||||
(?x)^(
|
||||
crates/ruff/resources/.*|
|
||||
crates/ruff_python_formatter/resources/.*
|
||||
)$
|
||||
|
||||
ci:
|
||||
skip: [cargo-fmt, clippy, dev-generate-all]
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ pub static KNOWN_STANDARD_LIBRARY: Lazy<FxHashMap<(u32, u32), FxHashSet<&'static
|
|||
FxHashMap::from_iter([
|
||||
""",
|
||||
)
|
||||
for (major, minor) in VERSIONS:
|
||||
for major, minor in VERSIONS:
|
||||
version = f"{major}.{minor}"
|
||||
url = URL.format(version)
|
||||
invdata = fetch_inventory(FakeApp(), "", url)
|
||||
|
|
|
|||
Loading…
Reference in New Issue