From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Mark Oteiza Newsgroups: gmane.emacs.devel Subject: Re: Flymake refactored Date: Fri, 06 Oct 2017 11:21:43 -0400 Message-ID: <87d16047zs.fsf@udel.edu> References: <87h8vmj3tr.fsf@lolita> <1507138648.1972.0@smtp.gmail.com> <874lre2von.fsf@gmail.com> <87mv566yjx.fsf@udel.edu> <87shex276r.fsf@gmail.com> <87efqh2sud.fsf@udel.edu> <877ew919hd.fsf@gmail.com> <87k208n45h.fsf@metapensiero.it> <87o9pkh1gh.fsf@udel.edu> <87r2ugl4e9.fsf@metapensiero.it> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1507303328 19210 195.159.176.226 (6 Oct 2017 15:22:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 6 Oct 2017 15:22:08 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.60 (gnu/linux) Cc: emacs-devel@gnu.org To: Lele Gaifax Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 06 17:21:58 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e0URo-0003aa-Ty for ged-emacs-devel@m.gmane.org; Fri, 06 Oct 2017 17:21:57 +0200 Original-Received: from localhost ([::1]:45493 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e0URw-0007J2-AV for ged-emacs-devel@m.gmane.org; Fri, 06 Oct 2017 11:22:04 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44281) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e0URj-0007H8-KF for emacs-devel@gnu.org; Fri, 06 Oct 2017 11:21:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e0URd-0000mt-Ol for emacs-devel@gnu.org; Fri, 06 Oct 2017 11:21:51 -0400 Original-Received: from mail-qt0-x234.google.com ([2607:f8b0:400d:c0d::234]:45779) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e0URd-0000mL-KN for emacs-devel@gnu.org; Fri, 06 Oct 2017 11:21:45 -0400 Original-Received: by mail-qt0-x234.google.com with SMTP id k1so21063759qti.2 for ; Fri, 06 Oct 2017 08:21:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=udel-edu.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=+SrSuCnhErqaMIXyynECNRNQu+KWyDlqwRmAVSOuuKA=; b=FjZFaNcsAwgY829aABXu29zYzfeNRoAf7TAnDgS7cWNf1QUo90iEx6rTL85XqFy+G7 UNOKwrM+2RW+YrI1Mx6XWWx0HnB5XABiFi/h2ckOTklJuVqvd3O9BbEV/1Q+EsFS0RTR bn9eZcmooxXrKlkJDsKVAXifkO+UZAn7l/syZLM5dwZ47kPtEWO+zvBgOQqx5fJNCdD5 PAZwkk4yAYkIGh6waOBkPoUUKq/I+J7DlH0tpTkpk6bpb4rghOfFO+3O9zNjMk7z59yx VwkoI97S5gr5bp7G4NaLGq0EAr8vk+VkuIdoj9lNuEt0Jw+qtttuJG+Y3gjv+fclgcgL 5jUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=+SrSuCnhErqaMIXyynECNRNQu+KWyDlqwRmAVSOuuKA=; b=ZD31N+2xtnCB2YUE2dVlXOM/FrPF0yzty5+9mLqQ/z3LQStN+ZdqErXGQ9GCv5Ok6K FOw2qbS9gMwlDJij43WDzE+oZcixFIdY8dvecbVXoHRVRM7Iqc1lz9XKCl4YEg9mhFP3 XsUdSohJ7xvJJ5HELBMQvjGoDCj9dT9IpRol6Jiy+LqwX/oMyH1lninuxULp9GqfiXDv LTkivS2wNrFI4IotE1hKSLeucSiUAhDKtz1jvdpisM6CktMEgO9laCv1BbtCG35axflW dM0/j7MtKTy8T42VsR0JPt7iVe/6IlVqhyjp9eF/j949MsONaVKi60m0tUVPa9Me7pbc +MiQ== X-Gm-Message-State: AMCzsaX6AYCY1Sj8fNFTU/x1ahQFMxN5aXw4OzXYYWpicnMsYqTacf7c 91kraKOPGkcJhngWM/tIVKpOJLe+CSKINA== X-Google-Smtp-Source: AOwi7QD3GBkoTjIsJ8Tg8fPc2rObpDh0s9QERA7zZk61wtN8+lNZrAUcPuvNqkCwM8GgNjczF90c3Q== X-Received: by 10.237.33.156 with SMTP id l28mr3627578qtc.305.1507303304751; Fri, 06 Oct 2017 08:21:44 -0700 (PDT) Original-Received: from logos (pool-173-67-36-61.bltmmd.fios.verizon.net. [173.67.36.61]) by smtp.gmail.com with ESMTPSA id t9sm1076478qti.47.2017.10.06.08.21.43 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 06 Oct 2017 08:21:43 -0700 (PDT) In-Reply-To: <87r2ugl4e9.fsf@metapensiero.it> (Lele Gaifax's message of "Fri, 06 Oct 2017 16:47:26 +0200") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c0d::234 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:219192 Archived-At: Lele Gaifax writes: > Mark Oteiza writes: > >> A small patch on top of it: this facilitates configuring the checker to >> instead be flake8, which is a wrapper around a few checkers, including >> pyflakes > > Yep, I like it to be flexible enough to do that, for example to be able to map > "style issues" reported by the pycodestyle to ":note" entries... so your > msg-alist seems better. > > Can you help me on a better definition for the following? In particular, is it > possible to dynamically set the :value-type to allow only one of the keys in > the `flymake-diagnostic-types-alist'? > > (defcustom python-flymake-msg-alist > '(("\\(^redefinition\\|.*unused.*\\|used$\\)" . :warning)) > "Alist used to associate messages to their types. > Each element should be a cons-cell (REGEXP . TYPE), where TYPE must be > one defined in the variable `flymake-diagnostic-types-alist'." > :group 'python-flymake > :type '(alist :key-type (regexp) :value-type string)) Oops, forgot about the type. It can probably be :value-type (choice (const :error) (const :warning) ...)