Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

It's later than you think, the joint Russian-American space mission has already begun.


devel / comp.lang.python / Re: PyCharm's strict PEP and not so strict?

SubjectAuthor
o Re: PyCharm's strict PEP and not so strict?Thomas Passin

1
Re: PyCharm's strict PEP and not so strict?

<mailman.135.1681995889.20750.python-list@python.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=27438&group=comp.lang.python#27438

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.imp.ch!fu-berlin.de!uni-berlin.de!not-for-mail
From: list1@tompassin.net (Thomas Passin)
Newsgroups: comp.lang.python
Subject: Re: PyCharm's strict PEP and not so strict?
Date: Thu, 20 Apr 2023 09:04:36 -0400
Lines: 38
Message-ID: <mailman.135.1681995889.20750.python-list@python.org>
References: <2110321349.5908606.1681897884162.ref@mail.yahoo.com>
<2110321349.5908606.1681897884162@mail.yahoo.com>
<b36efc8f-7fcf-e646-57e1-1f008d8f719a@yahoo.co.uk>
<06af8d39-a128-27e6-eeb8-f9e3f8fde7b6@DancesWithMice.info>
<692943468.6227351.1681935070220@mail.yahoo.com>
<949d6719-a06b-6dcf-9aa5-6d6497c38060@DancesWithMice.info>
<2568a5a1-44a8-e817-1218-5b17628ed994@tompassin.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de nAlXwvlNAducB/VdoNQ6agHJZ+/TxobP/omdXQ2QXbMg==
Return-Path: <list1@tompassin.net>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=tompassin.net header.i=@tompassin.net header.b=1X5otsnp;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.003
X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'pycharm': 0.04; 'stream':
0.04; '(for': 0.05; 'coders': 0.05; '"python': 0.07; '2023': 0.07;
'received:23.83.212': 0.09; 'received:elm.relay.mailchannels.net':
0.09; 'situations': 0.09; 'subject:not': 0.09; 'url-
ip:151.101.0.223/32': 0.09; 'url-ip:151.101.128.223/32': 0.09;
'url-ip:151.101.192.223/32': 0.09; 'url-ip:151.101.64.223/32':
0.09; 'coding': 0.13; 'comments.': 0.16; 'post:': 0.16;
'received:10.0.0': 0.16; 'received:23.83.212.17': 0.16;
'received:64.90': 0.16; 'received:64.90.62': 0.16;
'received:64.90.62.162': 0.16;
'received:bird.elm.relay.mailchannels.net': 0.16;
'received:dreamhost.com': 0.16; 'subject:PyCharm': 0.16;
'subject:strict': 0.16; 'suggestions?': 0.16; 'syntax,': 0.16;
'url:peps': 0.16; 'wrote:': 0.16; 'python': 0.16; 'probably':
0.17; "aren't": 0.19; 'pm,': 0.19; 'to:addr:python-list': 0.20;
"i've": 0.22; 'code': 0.23; 'run': 0.23; 'practices': 0.26;
'purpose': 0.28; 'example,': 0.28; 'header:User-Agent:1': 0.30;
'seem': 0.31; '(as': 0.32; 'gotten': 0.32; 'python-list': 0.32;
'received:10.0': 0.32; 'received:mailchannels.net': 0.32;
'received:relay.mailchannels.net': 0.32; 'but': 0.32; 'there':
0.33; 'particular': 0.33; 'march': 0.33; 'header:In-Reply-To:1':
0.34; 'url:)': 0.35; 'built': 0.36; 'possibly': 0.36; 'change':
0.36; 'special': 0.37; 'using': 0.37; "it's": 0.37; 'thanks':
0.38; 'added': 0.39; 'this,': 0.39; 'subject:PEP': 0.39;
'finding': 0.39; 'try': 0.40; 'view': 0.60; 'likely': 0.61;
'stay': 0.61; 'skip:o 10': 0.61; 'finally': 0.62; 'url-
ip:151.101.0/24': 0.62; 'url-ip:151.101.128/24': 0.62; 'url-
ip:151.101.192/24': 0.62; 'url-ip:151.101.64/24': 0.62; 'once':
0.63; 'skip:b 10': 0.63; 'range': 0.64; 'your': 0.64; 'less':
0.65; 'time.': 0.66; 'generally': 0.67; 'header:Received:6': 0.67;
'away': 0.67; 'choose': 0.67; 'received:64': 0.67; 'matter': 0.68;
'skip:# 10': 0.68; 'offer': 0.71; 'easy': 0.74; 'tools': 0.74;
'read,': 0.75; 'black.': 0.84; 'from.': 0.84; 'heads': 0.91
X-Sender-Id: dreamhost|x-authsender|tpassin@tompassin.net
ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1681995877; a=rsa-sha256;
cv=none;
b=vHdqcdo19zsFcNYdIgpGBfcdGeYpMJL/MChf92eER1pY2e3tuVb3/JhJzqOsQS+BOE/bDD
O1ZYJICa6A5VC1yJpHKFZvZHFizzv39edq9DW2+tzeriORetE18Qr1sqhxyiubAdIHG9Pl
y6HgLMvdrAZqSxOrPsBvdW7+3YynyvBAZ4cbUbEw/UqNHqbPGTLsns+lu25rdRCfQxSktY
4XdXs36jUQlhgDl1a/pOHI2WY1zRPkLMrP0AjMwlFfFLJs8hpqbtPpwkHrYQ7+JwlAuB3w
Hu74EemtKmxi55R0kgNYwitJA4ADd9KyZhjr4Kb5NEVdTd0OZVagqRyc0pzdwQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed;
d=mailchannels.net; s=arc-2022; t=1681995877;
h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
to:to:cc:mime-version:mime-version:content-type:content-type:
content-transfer-encoding:content-transfer-encoding:
in-reply-to:in-reply-to:references:references:dkim-signature;
bh=hzVBXZikiecYBEwuYAtqXJwKhvyAVTHUqxCWkegGFOI=;
b=wA0yr0pCkyJHjcs8KQPPpHhLpEz+RPAc2cBQ0T8WHu3rHWUfvbkyl0Dr32AKh+wf3ARPEt
jgpizZEl7lAKbJ95Mth3dUo2ZAN/Sq8vvSlxlPrUbEul5K1OYkhjcczS18g5unCj3JxwR+
2fx7S4C8W4X6qSNEI/jY6IBg2iWjlBCiSn1D8xKJwSMOBVm7Cz8yNdjddB5LtmrQ+Gg4E2
KssFnarylvXQgk1NZ0j9vg4Soi89rMMK5junHjGhSJC4A1dELUboYa8TTaNrItv3zZecY4
9AzxfiUTp3u4mNQEVvuKrDgdfayhGNcahoGoXWVMbNFOjCz5SJ8SyfQQ8WfGgA==
ARC-Authentication-Results: i=1; rspamd-548d6c8f77-ssfsf;
auth=pass smtp.auth=dreamhost smtp.mailfrom=list1@tompassin.net
X-Sender-Id: dreamhost|x-authsender|tpassin@tompassin.net
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|tpassin@tompassin.net
X-MailChannels-Auth-Id: dreamhost
X-Trade-Keen: 5375de101e111b7c_1681995877796_313033007
X-MC-Loop-Signature: 1681995877796:1176638032
X-MC-Ingress-Time: 1681995877796
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tompassin.net;
s=dreamhost; t=1681995877;
bh=hzVBXZikiecYBEwuYAtqXJwKhvyAVTHUqxCWkegGFOI=;
h=Date:Subject:To:From:Content-Type:Content-Transfer-Encoding;
b=1X5otsnp9uDsrhjga5Toe8UA9P1GBBRYTJv1Yu5Yjq/7laiBy2UpKmZ/EmJx+/6SX
UyP+xD9UtsfBteWDMmEqGgU7OiT28cUJg7smF70qefUqyYoH04na8uUzHSPqVnIBlJ
bdG20jcjLy7CGCOB57bJr+EOHi5/v2h+jqnsSnHypI/AsLqiivCAwI7aEY54nr2esN
IcyGeLIEIu3j+LZ7JT+0LPFHa5aVjZPJ5746whKFbjhA704aCdvz2p/ZaVF0+8PEOb
BF1ho0Ugh1ncMghSZyntaIw89PHKghM7mhGoospFx3NSGhrpkYI6uRyIxr55bsIFHG
DFhbSg73E8A6Q==
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.10.0
Content-Language: en-US
In-Reply-To: <949d6719-a06b-6dcf-9aa5-6d6497c38060@DancesWithMice.info>
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <2568a5a1-44a8-e817-1218-5b17628ed994@tompassin.net>
X-Mailman-Original-References: <2110321349.5908606.1681897884162.ref@mail.yahoo.com>
<2110321349.5908606.1681897884162@mail.yahoo.com>
<b36efc8f-7fcf-e646-57e1-1f008d8f719a@yahoo.co.uk>
<06af8d39-a128-27e6-eeb8-f9e3f8fde7b6@DancesWithMice.info>
<692943468.6227351.1681935070220@mail.yahoo.com>
<949d6719-a06b-6dcf-9aa5-6d6497c38060@DancesWithMice.info>
 by: Thomas Passin - Thu, 20 Apr 2023 13:04 UTC

