mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-28 06:40:11 +01:00
python3.6 causes weird venv issues for at least josh11b -- not sure why. ``` $ ls -l /usr/bin/python3.6 -rwxr-xr-x 2 root root 4538776 Jan 2 2019 /usr/bin/python3.6* $ virtualenv -p python3.6 venv RuntimeError: failed to find interpreter for Builtin discover of python_spec='python3.6' ```
53 lines
1.7 KiB
YAML
53 lines
1.7 KiB
YAML
# See https://pre-commit.com for more information
|
|
# See https://pre-commit.com/hooks.html for more hooks
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v2.4.0
|
|
hooks:
|
|
- id: check-added-large-files
|
|
- id: check-case-conflict
|
|
- id: check-executables-have-shebangs
|
|
- id: check-merge-conflict
|
|
- id: check-symlinks
|
|
- id: check-yaml
|
|
- id: detect-private-key
|
|
- id: end-of-file-fixer
|
|
- id: mixed-line-ending
|
|
args: ['--fix=lf']
|
|
- id: trailing-whitespace
|
|
- repo: https://github.com/codespell-project/codespell
|
|
rev: v1.17.1
|
|
hooks:
|
|
- id: codespell
|
|
args: ['-L', 'copyable,circularly']
|
|
exclude: '^src/jekyll/Gemfile.lock$'
|
|
- repo: local
|
|
hooks:
|
|
- id: markdown-toc
|
|
name: Update table of contents
|
|
description: Runs https://github.com/jonschlinkert/markdown-toc
|
|
entry: src/scripts/pre-commit-toc.js
|
|
language: node
|
|
additional_dependencies: [markdown-toc]
|
|
files: .*\.md$
|
|
exclude: ^src/jekyll/theme/
|
|
- id: proposal-list
|
|
name: Update list of proposals
|
|
description: Updates the list of proposals in proposals/README.md
|
|
entry: src/scripts/pre-commit-proposal-list.py
|
|
language: python
|
|
language_version: python3
|
|
files: ^proposals/(README|p.*)\.md$
|
|
pass_filenames: false
|
|
# Formatters should be run late so that they can re-format any prior changes.
|
|
- repo: https://github.com/psf/black
|
|
rev: stable
|
|
hooks:
|
|
- id: black
|
|
language_version: python3
|
|
- repo: https://github.com/prettier/prettier
|
|
rev: 2.0.5
|
|
hooks:
|
|
- id: prettier
|
|
exclude: ^src/jekyll/theme/
|