Replace prettier with mdformat and yamlfmt (#3190)
Committed via https://github.com/asottile/all-repos
diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md
index 22b6353..ed6a253 100644
--- a/.github/CONTRIBUTING.md
+++ b/.github/CONTRIBUTING.md
@@ -3,9 +3,9 @@
Thank you for your interest in contributing to virtualenv! There are many ways to contribute, and we appreciate all of
them. As a reminder, all contributors are expected to follow the [PSF Code of Conduct][coc].
-[coc]: https://github.com/pypa/.github/blob/main/CODE_OF_CONDUCT.md
-
## Development Documentation
Our [development documentation](https://virtualenv.pypa.io/en/latest/development.html#development) contains details on
how to get started with contributing to `virtualenv`, and details of our development processes.
+
+[coc]: https://github.com/pypa/.github/blob/main/CODE_OF_CONDUCT.md
diff --git a/.github/ISSUE_TEMPLATE/bug-report.md b/.github/ISSUE_TEMPLATE/bug-report.md
index 2a1b732..1164a23 100644
--- a/.github/ISSUE_TEMPLATE/bug-report.md
+++ b/.github/ISSUE_TEMPLATE/bug-report.md
@@ -1,10 +1,6 @@
----
-name: Bug report
-about: Create a report to help us improve
-title: ""
-labels: bug
-assignees: ""
----
+______________________________________________________________________
+
+## name: Bug report about: Create a report to help us improve title: "" labels: bug assignees: ""
**Issue**
@@ -15,8 +11,11 @@
Provide at least:
- OS:
+
- Shell:
+
- Python version and path:
+
- `pip list` of the host python where `virtualenv` is installed:
```console
diff --git a/.github/ISSUE_TEMPLATE/feature-request.md b/.github/ISSUE_TEMPLATE/feature-request.md
index 8714ceb..e9a6b50 100644
--- a/.github/ISSUE_TEMPLATE/feature-request.md
+++ b/.github/ISSUE_TEMPLATE/feature-request.md
@@ -1,10 +1,6 @@
----
-name: Feature request
-about: Suggest an enhancement for this project
-title: ""
-labels: enhancement
-assignees: ""
----
+______________________________________________________________________
+
+## name: Feature request about: Suggest an enhancement for this project title: "" labels: enhancement assignees: ""
**What's the problem this feature will solve?**
diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml
index 4f8cdfc..f076730 100644
--- a/.github/workflows/check.yaml
+++ b/.github/workflows/check.yaml
@@ -6,11 +6,9 @@
pull_request:
schedule:
- cron: "0 8 * * *"
-
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
-
jobs:
test:
name: 🧪 test ${{ matrix.py }} - ${{ matrix.os }}
@@ -43,15 +41,15 @@
- macos-15
- windows-2025-vs2026
include:
- - { os: macos-15, py: "brew@3.14" }
- - { os: macos-15, py: "brew@3.13" }
- - { os: macos-15, py: "brew@3.12" }
- - { os: macos-15, py: "brew@3.11" }
- - { os: macos-15, py: "brew@3.10" }
+ - {os: macos-15, py: "brew@3.14"}
+ - {os: macos-15, py: "brew@3.13"}
+ - {os: macos-15, py: "brew@3.12"}
+ - {os: macos-15, py: "brew@3.11"}
+ - {os: macos-15, py: "brew@3.10"}
exclude:
- - { os: windows-2025-vs2026, py: "graalpy-24.1" }
- - { os: windows-2025-vs2026, py: "pypy-3.10" }
- - { os: windows-2025-vs2026, py: "pypy-3.9" }
+ - {os: windows-2025-vs2026, py: "graalpy-24.1"}
+ - {os: windows-2025-vs2026, py: "pypy-3.10"}
+ - {os: windows-2025-vs2026, py: "pypy-3.9"}
steps:
- name: 📥 Checkout code
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
@@ -187,10 +185,10 @@
- upgrade
- zipapp
exclude:
- - { os: windows-2025-vs2026, tox_env: docs }
- - { os: windows-2025-vs2026, tox_env: readme }
- - { os: windows-2025-vs2026, tox_env: type }
- - { os: windows-2025-vs2026, tox_env: type-3.9 }
+ - {os: windows-2025-vs2026, tox_env: docs}
+ - {os: windows-2025-vs2026, tox_env: readme}
+ - {os: windows-2025-vs2026, tox_env: type}
+ - {os: windows-2025-vs2026, tox_env: type-3.9}
steps:
- name: 📥 Checkout code
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
diff --git a/.github/workflows/pre-release.yaml b/.github/workflows/pre-release.yaml
index d4e18ce..f303ff1 100644
--- a/.github/workflows/pre-release.yaml
+++ b/.github/workflows/pre-release.yaml
@@ -12,7 +12,6 @@
- minor
- patch
default: auto
-
jobs:
pre-release:
runs-on: ubuntu-24.04
diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml
index 0d91586..3c2840f 100644
--- a/.github/workflows/release.yaml
+++ b/.github/workflows/release.yaml
@@ -2,10 +2,8 @@
on:
push:
tags: ["*.*.*"]
-
env:
dists-artifact-name: python-package-distributions
-
jobs:
build:
runs-on: ubuntu-24.04
@@ -39,7 +37,6 @@
with:
name: virtualenv-zipapp
path: virtualenv.pyz
-
publish:
needs: build
runs-on: ubuntu-24.04
@@ -86,7 +83,6 @@
git add public/virtualenv.pyz public/version.txt
git commit -m "update virtualenv to ${GITHUB_REF_NAME}"
git push origin main
-
rollback:
if: ${{ always() && needs.build.result == 'success' && needs.publish.result == 'failure' }}
needs:
diff --git a/.github/workflows/upgrade.yaml b/.github/workflows/upgrade.yaml
index 47ec994..f50aade 100644
--- a/.github/workflows/upgrade.yaml
+++ b/.github/workflows/upgrade.yaml
@@ -3,10 +3,8 @@
schedule:
- cron: "0 10 * * *" # daily at 10:00 UTC
workflow_dispatch:
-
permissions:
contents: read
-
jobs:
upgrade:
name: Upgrade embedded pip/setuptools/wheel
diff --git a/.markdownlint.yaml b/.markdownlint.yaml
index 33a1615..b0571c3 100644
--- a/.markdownlint.yaml
+++ b/.markdownlint.yaml
@@ -3,7 +3,6 @@
headers: false
line_length: 120
tables: false
-
MD046:
style: fenced
no-emphasis-as-header: false
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 2ba39bf..cadaea7 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -28,13 +28,20 @@
- id: ruff-format
- id: ruff
args: ["--fix", "--unsafe-fixes", "--exit-non-zero-on-fix"]
- - repo: https://github.com/rbubley/mirrors-prettier
- rev: "v3.9.5"
+ - repo: https://github.com/google/yamlfmt
+ rev: "v0.21.0"
hooks:
- - id: prettier
+ - id: yamlfmt
+ - repo: local
+ hooks:
+ - id: mdformat
+ name: mdformat
+ entry: mdformat --wrap 120
+ language: python
+ types: [markdown]
additional_dependencies:
- - prettier@3.3.3
- - "@prettier/plugin-xml@3.4.1"
+ - mdformat-gfm>=1
+ - mdformat-ruff>=0.1.3
- repo: https://github.com/LilSpazJoekp/docstrfmt
rev: v2.2.0
hooks: