-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0508f3f
commit 13dc088
Showing
80 changed files
with
2,252 additions
and
1,686 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,46 @@ | ||
# Check http://editorconfig.org for more information | ||
# Useful: https://ukupat.github.io/tabs-or-spaces/ | ||
# Check https://editorconfig.org for more information | ||
# These are derived from https://ukupat.github.io/tabs-or-spaces/ | ||
# The most majority indentation style was selected for each language | ||
root = true | ||
|
||
# In 2022, most languages are 2-space | ||
# We assume TypeScript to be 2-space because JavaScript and JSX so strongly are, | ||
# and we'd rather keep those two consistent. | ||
[*] | ||
end_of_line = lf | ||
charset = utf-8 | ||
indent_size = 4 | ||
indent_style = space | ||
indent_size = 2 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
indent_style = space | ||
|
||
[*.{yml,yaml,json,scala,coffee,css,js,sh,sql,tex,xml,html,htm,hs,ml,pp,R,rb}] | ||
indent_size = 2 | ||
# 4-space, traditionally compiled without bytecode or JIT -- | ||
# Julia, Rust, D, C++, Objective-C, C, Fortran, and Assembly | ||
# We exclude Fortran fixed-form (e.g. .f/.ftn); these have weird indentation rules | ||
# C++ is even between 4-space and 2-space, while C is even between 4-space and tab | ||
[*.{julia,rs,d,cpp,c,m,mm,f[0-9][0-9],inc,h,s,asm}] | ||
indent_size = 4 | ||
|
||
[*.md] | ||
indent_size = 2 | ||
trim_trailing_whitespace = false | ||
# 4-space, generally VM -- | ||
# Erlang, F#, Python, PHP (in 8+), Java, Kotlin, Groovy (+Gradle), F#, erlang, Swift | ||
[*.{py,php,java,groovy,gradle,kt,kts,cs,fs,fsx,fsi,erl,swift}] | ||
indent_size = 4 | ||
|
||
# 4-space, generally interpreted -- | ||
# Lua, Vala, Perl, PowerShell, Batch | ||
# Lua and Vala are about even between 4-space and tab | ||
[*.{lua,vala,pl,perl,ps1,bat}] | ||
indent_size = 4 | ||
|
||
[*.{go,lua,vala,v}] | ||
# tab-based -- | ||
# Go, Haxe, Verilog, System Verilog, SAS, and AutoIt | ||
[*.{go,hx,v,sv,sas,au3}] | ||
indent_style = tab | ||
|
||
# CSV-like | ||
[*.{tsv,tab,csv}] | ||
# do NOT add a newline or trim whitespace | ||
# indent_style=tab seems safer but is probably not necessary | ||
indent_style = tab | ||
trim_trailing_whitespace = false | ||
insert_final_newline = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,68 @@ | ||
# SPDX-License-Identifier Apache-2.0 | ||
# Source: https:/dmyersturnbull/typed-dfs | ||
# | ||
# Check out https://pre-commit.com/ for documentation | ||
# and https://pre-commit.com/hooks.html for more hooks | ||
minimum_pre_commit_version: 2.20.0 | ||
minimum_pre_commit_version: 3.3.3 | ||
repos: | ||
# --- Built-in hooks -- | ||
- repo: https:/pre-commit/pre-commit-hooks | ||
rev: v4.3.0 | ||
rev: v4.4.0 | ||
hooks: | ||
- id: check-symlinks | ||
- id: check-executables-have-shebangs | ||
- id: check-case-conflict | ||
- id: fix-byte-order-marker | ||
- id: end-of-file-fixer | ||
- id: check-merge-conflict | ||
- id: check-toml | ||
- id: check-json | ||
- id: fix-encoding-pragma | ||
args: ["--remove"] | ||
- id: check-executables-have-shebangs | ||
- id: check-shebang-scripts-are-executable | ||
- id: trailing-whitespace | ||
args: ["--markdown-linebreak-ext=md"] | ||
- id: check-symlinks | ||
- id: check-yaml | ||
exclude: ^recipes/.* | ||
# --- Commit messages --- | ||
- id: end-of-file-fixer | ||
- id: fix-byte-order-marker | ||
exclude: "^tests/(?:resources|data)/" | ||
- id: fix-encoding-pragma | ||
args: [--remove] | ||
- id: mixed-line-ending | ||
args: ["--fix=lf"] | ||
- id: trailing-whitespace | ||
|
||
# --- Commit msg checks --- | ||
- repo: https:/commitizen-tools/commitizen | ||
rev: v2.28.0 | ||
rev: v3.5.2 | ||
hooks: | ||
- id: commitizen | ||
stages: ["commit-msg"] | ||
# --- Strip output from .ipynb files --- | ||
- repo: https:/kynan/nbstripout | ||
rev: 0.6.0 | ||
|
||
- repo: https:/asottile/pyupgrade | ||
rev: v3.7.0 | ||
hooks: | ||
- id: nbstripout | ||
files: ".ipynb" | ||
# --- Linters --- | ||
- id: pyupgrade | ||
args: [--py310-plus] | ||
|
||
- repo: https:/pycqa/isort | ||
rev: 5.10.1 | ||
rev: 5.12.0 | ||
hooks: | ||
- id: isort | ||
args: ["--profile", "black"] | ||
args: [--profile, black] | ||
|
||
- repo: https:/psf/black | ||
rev: 22.6.0 | ||
rev: 23.3.0 | ||
hooks: | ||
- id: black | ||
|
||
- repo: https:/asottile/blacken-docs | ||
rev: v1.12.1 | ||
rev: 1.14.0 | ||
hooks: | ||
- id: blacken-docs | ||
additional_dependencies: ["black==22.6.0"] | ||
|
||
- repo: https:/pre-commit/mirrors-prettier | ||
rev: v2.7.1 | ||
hooks: | ||
- id: prettier | ||
stages: [commit] | ||
args: [--print-width, "100"] | ||
exclude: ^recipes/.* | ||
- repo: https:/nbQA-dev/nbQA | ||
rev: 1.4.0 | ||
|
||
- repo: https:/macisamuele/language-formatters-pre-commit-hooks | ||
rev: v2.9.0 | ||
hooks: | ||
- id: nbqa-black | ||
- id: pretty-format-ini | ||
args: [--autofix] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.