Skip to content

Commit 3f8ed8f

Browse files
committed
Edit comments on precommit config file
1 parent 1698792 commit 3f8ed8f

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

.pre-commit-config.yaml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,55 @@
1-
# pre-commit is a tool that you run locally
2-
# to perform a predefined set of tasks manually and/or
3-
# automatically before git commits are made.
4-
# Here we are using pre-commit with the precommit.ci bot to implement
5-
# code fixes automagically in pr's. You will still want to install pre-commit
6-
# to run locally
7-
# Config reference: https://pre-commit.com/#pre-commit-configyaml---top-level
8-
# To run on a pr, add a comment with the text "pre-commit.ci run"
9-
# Common tasks
10-
#
11-
# - Run on all files: pre-commit run --all-files
12-
# - Register git hooks: pre-commit install --install-hooks
1+
# pre-commit (https://pre-commit.com/) is a tool that runs source code checks
2+
# such as linting, formatting, and code style.
3+
4+
# CI
5+
# pyosMeta uses pre-commit with the precommit.ci bot to check pull requests.
6+
# Configuration reference doc: https://pre-commit.com/#pre-commit-configyaml---top-level
7+
8+
# Developers
9+
# You may want to install pre-commit to run locally on each minimum_pre_commit_version
10+
# See https://pre-commit.com/#install
11+
# To set up pre-commit hooks: pre-commit install
12+
# To run on all files: pre-commit run --all-files
1313

1414
ci:
15+
# pyosMeta disables autofixing of PRs to simplify new contributor experience and cleaner git history
1516
autofix_prs: false
16-
#skip: [flake8, end-of-file-fixer]
17-
autofix_commit_msg: |
18-
'[pre-commit.ci 🤖] Apply code format tools to PR'
19-
# Update hook versions every quarter (so we don't get hit with weekly update pr's)
17+
# Frequency of hook updates
2018
autoupdate_schedule: weekly
2119

2220
repos:
23-
# Misc commit checks
21+
# Out of the box hooks for pre-commit https://github.com/pre-commit/pre-commit-hooks
2422
- repo: https://github.com/pre-commit/pre-commit-hooks
2523
rev: v4.5.0
26-
# ref: https://github.com/pre-commit/pre-commit-hooks#hooks-available
2724
hooks:
28-
# Autoformat: Makes sure files end in a newline and only a newline.
25+
# Makes sure files end in a newline and only a newline.
2926
- id: end-of-file-fixer
30-
# Lint: Check for files with names that would conflict on a
31-
# case-insensitive filesystem like MacOS HFS+ or Windows FAT.
27+
# Check for files with names that would conflict on a case-insensitive filesystem like MacOS HFS+ or Windows FAT.
3228
- id: check-case-conflict
29+
# Remove trailing whitespace on code lines
3330
- id: trailing-whitespace
3431

32+
# Spelling hook
3533
- repo: https://github.com/codespell-project/codespell
3634
rev: v2.2.6
3735
hooks:
3836
- id: codespell
3937
additional_dependencies:
4038
- tomli
4139

42-
# Linting: Python code (see the file .flake8)
40+
# Linting hook for Python code (see the file .flake8)
4341
- repo: https://github.com/PyCQA/flake8
4442
rev: "7.0.0"
4543
hooks:
4644
- id: flake8
4745

46+
# Code formatting hook
4847
- repo: https://github.com/psf/black
4948
rev: 24.2.0
5049
hooks:
5150
- id: black
5251

52+
# Best practice style for module imports
5353
- repo: https://github.com/PyCQA/isort
5454
rev: 5.13.2
5555
hooks:

0 commit comments

Comments
 (0)