freeipa/ipapython
Armando Neto 3ccd512dab Disable Pylint 2.0 violations
Globally disabling the following violations:

- `assignment-from-no-return` (E1111):
  Assigning to function call which doesn't return. Used when an
  assignment is done on a function call but the inferred function
  doesn't return anything.

- `keyword-arg-before-vararg` (W1113):
  Keyword argument before variable positional arguments list in the
  definition of %s function When defining a keyword argument before
  variable positional arguments, one can end up in having multiple
  values passed for the aforementioned parameter in case the method is
  called with keyword arguments.

Locally disabling the following:

- `subprocess-popen-preexec-fn` (W1509):
  Using preexec_fn keyword which may be unsafe in the presence of
  threads The preexec_fn parameter is not safe to use in the presence
  of threads in your application. The child process could deadlock
  before exec is called. If you must use it, keep it trivial! Minimize
  the number of libraries you call into.
  https://docs.python.org/3/library/subprocess.html#popen-constructor

Fixed violations:

- `bad-mcs-classmethod-argument` (C0204):
  Metaclass class method %s should have %s as first argument Used when
  a metaclass class method has a first argument named differently than
  the value specified in valid-metaclass-classmethod-first-arg option
  (default to "mcs"), recommended to easily differentiate them from
  regular instance methods.
  - Note: Actually `cls` is the default first arg for `__new__`.

- `consider-using-get` (R1715):
  Consider using dict.get for getting values from a dict if a key is
  present or a default if not Using the builtin dict.get for getting a
  value from a dictionary if a key is present or a default if not, is
  simpler and considered more idiomatic, although sometimes a bit slower

Issue: https://pagure.io/freeipa/issue/7614

Signed-off-by: Armando Neto <abiagion@redhat.com>
Reviewed-By: Christian Heimes <cheimes@redhat.com>
2018-07-16 17:03:35 +02:00
..
install Disable Pylint 2.0 violations 2018-07-16 17:03:35 +02:00
__init__.py Rename ipa-python directory to ipapython so it is a real python library 2009-02-09 14:35:15 -05:00
admintool.py Improve console logging for ipa-server-install 2018-06-20 08:38:03 +02:00
certdb.py Replace file.flush() calls with flush_sync() helper 2018-07-07 10:20:01 +02:00
config.py Sort and shuffle SRV record by priority and weight 2018-06-19 08:56:46 +02:00
cookie.py logging: remove object-specific loggers 2017-07-14 15:55:59 +02:00
directivesetter.py Move config directives handling code 2018-05-29 17:03:56 +02:00
dn.py Fix pylint error in ipapython/dn.py 2018-01-23 17:10:16 +01:00
dnsutil.py Sort and shuffle SRV record by priority and weight 2018-06-19 08:56:46 +02:00
dogtag.py Backport gzip.decompress for Python 2 2018-05-30 15:09:55 +02:00
errors.py Replace StandardError with Exception 2015-09-30 10:51:36 +02:00
graph.py Fix pylint 2.0 conditional-related violations 2018-07-12 08:49:43 +02:00
ipa_log_manager.py logging: make sure logging level is set to proper value 2017-07-26 15:57:56 +02:00
ipaldap.py Fix Pylint 2.0 violations 2018-07-14 12:04:19 +02:00
ipautil.py Disable Pylint 2.0 violations 2018-07-16 17:03:35 +02:00
ipavalidate.py Change FreeIPA license to GPLv3+ 2010-12-20 17:19:53 -05:00
kerberos.py kerberos: fix sorting Principal objects 2017-08-17 09:56:01 +02:00
kernel_keyring.py Add absolute_import future imports 2018-04-20 09:43:37 +02:00
Makefile.am ipapython: fix DEFAULT_PLUGINS in version.py 2017-03-09 18:39:48 +01:00
nsslib.py Remove ipapython.nsslib as it is not used anymore 2017-03-01 09:43:41 +00:00
README Replace DNS client based on acutil with python-dns 2012-05-24 13:55:56 +02:00
session_storage.py Fix pylint warnings inconsistent-return-statements 2017-12-18 11:51:14 +01:00
setup.cfg Port all setup.py to setuptools 2016-10-20 18:43:37 +02:00
setup.py Cleanup shebang and executable bit 2018-07-05 19:46:42 +02:00
ssh.py Fix pylint warnings inconsistent-return-statements 2017-12-18 11:51:14 +01:00
version.py.in ipapython: fix DEFAULT_PLUGINS in version.py 2017-03-09 18:39:48 +01:00

This is a set of libraries common to IPA clients and servers though mostly
geared currently towards command-line tools.

A brief overview:

config.py - identify the IPA server domain and realm. It uses python-dns to
            try to detect this information first and will fall back to
            /etc/ipa/default.conf if that fails.

ipautil.py - helper functions

entity.py - entity is the main data type. User and Group extend this class
            (but don't add anything currently).

ipavalidate.py - basic data validation routines