File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,27 +31,6 @@ repos:
3131 # ===============================================
3232 # Python Hooks
3333 # ===============================================
34- # no_implicit_optional for ensuring explicit Optional types
35- - repo : https://github.com/hauntsaninja/no_implicit_optional
36- rev : ' 1.4'
37- hooks :
38- - id : no_implicit_optional
39- args : [--use-union-or]
40-
41- # Pyupgrade for upgrading Python syntax to newer versions
42- - repo : https://github.com/asottile/pyupgrade
43- rev : v3.20.0
44- hooks :
45- - id : pyupgrade
46- args : [--py310-plus] # Target Python 3.10+ syntax, matching project's target
47-
48- # Autoflake for removing unused imports and variables
49- - repo : https://github.com/pycqa/autoflake
50- rev : v2.3.1
51- hooks :
52- - id : autoflake
53- args : [--in-place, --remove-all-unused-imports]
54-
5534 # Ruff for linting and formatting
5635 - repo : https://github.com/astral-sh/ruff-pre-commit
5736 rev : v0.12.0
Original file line number Diff line number Diff line change @@ -102,9 +102,6 @@ dev = [
102102 " types-protobuf" ,
103103 " types-requests" ,
104104 " pre-commit" ,
105- " pyupgrade" ,
106- " autoflake" ,
107- " no_implicit_optional" ,
108105 " trio" ,
109106 " uvicorn>=0.35.0" ,
110107 " pytest-timeout>=2.4.0" ,
Original file line number Diff line number Diff line change @@ -75,8 +75,6 @@ if [ -n "$CHANGED_FILES" ]; then
7575 echo " Files to be formatted:"
7676 echo " $CHANGED_FILES "
7777
78- echo " Running autoflake..."
79- run_formatter " $CHANGED_FILES " autoflake -i -r --remove-all-unused-imports
8078 echo " Running ruff check (fix-only)..."
8179 run_formatter " $CHANGED_FILES " ruff check --fix-only $RUFF_UNSAFE_FIXES_FLAG
8280 echo " Running ruff format..."
You can’t perform that action at this time.
0 commit comments