David Paz
a3aa3be552
Updated README docs
...
Added hook to hook list in README documentation
2022-07-17 10:49:51 +02:00
David Paz
912f1a5f41
Allow for more control in template variables
...
Sepearate commit message coming from git for handling in template.
2022-07-15 17:45:52 +02:00
David Paz
f072bb622f
Move get_template_path function to pakcage utils
...
Moved out the function from testing package to project main package.
2022-07-15 14:49:26 +02:00
David Paz
51e5b74f80
Refactor jinja usage
...
Moved out templates to root dir and start using only jinja template
instead of the complete Environment class. Requirements here are quite
simple.
2022-07-15 14:40:59 +02:00
David Paz
ac248b5011
Add test for multiple patterns
2022-07-15 10:05:35 +02:00
David Paz
e01e1717b1
Add prepare-commit-msg hook
...
Added new hook for templating prepare-commit-msg hook. Added 2
templates to use keepgin `prepare_commit_msg_append.j2`as default.
The idea is that developers could create their own templates accordingly
to teams commit conventions and override them in the hook arguments when
configuring it.
2022-07-15 01:00:16 +02:00
Anthony Sottile
18c2496e4c
Merge pull request #787 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2022-07-11 17:44:25 -04:00
pre-commit-ci[bot]
c2b640f9cb
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/reorder_python_imports: v3.3.0 → v3.8.1](https://github.com/asottile/reorder_python_imports/compare/v3.3.0...v3.8.1 )
- [github.com/asottile/pyupgrade: v2.34.0 → v2.37.1](https://github.com/asottile/pyupgrade/compare/v2.34.0...v2.37.1 )
2022-07-11 21:25:32 +00:00
Anthony Sottile
35d73e14d0
Merge pull request #784 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2022-07-04 18:02:36 -04:00
pre-commit-ci[bot]
dd347f86bc
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/reorder_python_imports: v3.1.0 → v3.3.0](https://github.com/asottile/reorder_python_imports/compare/v3.1.0...v3.3.0 )
2022-07-04 21:58:20 +00:00
Anthony Sottile
b0f06dc9f2
Merge pull request #783 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2022-06-13 18:47:44 -04:00
pre-commit-ci[bot]
2345f2efb2
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/pyupgrade: v2.32.1 → v2.34.0](https://github.com/asottile/pyupgrade/compare/v2.32.1...v2.34.0 )
- [github.com/pre-commit/mirrors-mypy: v0.960 → v0.961](https://github.com/pre-commit/mirrors-mypy/compare/v0.960...v0.961 )
2022-06-13 21:56:48 +00:00
Anthony Sottile
3298ddab3c
v4.3.0
2022-06-07 10:08:29 -07:00
Anthony Sottile
526d9b0c3d
Merge pull request #779 from pre-commit/test-conventions
...
name-test-tests: add --pytest-test-first convention
2022-06-07 12:21:34 -04:00
Anthony Sottile
412564fa95
add --pytest-test-first convention
2022-06-07 09:10:42 -07:00
Anthony Sottile
621f50e155
Merge pull request #778 from pre-commit/asottile-patch-1
...
set stages for `check-added-large-files`
2022-06-07 09:23:10 -04:00
Anthony Sottile
d17fe994c6
set stages for check-added-large-files
...
looks like this was accidentally running on `commit-msg` hooks
2022-06-06 12:24:03 -04:00
Anthony Sottile
2b6a486744
Merge pull request #771 from DanielNoord/tomli
...
Use tomli and tomllib instead of toml
2022-05-31 10:52:18 -04:00
Daniël van Noord
fc88f3fa49
Use tomli and tomllib instead of toml
2022-05-31 10:48:00 -04:00
Anthony Sottile
6a5ae704e5
Merge pull request #776 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2022-05-30 16:46:31 -04:00
pre-commit-ci[bot]
091d224a6c
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/pre-commit/mirrors-mypy: v0.950 → v0.960](https://github.com/pre-commit/mirrors-mypy/compare/v0.950...v0.960 )
2022-05-30 20:33:16 +00:00
Anthony Sottile
08792de8d1
Merge pull request #774 from mdeweerd/updateChmodHelp
...
Add instruction to change executable mode on windows
2022-05-26 11:36:37 -04:00
MDW
bd70bc119d
Add instruction to change executable mode on windows
2022-05-26 17:31:24 +02:00
Anthony Sottile
0a88f14e07
Merge pull request #730 from Kurt-von-Laven/support-git-file-mode-false
...
Check Git core.fileMode rather than infer from OS.
2022-05-26 09:49:49 -04:00
Anthony Sottile
974bb4de56
Merge pull request #764 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2022-05-09 14:10:52 -07:00
pre-commit-ci[bot]
821fb690da
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/pyupgrade: v2.32.0 → v2.32.1](https://github.com/asottile/pyupgrade/compare/v2.32.0...v2.32.1 )
2022-05-09 20:28:29 +00:00
Anthony Sottile
4d46e7884a
Merge pull request #761 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2022-05-02 16:22:44 -04:00
pre-commit-ci[bot]
54611ef08a
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/reorder_python_imports: v3.0.1 → v3.1.0](https://github.com/asottile/reorder_python_imports/compare/v3.0.1...v3.1.0 )
- [github.com/pre-commit/mirrors-mypy: v0.942 → v0.950](https://github.com/pre-commit/mirrors-mypy/compare/v0.942...v0.950 )
2022-05-02 20:18:30 +00:00
Kurt von Laven
2cbabf90cc
Check Git core.fileMode rather than infer from OS.
...
There was already a guard preventing the check-executables-have-shebangs
hook from raising false positives on win32 by looking up the Git file
mode rather than relying on the file mode in the file system. Git already
automatically probes the file system for executable bit support. Leverage
Git's core.fileMode config variable to prevent false positives on all
file systems that don't track executable bits.
2022-04-28 11:23:36 -07:00
Anthony Sottile
f5c26753e4
Merge pull request #759 from bagerard/bagerard-patch-check-merge-conflict-doc
...
Document check-merge-conflict argument
2022-04-25 09:01:38 -04:00
Bastien Gérard
aa56da8535
Document check-merge-conflict argument
...
Document --assume-in-merge in README
2022-04-25 12:20:30 +02:00
Anthony Sottile
5d1ab6d7f3
Merge pull request #754 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2022-04-18 16:08:18 -04:00
pre-commit-ci[bot]
3a4b21ad3f
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/add-trailing-comma: v2.2.2 → v2.2.3](https://github.com/asottile/add-trailing-comma/compare/v2.2.2...v2.2.3 )
2022-04-18 19:50:45 +00:00
Anthony Sottile
c7a7ffb9a7
Merge pull request #751 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2022-04-11 17:04:34 -04:00
pre-commit-ci[bot]
5d69701a83
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/pyupgrade: v2.31.1 → v2.32.0](https://github.com/asottile/pyupgrade/compare/v2.31.1...v2.32.0 )
2022-04-11 20:55:02 +00:00
Anthony Sottile
db7346d375
v4.2.0
2022-04-06 17:12:57 -04:00
Anthony Sottile
372afe4210
Merge pull request #748 from pre-commit/adjust-error-outputs
...
adjust error outputs to be more standardized
2022-04-06 17:02:39 -04:00
Anthony Sottile
b13ff9b868
adjust error outputs to be more standardized
2022-04-06 16:59:53 -04:00
Anthony Sottile
3adbd36b39
Merge pull request #747 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2022-04-04 16:03:30 -04:00
pre-commit-ci[bot]
a9b21c267c
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/setup-cfg-fmt: v1.20.0 → v1.20.1](https://github.com/asottile/setup-cfg-fmt/compare/v1.20.0...v1.20.1 )
- [github.com/asottile/add-trailing-comma: v2.2.1 → v2.2.2](https://github.com/asottile/add-trailing-comma/compare/v2.2.1...v2.2.2 )
2022-04-04 19:59:47 +00:00
Anthony Sottile
f5894ac96a
Merge pull request #745 from pre-commit/all-repos_autofix_reorder-pre-commit-config
...
reorder pre-commit config
2022-03-25 15:00:54 -04:00
Anthony Sottile
1e48e904a8
reorder pre-commit config
...
Committed via https://github.com/asottile/all-repos
2022-03-25 14:12:21 -04:00
Anthony Sottile
48c60be15b
Merge pull request #744 from pre-commit/all-repos_autofix_master-to-main
...
Update default branch to main
2022-03-24 15:13:31 -04:00
Anthony Sottile
202ec6b8f5
Update default branch to main
...
Committed via https://github.com/asottile/all-repos
2022-03-24 15:07:45 -04:00
Anthony Sottile
c1c8b0a543
Merge pull request #742 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2022-03-21 19:03:58 -04:00
pre-commit-ci[bot]
30609f1b6d
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/pre-commit/mirrors-mypy: v0.940 → v0.941](https://github.com/pre-commit/mirrors-mypy/compare/v0.940...v0.941 )
2022-03-21 22:31:27 +00:00
Anthony Sottile
85db7df311
Merge pull request #741 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2022-03-14 18:30:17 -04:00
pre-commit-ci[bot]
aabb4777dd
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/reorder_python_imports: v2.7.1 → v3.0.1](https://github.com/asottile/reorder_python_imports/compare/v2.7.1...v3.0.1 )
- [github.com/asottile/pyupgrade: v2.31.0 → v2.31.1](https://github.com/asottile/pyupgrade/compare/v2.31.0...v2.31.1 )
- [github.com/pre-commit/mirrors-mypy: v0.931 → v0.940](https://github.com/pre-commit/mirrors-mypy/compare/v0.931...v0.940 )
2022-03-14 22:18:05 +00:00
Anthony Sottile
da7c2b3cdb
Merge pull request #739 from pre-commit/all-repos_autofix_gitignore-cleanup
...
remove unneeded gitignore lines
2022-03-13 20:08:18 -04:00
Anthony Sottile
84e93fcbb5
remove unneeded gitignore lines
...
- coverage-html: coverage>=6.2 writes a .gitignore file
- mypy_cache: mypy>=0.770 writes a .gitignore file
- pytest_cache: pytest>=3.8.1 writes a .gitignore file
- venv: virtualenv>=20.0.21 writes a .gitignore file
Committed via https://github.com/asottile/all-repos
2022-03-13 19:55:42 -04:00