select/ignore/enable/disable is a mess
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 35/100
Línea de trabajo
Empieza leyendo parse_options y las llamadas a option_manager.extend_default_ignore; después, sigue cómo difieren las opciones entre los modos plugin y standalone. Compara el comportamiento propuesto de enable/disable/select/ignore con cada caso del issue; se considera terminado cuando las reglas ASYNC9xx se pueden habilitar de forma coherente sin depender de la validación de tres letras de flake8, y la registración de opciones standalone queda resuelta.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Status quo:
ignoreorextend-ignoreASYNC error codes in config is not possible, as flake8 gives an error- when running flake8-async as a plugin,
--ignoreand--extend-ignoreis possible on the command-line, flake8 does not seem to enforce the three-letter rule there selectdoes not currently have the validation rules enabled thatignoredoes.--selectand--ignoreare not supported when running as standalone- it's always possible to use
--enableand--disable. - when running as a plugin, we add individual error codes for ASYNC9xx to the default_ignored codes
- when running as standalone, we set the default of
--disabletoASYNC9.
Implications:
- if running as plugin, you have to
select/--selectASYNC9xx codes to enable them. Trying toenablethem will do nothing. - But if you want to default-enable ASYNC9xx rules, and disable them individually, you need to use a combination of
select/--selectand--disable(or--ignoreon the CLI). - if running as standalone, you have to
--enableASYNC9xx codes.--selectgives errors
This is... a mess. And it feels like --[extend-]ignore on the CLI, and select could get hit with the three-letter validation rules at any point which would make it impossible for end-users to enable ASYNC9xx codes unless they downgrade flake8 / we update flake8-async.
suggestions:
- Stop calling
option_manager.extend_default_ignore - Always default
--disabletoASYNC9 - in
parse_options, readoptions.selectand parse out any selectedASY...codes, adding them to--enable - same thing with
options.ignore->--disable, in case--ignorehas been used on the CLI - [maybe] register
--selectand--ignoreas options when running as standalone.- this would make it slightly easier to switch from plugin to standalone, but the added complexity might not be worth it. e.g.
flake8-async --select=ASYNC --ignore=ASYNC9 --enable=ASYNC91 --disable=ASYNC910would be possible to write and impossible to understand. Though that's ofc already the case when running as plugin - we could give a warning/error if users are using both enable+select or disable+ignore for ASYNC codes though
- this would make it slightly easier to switch from plugin to standalone, but the added complexity might not be worth it. e.g.
this would achieve:
- You can always use
--enableto enable ASYNC9 codes, you're not forced to touch select/ignore - Even if only using select/ignore you get the speed upside of disabling visitors (although this is somewhat diminished after adding ASYNC100 to Visitor91x)
- Lenguaje dominante
- Python
- Estrellas
- 26
- Forks
- 10
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de python-trio/flake8-async
-
Rename ASYNC126 to ASYNC4xxAbiertorule improvement
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
python-trio/flake8-async#457 · 1 reacción ·
-
Extend ASYNC401 to other formsPosiblemente ocupada @anshurajbisoyi98-ctrl la tomó hace 3 días. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
python-trio/flake8-async#475 · 1 comentario · 1 reacción ·
-
Warn about unused `noqa`sAbiertonew rule
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
python-trio/flake8-async#454 · 1 comentario ·
-
ASYNC103 for sync functionsAbiertorule improvement
Dificultad 3/5 1-2 días Aptitud para principiantes 62/100
python-trio/flake8-async#447 · 5 comentarios ·
-
New rule: `ASYNC233` for blocking `pathlib` methodsPosiblemente ocupada @paranoa233 la tomó hace 91 días. Abiertogood first issue
Dificultad 5/5 Más de una semana Aptitud para principiantes 15/100
python-trio/flake8-async#396 · 1 comentario ·
Todos los issues de python-trio/flake8-async
Issues similares
-
bug needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
debpalash/VoiceStudio#2624 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
SQLGlot translates Spark concat_ws on an array into array stringificationPosiblemente ocupada @ansh-rohilla la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día
-
Make Catch2 optional when `RDK_BUILD_CPP_TESTS=OFF`Posiblemente ocupada @pechersky la tomó hoy. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 2 días