facebook / facebook/pyrefly

pyrefly init fails: failed to deserialize as glob

Open
#1,471 0 comments 0 reactions 1 assignee Claimed by @maggiemoss View on GitHub
onboarding
Dominant language
Rust
Stars
7k
Forks
516
PR merge metrics
No merged PRs in 30d

Description

### Describe the Bug

reproduction:
```
git clone https://github.com/mosaicml/llm-foundry
uv venv
source .venv/bin/activate
uv pip install pyrefly
```

```
(llm-foundry) kylei@kylei-mbp llm-foundry % pyrefly init
INFO Found an existing type checking configuration - setting up pyrefly ...
Failed to load config from pyproject.toml: TOML parse error at line 68, column 12
|
68 | exclude = ['env-**', 'venv*', '.venv']
| ^^^^^^^^
Failed to deserialize as Glob: While constructing glob pattern from env-**/*
```

pyright section of pyproject.toml:

```
# Pyright
[tool.pyright]
exclude = ['env-**', 'venv*', '.venv']
stubPath = "" # suppress useless 'stubPath is not a valid directory' errors

```

### Sandbox Link

_No response_

### (Only applicable for extension issues) IDE Information

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.