Skip to content

Commit

Permalink
CRLF->LF
Browse files Browse the repository at this point in the history
  • Loading branch information
entorb committed Apr 19, 2024
1 parent 7ac73f8 commit 4c7e19f
Show file tree
Hide file tree
Showing 2 changed files with 116 additions and 116 deletions.
226 changes: 113 additions & 113 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,113 +1,113 @@
# install package
# pip3 install pre-commit
# register as git commit-hook to run automatically
# pre-commit install
# run manually
# pre-commit run --all-files
# or
# pre-commit run --files myFile1.py myFile2.py
# update hooks to latest version
# pre-commit autoupdate

# ruff replaces flake8, pyupgrade, and autoflake
# ruff-format replaces black, isort, add-trailing-comma

exclude: |
(?x)^(
.*.vscode/launch.json |
)$
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-added-large-files
args: ["--maxkb=500"]
- id: check-ast
- id: check-builtin-literals
- id: check-case-conflict
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-json
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: check-symlinks
- id: check-toml
- id: check-vcs-permalinks
- id: check-xml
- id: check-yaml
- id: debug-statements
- id: destroyed-symlinks
# - id: detect-aws-credentials
- id: detect-private-key
# conflict with black below
# - id: double-quote-string-fixer
- id: end-of-file-fixer
- id: file-contents-sorter
- id: fix-byte-order-marker
- id: fix-encoding-pragma
args: ["--remove"]
- id: forbid-new-submodules
# - id: forbid-submodules
# args: ['--fix=lf']
- id: mixed-line-ending
- id: name-tests-test
# - id: no-commit-to-branch
# args: [--branch, staging]
# not, since it decodes utf-8
# - id: pretty-format-json
# args: ["--autofix"]
- id: requirements-txt-fixer
# - id: sort-simple-yaml
- id: trailing-whitespace

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.1.14"
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format

- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
hooks:
- id: python-check-blanket-noqa
# not, since '# type: ignore' is ok for me
# - id: python-check-blanket-type-ignore
- id: python-check-mock-methods
- id: python-no-eval
- id: python-no-log-warn
- id: python-use-type-annotations
- id: rst-backticks
- id: rst-directive-colons
- id: rst-inline-touching-normal
- id: text-unicode-replacement-char

# # mypy: only for projects where type hints have been added
# - repo: https://github.com/pre-commit/mirrors-mypy
# rev: v1.8.0
# hooks:
# - id: mypy

- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.38.0
hooks:
- id: markdownlint
args: ["--disable", "MD013"]

# # code spell check via cspell
- repo: https://github.com/streetsidesoftware/cspell-cli
rev: v8.3.0
hooks:
- id: cspell

# # Perl
# - repo: https://github.com/henryykt/pre-commit-perl
# rev: v0.0.5
# hooks:
# # - id: perlcritic
# - id: perltidy
# # - id: perlimports

default_language_version:
python: python3.10
# install package
# pip3 install pre-commit
# register as git commit-hook to run automatically
# pre-commit install
# run manually
# pre-commit run --all-files
# or
# pre-commit run --files myFile1.py myFile2.py
# update hooks to latest version
# pre-commit autoupdate

# ruff replaces flake8, pyupgrade, and autoflake
# ruff-format replaces black, isort, add-trailing-comma

exclude: |
(?x)^(
.*.vscode/launch.json |
)$
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-added-large-files
args: ["--maxkb=500"]
- id: check-ast
- id: check-builtin-literals
- id: check-case-conflict
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-json
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: check-symlinks
- id: check-toml
- id: check-vcs-permalinks
- id: check-xml
- id: check-yaml
- id: debug-statements
- id: destroyed-symlinks
# - id: detect-aws-credentials
- id: detect-private-key
# conflict with black below
# - id: double-quote-string-fixer
- id: end-of-file-fixer
- id: file-contents-sorter
- id: fix-byte-order-marker
- id: fix-encoding-pragma
args: ["--remove"]
- id: forbid-new-submodules
# - id: forbid-submodules
# args: ['--fix=lf']
- id: mixed-line-ending
- id: name-tests-test
# - id: no-commit-to-branch
# args: [--branch, staging]
# not, since it decodes utf-8
# - id: pretty-format-json
# args: ["--autofix"]
- id: requirements-txt-fixer
# - id: sort-simple-yaml
- id: trailing-whitespace

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.1.14"
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format

- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
hooks:
- id: python-check-blanket-noqa
# not, since '# type: ignore' is ok for me
# - id: python-check-blanket-type-ignore
- id: python-check-mock-methods
- id: python-no-eval
- id: python-no-log-warn
- id: python-use-type-annotations
- id: rst-backticks
- id: rst-directive-colons
- id: rst-inline-touching-normal
- id: text-unicode-replacement-char

# # mypy: only for projects where type hints have been added
# - repo: https://github.com/pre-commit/mirrors-mypy
# rev: v1.8.0
# hooks:
# - id: mypy

- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.38.0
hooks:
- id: markdownlint
args: ["--disable", "MD013"]

# # code spell check via cspell
- repo: https://github.com/streetsidesoftware/cspell-cli
rev: v8.3.0
hooks:
- id: cspell

# # Perl
# - repo: https://github.com/henryykt/pre-commit-perl
# rev: v0.0.5
# hooks:
# # - id: perlcritic
# - id: perltidy
# # - id: perlimports

default_language_version:
python: python3.10
6 changes: 3 additions & 3 deletions config.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"date_start": "2021-12-30"
}
{
"date_start": "2021-12-30"
}

0 comments on commit 4c7e19f

Please sign in to comment.