On 4/19/2023 7:19 PM, dn via Python-list wrote:
>
>> *PyCharm enables a range of Python-linters. Some by add-in. Some by
>> "External tools"*
>>
>> I was not 'up' on "linters", Thanks for the heads up! Attempted
>> finding a "linter" on jetbrains... I take it that finding a 'linter'
>> for Build #PC-222.4554.11, built on March 15, 2023
>> Is a matter of hit and miss... Any suggestions?
>
> Try a web-search for "Python linters". Linters, I've know a few... (hum
> along with the music...) have long been a part of the Python eco-system.
> They have usually been designed to run from Python or 'the
> command-line'. Accordingly, many can be added into PyCharm from 'the
> outside'.
>
> The original purpose was possibly to guide/nudge coders into the
> practices recommended by PEP-008 (https://peps.python.org/pep-0008/).
> This, as you will read, is not about syntax, but more about coding "style".
>
> There are many to choose from. Some are more strict than others.
> Recommendation: (for the good of your blood-pressure) stay away from
> "highly opinionated" alternatives, such as Black. Try the ones which
> offer options to turn-on/-off particular situations (as described earlier).

Be aware that most of these tools can be configured to be more or less
fussy, but it's not going to be so easy for the uninitiated.
Unconfigured, you will likely see a stream of messages that aren't
helpful but may seem overwhelming. Once you have finally gotten one
configured to your satisfaction, you probably will not need to change
the configuration again for a long time.

You can generally disable specific warnings at a point in the code with
special comments. Using pylint, for example, perhaps appropriate in
view of the OP's original post:

# pylint: disable = consider-using-f-string


devel / comp.lang.python / Re: PyCharm's strict PEP and not so strict?

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor