Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit28d6a26

Browse files
story645greglucas
andcommitted
precommit warns on main + instructions for fix in docs
Co-authored-by: Greg Lucas <greg.m.lucas@gmail.com>
1 parent0b8bd96 commit28d6a26

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

‎.pre-commit-config.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,11 @@ repos:
2323
-id:mixed-line-ending
2424
-id:name-tests-test
2525
args:["--pytest-test-first"]
26+
-id:no-commit-to-branch#default is master and main
27+
name:no commit to main branch. See "https://matplotlib.org/devdocs/devel/development_workflow.html#make-a-new-feature-branch"
2628
-id:trailing-whitespace
2729
exclude_types:[svg]
30+
2831
-repo:https://github.com/pycqa/flake8
2932
rev:6.0.0
3033
hooks:

‎doc/devel/development_workflow.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ what the changes in the branch are for. For example ``add-ability-to-fly``, or
6363
git branch my-new-feature upstream/main
6464
git checkout my-new-feature
6565

66+
If you started making changes on your local ``main`` branch, you can rename the
67+
branch to a feature branch::
68+
69+
git branch -m <newname>
70+
6671
Generally, you will want to keep your feature branches on your public GitHub
6772
fork of Matplotlib. To do this, you ``git push`` this new branch up to your
6873
GitHub repo. Generally (if you followed the instructions in these pages, and by
@@ -79,6 +84,7 @@ In git >= 1.7 you can ensure that the link is correctly set by using the
7984
From now on git will know that ``my-new-feature`` is related to the
8085
``my-new-feature`` branch in the GitHub repo.
8186

87+
8288
.. _edit-flow:
8389

8490
The editing workflow

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp