Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable pre-commit with a minimal configuration #171

Merged
merged 2 commits into from
Oct 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,3 @@ tools/.*\.[17]$
tools/doc/man-date.ent

clib/

19 changes: 19 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Learn more about this config here: https://pre-commit.com/

# To enable these pre-commit hooks run:
# `brew install pre-commit` or `python3 -m pip install pre-commit`
# Then in the project root directory run `pre-commit install`

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
# - id: check-builtin-literals
# - id: check-executables-have-shebangs
# - id: check-shebang-scripts-are-executable
# - id: check-toml
# - id: check-yaml
# - id: detect-private-key
- id: end-of-file-fixer
# - id: mixed-line-ending
# - id: trailing-whitespace
3 changes: 0 additions & 3 deletions LICENSE-MPL-RabbitMQ
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,3 @@ EXHIBIT A -Mozilla Public License.
the notices in the Source Code files of the Original Code. You should
use the text of this Exhibit A rather than the text found in the
Original Code Source Code for Your Modifications.]



2 changes: 0 additions & 2 deletions benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,3 @@ def bench_basic_consume(iterations=10000, bytes=None):
args = parser.parse_args()
for benchmark in benchmarks:
benchmark(args.iters, bytes=args.bytes)


1 change: 0 additions & 1 deletion funtests/disabled_basic_get_leak.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,3 @@
if not i % 1000:
print(i)
os.system('sh -c "ps auxww | grep %d | grep -v grep "' % os.getpid())

1 change: 0 additions & 1 deletion manylinux1
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
docker run --rm -v `pwd`:/workspace:z quay.io/pypa/manylinux1_x86_64 /workspace/build-manylinux1-wheels.sh

Loading