From 2d663ca5dcc8a7aac2da202c60c2e2c19946dfbb Mon Sep 17 00:00:00 2001 From: Lorenzo Villani <241660+lvillani@users.noreply.github.com> Date: Tue, 6 Mar 2018 18:36:27 +0100 Subject: [PATCH 1/4] Add support for requirements.in (from pip-tools) [pip-tools](https://github.com/jazzband/pip-tools) provides a tool called `pip-compile` that takes a `requirements.in` file with the same format used by `requirements.txt` to produce a "lock file" (the usual `requirements.txt` file). This commits enables the `pip-requirements` syntax for the aforementioned files. --- package.json | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 96fbb30580c6..da0aa1ae22ee 100644 --- a/package.json +++ b/package.json @@ -1548,14 +1548,18 @@ "id": "pip-requirements", "aliases": [ "pip requirements", - "requirements.txt" + "requirements.txt", + "requirements.in" ], "filenames": [ - "requirements.txt" + "requirements.txt", + "requirements.in" ], "filenamePatterns": [ "*-requirements.txt", - "requirements-*.txt" + "requirements-*.txt", + "*-requirements.in", + "requirements-*.in" ], "configuration": "./languages/pip-requirements.json" }, From cedd93e608f267468466f4db4f3b0228fb97328e Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Mon, 12 Mar 2018 16:59:08 -0700 Subject: [PATCH 2/4] Don't use requirements.in as a common name for pip requirements files --- package.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/package.json b/package.json index da0aa1ae22ee..43f9562cc0ca 100644 --- a/package.json +++ b/package.json @@ -1548,8 +1548,7 @@ "id": "pip-requirements", "aliases": [ "pip requirements", - "requirements.txt", - "requirements.in" + "requirements.txt" ], "filenames": [ "requirements.txt", From e5a775023ca49fdeaa8deed6711211c382e88306 Mon Sep 17 00:00:00 2001 From: Lorenzo Villani Date: Fri, 16 Mar 2018 19:30:31 +0100 Subject: [PATCH 3/4] Add news entry --- news/1 Enhancements/961.md | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 news/1 Enhancements/961.md diff --git a/news/1 Enhancements/961.md b/news/1 Enhancements/961.md new file mode 100644 index 000000000000..3a348fc4ed94 --- /dev/null +++ b/news/1 Enhancements/961.md @@ -0,0 +1,2 @@ +Enable syntax highlighting for `requirements.in` files used by +[pip-tools](https://github.com/jazzband/pip-tools). From e6f6c26d3b6e10940e4a896e930c1e4221121519 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Mon, 19 Mar 2018 14:57:05 -0700 Subject: [PATCH 4/4] Tweak news phrasing --- news/1 Enhancements/961.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/news/1 Enhancements/961.md b/news/1 Enhancements/961.md index 3a348fc4ed94..431028ffca82 100644 --- a/news/1 Enhancements/961.md +++ b/news/1 Enhancements/961.md @@ -1,2 +1,2 @@ -Enable syntax highlighting for `requirements.in` files used by -[pip-tools](https://github.com/jazzband/pip-tools). +Enable syntax highlighting for `requirements.in` files as used by +e.g. [pip-tools](https://github.com/jazzband/pip-tools).