معرفی شرکت ها


cfel-pylint-checkers-1.1.4


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Additional checkers for pylint that are used by the FS-CFEL-1 team
ویژگی مقدار
سیستم عامل -
نام فایل cfel-pylint-checkers-1.1.4
نام cfel-pylint-checkers
نسخه کتابخانه 1.1.4
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Philipp Middendorf
ایمیل نویسنده philipp.middendorf@desy.de
آدرس صفحه اصلی https://gitlab.desy.de/cfel-sc-public/cfel-pylint-checkers
آدرس اینترنتی https://pypi.org/project/cfel-pylint-checkers/
مجوز GPL-3.0-or-later
# cfel-pylint-checkers ## Installation Just `pip install cfel-pylint-checkers` should suffice. Then you can enable the appropriate checkers as plugins by editing your `.pylintrc` file, extending the `load-plugins` line. For example: ``` load-plugins=cfel_pylint_checkers.no_direct_dict_access,cfel_pylint_checkers.tango_command_dtype ``` ## Checkers ### `no-direct-dict-access` Enable with: ``` load-plugins=cfel_pylint_checkers.no_direct_dict_access ``` This disallows the use of dictionary access using the `[]` operator *for reading*. Meaning, this is no longer allowed: ```python mydict = { "foo": 3 } print(mydict["bar"]) ``` As you can see, this code produces an error, since we’re accessing `"bar"` but the `mydict` dictionary only contains the key `"foo"`. You have to use `.get` to make this safe: ```python mydict = { "foo": 3 } print(mydict.get("bar")) ``` Which produces `None` if the key doesn’t exist. You can even specify a default value: ```python mydict = { "foo": 3 } print(mydict.get("bar", 0)) ``` Mutating use of `operator[]` is, of course, still possible. This is *fine*: ```python mydict = { "foo": 3 } mydict["bar"] = 4 ``` ### `tango-command-dtype` Enable with: ``` load-plugins=cfel_pylint_checkers.tango_command_dtype ``` This checker tests for various error conditions related to the hardware controls system [Tango](https://www.tango-controls.org/), specifically its Python adaptation [PyTango](https://pytango.readthedocs.io/en/stable/). For instance, the following mismatch between the `dtype_in` of a command and its actual type annotation is caught: ```python from tango.server import Device, command class MyDevice(Device): @command(dtype_in=int) def mycommand(self, argument: str) -> None: pass ```


نیازمندی

مقدار نام
>=2.14.0,<3.0.0 pylint


زبان مورد نیاز

مقدار نام
>=3.8,<3.11 Python


نحوه نصب


نصب پکیج whl cfel-pylint-checkers-1.1.4:

    pip install cfel-pylint-checkers-1.1.4.whl


نصب پکیج tar.gz cfel-pylint-checkers-1.1.4:

    pip install cfel-pylint-checkers-1.1.4.tar.gz