| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,7 +4,8 @@ repos: | |||
| 4 | 4 | hooks: | |
| 5 | 5 | - id: codespell | |
| 6 | 6 | additional_dependencies: [tomli] | |
| 7 | - args: ["--write-changes"] | ||
| 7 | + # args: ["--write-changes"] # consider enabling for auto-fif | ||
| 8 | + exclude: "test/fixtures/" | ||
| 8 | 9 | ||
| 9 | 10 | - repo: https://github.com/astral-sh/ruff-pre-commit | |
| 10 | 11 | rev: v0.4.3 | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -101,7 +101,7 @@ In the less common case that you do not want to install test dependencies, `pip | |||
| 101 | 101 | ||
| 102 | 102 | #### With editable *dependencies* (not preferred, and rarely needed) | |
| 103 | 103 | ||
| 104 | - In rare cases, you may want to work on GitPython and one or both of its [gitdb](https://github.com/gitpython-developers/gitdb) and [smmap](https://github.com/gitpython-developers/smmap) dependencies at the same time, with changes in your local working copy of gitdb or smmap immediatley reflected in the behavior of your local working copy of GitPython. This can be done by making editable installations of those dependencies in the same virtual environment where you install GitPython. | ||
| 104 | + In rare cases, you may want to work on GitPython and one or both of its [gitdb](https://github.com/gitpython-developers/gitdb) and [smmap](https://github.com/gitpython-developers/smmap) dependencies at the same time, with changes in your local working copy of gitdb or smmap immediately reflected in the behavior of your local working copy of GitPython. This can be done by making editable installations of those dependencies in the same virtual environment where you install GitPython. | ||
| 105 | 105 | ||
| 106 | 106 | If you want to do that *and* you want the versions in GitPython's git submodules to be used, then pass `-e git/ext/gitdb` and/or `-e git/ext/gitdb/gitdb/ext/smmap` to `pip install`. This can be done in any order, and in separate `pip install` commands or the same one, so long as `-e` appears before *each* path. For example, you can install GitPython, gitdb, and smmap editably in the currently active virtual environment this way: | |
| 107 | 107 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -20,7 +20,7 @@ https://github.com/gitpython-developers/GitPython/releases/tag/3.1.42 | |||
| 20 | 20 | 3.1.41 | |
| 21 | 21 | ====== | |
| 22 | 22 | ||
| 23 | - This release is relevant for security as it fixes a possible arbitary | ||
| 23 | + This release is relevant for security as it fixes a possible arbitrary | ||
| 24 | 24 | code execution on Windows. | |
| 25 | 25 | ||
| 26 | 26 | See this PR for details: https://github.com/gitpython-developers/GitPython/pull/1792 | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -568,11 +568,11 @@ def addToStack( | |||
| 568 | 568 | yield rval | |
| 569 | 569 | ||
| 570 | 570 | # Only continue to next level if this is appropriate! | |
| 571 | - nd = d + 1 | ||
| 572 | - if depth > -1 and nd > depth: | ||
| 571 | + next_d = d + 1 | ||
| 572 | + if depth > -1 and next_d > depth: | ||
| 573 | 573 | continue | |
| 574 | 574 | ||
| 575 | - addToStack(stack, item, branch_first, nd) | ||
| 575 | + addToStack(stack, item, branch_first, next_d) | ||
| 576 | 576 | # END for each item on work stack | |
| 577 | 577 | ||
| 578 | 578 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -80,7 +80,6 @@ lint.unfixable = [ | |||
| 80 | 80 | ] | |
| 81 | 81 | ||
| 82 | 82 | [tool.codespell] | |
| 83 | - skip = 'test/fixtures/reflog_*' | ||
| 84 | 83 | ignore-words-list="gud,doesnt" | |
| 85 | 84 | #count = true | |
| 86 | - quiet-level = 3 | ||
| 85 | + quiet-level = 3 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -52,7 +52,7 @@ | |||
| 52 | 52 | ||
| 53 | 53 | _streams_n_substrings = ( | |
| 54 | 54 | None, | |
| 55 | - "steram", | ||
| 55 | + "stream", | ||
| 56 | 56 | "ομορφο stream", | |
| 57 | 57 | ) | |
| 58 | 58 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1018,7 +1018,7 @@ class Mocked: | |||
| 1018 | 1018 | @pytest.mark.xfail( | |
| 1019 | 1019 | type(_win_bash_status) is WinBashStatus.Absent, | |
| 1020 | 1020 | reason="Can't run a hook on Windows without bash.exe.", | |
| 1021 | - rasies=HookExecutionError, | ||
| 1021 | + raises=HookExecutionError, | ||
| 1022 | 1022 | ) | |
| 1023 | 1023 | @pytest.mark.xfail( | |
| 1024 | 1024 | type(_win_bash_status) is WinBashStatus.WslNoDistro, | |
@@ -1077,7 +1077,7 @@ def test_hook_uses_shell_not_from_cwd(self, rw_dir, case): | |||
| 1077 | 1077 | @pytest.mark.xfail( | |
| 1078 | 1078 | type(_win_bash_status) is WinBashStatus.Absent, | |
| 1079 | 1079 | reason="Can't run a hook on Windows without bash.exe.", | |
| 1080 | - rasies=HookExecutionError, | ||
| 1080 | + raises=HookExecutionError, | ||
| 1081 | 1081 | ) | |
| 1082 | 1082 | @pytest.mark.xfail( | |
| 1083 | 1083 | type(_win_bash_status) is WinBashStatus.WslNoDistro, | |
@@ -1120,7 +1120,7 @@ def test_pre_commit_hook_fail(self, rw_repo): | |||
| 1120 | 1120 | @pytest.mark.xfail( | |
| 1121 | 1121 | type(_win_bash_status) is WinBashStatus.Absent, | |
| 1122 | 1122 | reason="Can't run a hook on Windows without bash.exe.", | |
| 1123 | - rasies=HookExecutionError, | ||
| 1123 | + raises=HookExecutionError, | ||
| 1124 | 1124 | ) | |
| 1125 | 1125 | @pytest.mark.xfail( | |
| 1126 | 1126 | type(_win_bash_status) is WinBashStatus.Wsl, | |
| Back | FazBrowse Home | New Git URL |
0 commit comments