From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Niall Dooley Newsgroups: gmane.emacs.help Subject: Configure python-flymake-command to use ruff instead of pyflakes Date: Mon, 30 Oct 2023 15:52:35 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33628"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 30 17:32:41 2023 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qxVBu-0008V1-8g for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 30 Oct 2023 17:32:38 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qxVBP-0000qx-4F; Mon, 30 Oct 2023 12:32:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qxTdi-0002Dr-VC for help-gnu-emacs@gnu.org; Mon, 30 Oct 2023 10:53:14 -0400 Original-Received: from mail-oo1-xc35.google.com ([2607:f8b0:4864:20::c35]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qxTdh-0004rD-Bh for help-gnu-emacs@gnu.org; Mon, 30 Oct 2023 10:53:14 -0400 Original-Received: by mail-oo1-xc35.google.com with SMTP id 006d021491bc7-586b512ba0aso2046756eaf.3 for ; Mon, 30 Oct 2023 07:53:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698677591; x=1699282391; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=H+oyQCUS4PFvjeDq1E7xD/93rXrXyHFVI0rj4ukpiKI=; b=KackUsQyAhf5bGgpcdLS7eI8HoQBU7lNl3A/IaTkQ0n38+C4BOt0qUJD5tu8MfCE9e tyLFdQK9+JQ+2gaCYld1/FSa3nbduS6JIDP4WtYmN5iytoqchKHLpPhgNR+Zjx1Icbvj fbfGrZtkitb9OWVDTg1LBJ9z7wKUG7llTEC9Mv8tbP5sGJh4uenCZNfXQscEnVw31pIu HVd5Anb7cr/cZRDiSWfmrSKdVt34IUU9xqPBeAQlWKOnjZhP2GH+D0vc8l3kt9sGrVMV hhAMG0Hqg7FTq2vJH5t6qL4SQwRNLY0Mq9iMEuKL55vCYrnh/ZF+FuQ5X8QvjBtu5lP6 eQIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698677591; x=1699282391; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=H+oyQCUS4PFvjeDq1E7xD/93rXrXyHFVI0rj4ukpiKI=; b=t5X4+iHoHxsrRhhYBUrnXkV3CudwJ3dZURbNQlAqY7LwFfsHuDpCoMxR2jn6K85Gde IRKNuiPQ2K3n7O25RVm3tolH1Kw6nr9Gt/DX/EhxCToA1QODLMSA3k/aobKQ8m4GR7DJ epd/FWt/otTgXjTo7HjNo346Zzt5sdR3l8fqPtLyZdtfXHk/Ixrxjsm+blZt3Pzl4Olt 2jD+ajk+Z8zM7JyB2gBM6llAiobS+NW6vjpm7JmePbkqoRsAfIwBZ5MQUh6wfNyh4vkl b+dSOoGXMjug+oiNH6moZgXXyla+3XwZyXpe1FtkzzQniCsOJ49oodgWWoLsjchV4/EI rVMQ== X-Gm-Message-State: AOJu0YwzTspBHtk39t+Ne7kkBn3rrQ98MHe/fKbJWj5Vlx9J0Npq4UQS gQu9ChrsF5qbV4ZWaGpPw5ZhUso+AIVW12gD/2myE9U6Oq65Rg== X-Google-Smtp-Source: AGHT+IGI4ZDndg3F/jBfiRBaM4nZGKp2+mM3MgVD2n+vTYaNqmxlk2757gij3c81pAeLXyhO7a2ph6niN40L8Sv7am4= X-Received: by 2002:a4a:dc98:0:b0:581:e819:cac6 with SMTP id g24-20020a4adc98000000b00581e819cac6mr7826693oou.9.1698677591664; Mon, 30 Oct 2023 07:53:11 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::c35; envelope-from=dooleyn@gmail.com; helo=mail-oo1-xc35.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 30 Oct 2023 12:31:53 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:145419 Archived-At: I'm trying to update the variable `python-flymake-command' to use ruff [1] instead of pyflakes (the default). The docstring suggests one can use flake8 instead of pyflakes so I'm hoping that means one can also use ruff instead of pyflakes. I understand flake8 is a wrapper around pyflakes. I've set the variable via the customize interface as follows based on this reddit post [2] but to no avail on Emacs 27.1: (custom-set-variables '(python-flymake-command '("ruff" "--quiet" "--stdin-filename=stdin" "-"))) I'm aware of flymake-ruff [3] and ruff-flymake [4] but I thought if I could set this variable accordingly I could avoid the use of these third party packages. Thanks for Emacs and your time. [1]: https://docs.astral.sh/ruff/ [2]: https://www.reddit.com/r/emacs/comments/10yzhmn/flymake_just_works_with_ruff/ [3]: https://github.com/erickgnavar/flymake-ruff [4]: https://github.com/cjfuller/ruff-flymake