You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Black](https://github.com/psf/black)v21.7b0<!-- TODO: The next time we upgrade Black, we should also address the isort comment in .editorconfig -->for Python
-[Black](https://github.com/psf/black)v22.3.0 for Python 3, v21.12b0 for Python 2
7
7
-[autoflake](https://github.com/myint/autoflake) v1.4 for Python
8
-
-[isort](https://github.com/PyCQA/isort) v5.9.3 for Python
9
-
-[google-java-format](https://github.com/google/google-java-format) v1.11.0 for Java
10
-
-[ktfmt](https://github.com/facebookincubator/ktfmt) v0.28 for Kotlin
11
-
-[scalafmt](https://scalameta.org/scalafmt/)v2.7.5 for Scala
12
-
-[shfmt](https://github.com/mvdan/sh) v3.3.1 for Shell
8
+
-[isort](https://github.com/PyCQA/isort) v5.10.1 for Python
9
+
-[google-java-format](https://github.com/google/google-java-format) v1.15.0 for Java
10
+
-[ktfmt](https://github.com/facebookincubator/ktfmt) v0.35 for Kotlin
11
+
-[scalafmt](https://scalameta.org/scalafmt/)v3.5.1 for Scala
12
+
-[shfmt](https://github.com/mvdan/sh) v3.4.3 for Shell
13
13
-[xsltproc](http://www.xmlsoft.org/xslt/xsltproc.html) from libxslt v10135 for XML
14
-
-[terraform fmt](https://github.com/hashicorp/terraform)v0.11.14 and v0.12.29 for Terraform
15
-
-[ClangFormat](https://clang.llvm.org/docs/ClangFormat.html)v11.1.0 for Protobuf
16
-
-[SVGO](https://github.com/svg/svgo)v1.3.2 for SVG
14
+
-[terraform fmt](https://github.com/hashicorp/terraform)v1.1.8 for Terraform
15
+
-[ClangFormat](https://clang.llvm.org/docs/ClangFormat.html)v13.0.1 for Protobuf
16
+
-[SVGO](https://github.com/svg/svgo)v2.8.0 for SVG
17
17
- Custom regex transformations (basically [sed](https://en.wikipedia.org/wiki/Sed)), for example:
18
18
- Trimming trailing whitespace and newlines
19
19
- Removing unnecessary `coding` pragmas and `object` base classes in Python 3
@@ -31,11 +31,13 @@ Repo maintainers can declare this hook in `.pre-commit-config.yaml`:
31
31
rev: 1.5.4
32
32
hooks:
33
33
- id: duolingo
34
-
args: [--python-version=2] # Optional, defaults to Python 3
34
+
args: # Optional
35
+
- --python-version=2 # Defaults to Python 3
36
+
- --scala-version=3 # Defaults to Scala 2.12
35
37
```
36
38
37
39
Directories named `build` and `node_modules` are excluded by default - no need to declare them in the hook's `exclude` key.
38
40
39
-
Contributors can copy this repo's `.editorconfig` file to their home directory in order to have their [text editors and IDEs](https://editorconfig.org/) automatically pick up the same linter/formatter settings that this hook uses.
41
+
Contributors can copy or symlink this repo's `.editorconfig` file to their home directory in order to have their [text editors and IDEs](https://editorconfig.org/) automatically pick up the same linter/formatter settings that this hook uses.
40
42
41
43
_Duolingo is hiring! Apply at https://www.duolingo.com/careers_
0 commit comments