README.hacking

Library documentation

Coding guidelines

  1. Use Python 3 instead of Python 2.

  2. File licenses are usually GPLv2 or later.

  3. Default configuration is located in conf/defaultrc.

  4. Package metadata which needs to be updated constantly on new upstream releases is located in https://code.launchpad.net/~kubuntu-packagers/ka/+git/ka-metadata

    Some of these kind of files need to be updated manually, others are automatically generated with ka-update-metadata.

    The JSON files stored there may have comments starting with //. Usually there is a comment on top of each one saying if the file was generated automatically.

  5. Please use this kind header for python source code files; note that it includes kate and vim modelines:

    #!/usr/bin/python3
    # -*- coding: utf-8 -*-
    # pylint: disable=line-too-long
    # kate: space-indent on; indent-width 4; replace-tabs on; indent-mode python; remove-trailing-space modified;
    # vim: expandtab ts=4
    # pylint: enable=line-too-long
    
    ############################################################################
    #   Copyright © YEAR Copyright Holder Name <copyright_holder@mail.com>     #
    #                                                                          #
    #   This program is free software; you can redistribute it and/or modify   #
    #   it under the terms of the GNU General Public License as published by   #
    #   the Free Software Foundation; either version 2 of the License, or      #
    #   (at your option) any later version.                                    #
    ############################################################################
    
  6. Commands or variables using a release type string must use these values: "frameworks", "plasma", "applications", "qt"

    You may also use “other” if that’s appropiate.