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/) v9.23.0 for JS, TypeScript
6
7
-[Ruff](https://docs.astral.sh/ruff/) v0.7.3 for Python 3
7
8
-[Black](https://github.com/psf/black) v21.12b0 for Python 2
8
9
-[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 -->
@@ -23,6 +24,8 @@ This repo currently contains a single [pre-commit](https://pre-commit.com/) hook
23
24
- Replacing empty Python collections like `list()` with literal equivalents
24
25
- Replacing empty Kotlin collections like `arrayOf()` with `empty` equivalents
25
26
27
+
To minimize developer friction, we enable only rules whose violations can be fixed automatically and disable all rules whose violations require manual correction.
28
+
26
29
We run this hook on developer workstations and enforce it in CI for all production repos at Duolingo.
0 commit comments