Skip to content

Commit 2629dae

Browse files
committed
Words
1 parent 429f73f commit 2629dae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,8 @@ Paths passed explicitly are checked even if they are otherwise ignored by an `ex
202202

203203
Both `include` and `exclude` support gitignore like glob patterns:
204204

205-
- `./src/` matches only a directory
206-
- `./src` matches both files and directories
205+
- `src/` matches only a directory
206+
- `src` matches both files and directories
207207
- `src` matches files or directories named `src`
208208
- `*` matches any (possibly empty) sequence of characters (except `/`).
209209
- `**` matches zero or more path components.
@@ -215,7 +215,7 @@ Both `include` and `exclude` support gitignore like glob patterns:
215215

216216
Include patterns are anchored: `src` includes only `<project_root>/src` and not `<project_root>/test/src`. To include any directory named `src`, use a prefix match like so: `**/src`, but note that these can notably slow down the Python file discovery.
217217

218-
Exclude patterns aren't anchored unless they contain a `/`: `venv` excludes any directory named `venv`, e.g. it excludes `<project_root>/venv` and `<project_root>/sub/venv`.
218+
Unlike include patterns, exclude patterns aren't anchored unless they contain a `/`: `venv` excludes any directory named `venv`, e.g. it excludes `<project_root>/venv` and `<project_root>/sub/venv`.
219219

220220
All fields accepting patterns use the reduced portable glob syntax from [PEP 639](https://peps.python.org/pep-0639/#add-license-FILES-key), with the addition that characters can be escaped with a backslash.
221221

0 commit comments

Comments
 (0)