summaryrefslogtreecommitdiff
path: root/.pylintrc
Commit message (Collapse)AuthorAgeFilesLines
* _loader/types: move to a cython packageBenjamin Schubert2019-06-061-0/+1
| | | | | | Types is a simple module that accounts for a few percent of a basic 'show' operation. Having it cythonized allows us to get better performance without too much wokr
* _loader/loader: cythonize valid_chars_nameBenjamin Schubert2019-06-051-1/+4
| | | | | | | | | - Create a new _loader/utils.pyx cython module for functions cythonized in the loader module. - Move valid_chars_name from loader to utils and cythonize. This function is called extensively, and easy to extract
* _yaml: Cythonize and internalize NodeBenjamin Schubert2019-05-291-1/+1
| | | | | | | | | | | Node used to be a NamedTuple that we used to access by index for speed reasons. Moving to an extension class allows us to access attributes by name, making the code easier to read and less error prone. Moreover, we do gain speed and memory by doing this move. Also fix a few places where we would not have an entire `Node` object but were instead just returning a tuple, missing some entries.
* _variables: Cythonize _internal_expandBenjamin Schubert2019-05-291-1/+1
| | | | | | | Move _variables.py to be a Cython module. `_internal_expand` is a function that is called a lot in BuildStream. It is also entirely isolated and easy to cythonize.
* lint: Fix or silence 'cyclic-import' errors and enable pylint for itBenjamin Schubert2019-04-011-5/+0
| | | | | | | | Cyclic imports can be confusing because the order in which we import dependencies can make the import fail or not. We should not rely on ordering of imports for our code. This fixes everywhere possible the imports and silence explicitely some which are not convenient or would require big refactors
* casserver.py: fix logging-format-interpolation error and enableBenjamin Schubert2019-03-211-2/+0
| | | | This enables the "logging-format-interpolation" pylint error check
* tests:lint: enable pylintBenjamin Schubert2019-03-201-1/+1
|
* plugin: bake API to get and validate a project pathTiago Gomes2018-08-021-1/+1
| | | | | | | | A project path is a path relative to a project directory. A project path can not also refer to the parent directory in the first path component, or point to symbolic links, fifos, sockets and block/character devices.
* setup.py: Add grpcio dependency and support for code generationJürg Billeter2018-07-171-2/+2
| | | | This allows code generation with ./setup.py build_grpc
* .pylintrc: Enable attribute-defined-outside-init messagesTristan Van Berkom2018-04-201-1/+0
| | | | | | | This will give us an error if an instance attribute is ever declared outside of the constructor, which usually constitutes either a bug or a violation of the coding standard, rendering code more difficult to read.
* .pylintrc: Enable linting for unused variablesTristan Van Berkom2018-04-191-1/+0
|
* .pylintrc: Enable unused-import checkerJürg Billeter2018-03-251-1/+0
|
* .pylintrc: Ensure pylint ignores gi.repository module as it dynamically adds ↵James Ennis2018-03-161-1/+1
| | | | classes
* pylint - dealt with whitespace issues and disabled pep8 warningsJames Ennis2018-03-141-2/+0
|
* pylint - dealt with simplifiable-if-statement warningJames Ennis2018-03-141-2/+0
|
* pylint - dealt with redefined-outer-name and redefined-built in warningsJames Ennis2018-03-141-4/+0
|
* pylint - dealt with redefined-argument-from-local warningJames Ennis2018-03-141-1/+0
|
* pylint - dealt with unnecessary-pass warningJames Ennis2018-03-141-1/+0
|
* pylint - dealt with import warningsJames Ennis2018-03-141-4/+0
|
* pylint - dealt with unidiomatic-typecheck warningJames Ennis2018-03-141-3/+0
|
* pylint - dealt with superfluous-parens warningJames Ennis2018-03-141-3/+0
|
* pylint - disabled no-member, bad-exception-context and ↵James Ennis2018-03-141-10/+3
| | | | catching-non-exception warnings
* pylint - dealt with len-as-condition warningJames Ennis2018-03-141-1/+0
|
* pylint - dealt with global-statement warningJames Ennis2018-03-141-1/+0
|
* pylint - dealt with dangerous-default-value warningJames Ennis2018-03-141-1/+0
|
* pylint - dealt with consider-merging-isinstance warningsJames Ennis2018-03-141-1/+0
|
* pylint - dealt with broad-except and bare-except warningsJames Ennis2018-03-141-2/+0
|
* pylint - dealt with bad-continuation warningJames Ennis2018-03-141-1/+0
|
* pylint - dealt with anomalous-backslash-in-string warningJames Ennis2018-03-141-1/+0
|
* .pylintrc: Alterations to the configuration fileJames Ennis2018-03-141-10/+5
|
* .pylintrc: Amend which warning messages are disabledJames Ennis2018-03-141-73/+96
| | | | | | NOTE: We have categorised the warning messages into two groups. Those that are of no use to us in the buildstream project and those that should be enabled at some point.
* Generate pylint configuration file (pristine file):James Ennis2018-03-141-0/+539
NOTE: pylint was installed using pip: `pip3 install pylint` and .pylintrc is the pylint configuration file which was generated with `pylint --generate-rcfile` from a fresh fedora-27 docker image.