@@ -95,56 +95,6 @@ ignore = ["D400","D415","D213","D205","D202","D107","D407","D413","D212","D104",
9595"tests/*" = [" D" , " E" ]
9696"examples/*/*" = [" D" ]
9797
98- # Pylint section
99-
100- # Minimal pylint configuration file for Secure Systems Lab Python Style Guide:
101- # https://github.com/secure-systems-lab/code-style-guidelines
102- #
103- # Based on Google Python Style Guide pylintrc and pylint defaults:
104- # https://google.github.io/styleguide/pylintrc
105- # http://pylint.pycqa.org/en/latest/technical_reference/features.html
106-
107- [tool .pylint .message_control ]
108- # Disable the message, report, category or checker with the given id(s).
109- # NOTE: To keep this config as short as possible we only disable checks that
110- # are currently in conflict with our code. If new code displeases the linter
111- # (for good reasons) consider updating this config file, or disable checks with.
112- disable =[
113- " fixme" ,
114- " too-few-public-methods" ,
115- " too-many-arguments" ,
116- " format" ,
117- " duplicate-code"
118- ]
119-
120- [tool .pylint .basic ]
121- good-names = [" i" ," j" ," k" ," v" ," e" ," f" ," fn" ," fp" ," _type" ," _" ]
122- # Regexes for allowed names are copied from the Google pylintrc
123- # NOTE: Pylint captures regex name groups such as 'snake_case' or 'camel_case'.
124- # If there are multiple groups it enfoces the prevalent naming style inside
125- # each modules. Names in the exempt capturing group are ignored.
126- function-rgx =" ^(?:(?P<exempt>setUp|tearDown|setUpModule|tearDownModule)|(?P<camel_case>_?[A-Z][a-zA-Z0-9]*)|(?P<snake_case>_?[a-z][a-z0-9_]*))$"
127- method-rgx =" (?x)^(?:(?P<exempt>_[a-z0-9_]+__|runTest|setUp|tearDown|setUpTestCase|tearDownTestCase|setupSelf|tearDownClass|setUpClass|(test|assert)_*[A-Z0-9][a-zA-Z0-9_]*|next)|(?P<camel_case>_{0,2}[A-Z][a-zA-Z0-9_]*)|(?P<snake_case>_{0,2}[a-z][a-z0-9_]*))$"
128- argument-rgx =" ^[a-z][a-z0-9_]*$"
129- attr-rgx =" ^_{0,2}[a-z][a-z0-9_]*$"
130- class-attribute-rgx =" ^(_?[A-Z][A-Z0-9_]*|__[a-z0-9_]+__|_?[a-z][a-z0-9_]*)$"
131- class-rgx =" ^_?[A-Z][a-zA-Z0-9]*$"
132- const-rgx =" ^(_?[A-Z][A-Z0-9_]*|__[a-z0-9_]+__|_?[a-z][a-z0-9_]*)$"
133- inlinevar-rgx =" ^[a-z][a-z0-9_]*$"
134- module-rgx =" ^(_?[a-z][a-z0-9_]*|__init__)$"
135- no-docstring-rgx =" (__.*__|main|test.*|.*test|.*Test)$"
136- variable-rgx =" ^[a-z][a-z0-9_]*$"
137- docstring-min-length =10
138-
139- [tool .pylint .logging ]
140- logging-format-style =" old"
141-
142- [tool .pylint .miscellaneous ]
143- notes =" TODO"
144-
145- [tool .pylint .STRING ]
146- check-quote-consistency =" yes"
147-
14898# mypy section
14999# Read more here: https://mypy.readthedocs.io/en/stable/config_file.html#using-a-pyproject-toml-file
150100[tool .mypy ]
0 commit comments