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
-[ESLint](https://eslint.org/) v10.2.0 for JS, TypeScript
11
-
-[Ruff](https://docs.astral.sh/ruff/) v0.15.10 for Python 3
12
-
-[Black](https://github.com/psf/black) v21.12b0 for Python 2
13
-
-[autoflake](https://github.com/myint/autoflake) v1.7.8 for Python <!-- TODO: Upgrade to v2+, restrict to Python 2, and reenable Ruff rule F401 once our Python 3 repos that were converted from Python 2 no longer use type hint comments: https://github.com/PyCQA/autoflake/issues/222#issuecomment-1419089254 -->
14
-
-[isort](https://github.com/PyCQA/isort) v5.13.2 for Python 2
11
+
-[Ruff](https://docs.astral.sh/ruff/) v0.15.10 for Python
12
+
-[autoflake](https://github.com/myint/autoflake) v1.7.8 for Python <!-- TODO: Remove in favor of Ruff rule F401 once our Python 3 repos that were converted from Python 2 no longer use type hint comments: https://github.com/PyCQA/autoflake/issues/222#issuecomment-1419089254 -->
15
13
-[google-java-format](https://github.com/google/google-java-format) v1.35.0 for Java
16
14
-[ktfmt](https://github.com/facebookincubator/ktfmt) v0.62 for Kotlin
17
15
-[gradle-dependencies-sorter](https://github.com/square/gradle-dependencies-sorter) v0.16 for Gradle Kotlin
@@ -25,7 +23,7 @@ The main hook that runs several code formatters in parallel:
25
23
-[Taplo](https://taplo.tamasfe.dev/) v0.10.0 for TOML
26
24
- Custom regex transformations (basically [sed](https://en.wikipedia.org/wiki/Sed)), for example:
27
25
- Trimming trailing whitespace and newlines
28
-
- Removing unnecessary `coding` pragmas and `object` base classes in Python 3
26
+
- Removing unnecessary `coding` pragmas and `object` base classes in Python
29
27
- Replacing empty Python collections like `list()` with literal equivalents
30
28
- Replacing empty Kotlin collections like `arrayOf()` with `empty` equivalents
31
29
@@ -63,7 +61,6 @@ Repo maintainers can declare these hooks in `.pre-commit-config.yaml`:
63
61
# Code formatting hook
64
62
- id: duolingo
65
63
args: # Optional
66
-
- --python-version=2 # Defaults to Python 3
67
64
- --scala-version=3 # Defaults to Scala 2.12
68
65
# Sync AI rules hook (for repos with Cursor AI rules)
0 commit comments