Giter VIP home page Giter VIP logo

pilot2's Introduction

PanDA Pilot 2

Contributions

  1. Check the TODO.md and STYLEGUIDE.md files.

  2. Fork the PanDAWMS/pilot2 repository into your private account as origin. Clone it and set the PanDAWMS/pilot2 repository as upstream.

  3. Make new code contributions only to a new branch in your repository, push to origin and make a pull request into upstream. Depending on the type of contribution this should go against either upstream/master, upstream/next or upstream/hotfix.

Verifying code correctness

Do not submit code that does not conform to the project standards. We use PEP8 and Flake verification, with everything enabled at a maximum line length of 160 characters and McCabe complexity 12:

flake8 pilot.py pilot/

For Python 2.6 you need to install flake8<3.0.0, which can miss a few things. Check the output of TravisCI to verify if you have to use this old version.

Running the pilot

The pilot is a dependency-less Python application and relies on /usr/bin/env python. The minimum pilot can be called like:

./pilot.py -q <PANDA_QUEUE>

where PANDA_QUEUE correspond to the ATLAS PandaQueue as defined in AGIS. This will launch the default generic workflow.

Running the testcases

The test cases are implemented as standard Python unittests under directory pilot/test/. They can be discovered and executed automatically:

unit2 -v

Building and viewing docs

  1. Install sphinx into your environment by pip or other means with all the necessary requirements.

  2. Navigate into ./doc in your fork and run make html.

  3. Open _build/html/index.html with your browser.

Automate documentation to your module

Add the following lines somewhere in the documentation:

.. automodule:: your.module
    :members:

For more info, visit http://sphinx-doc.org

Syncing your GitHub repository

Before making a pull request, make sure that you are synced to the latest version.

  1. git clone https://github.com/USERNAME/pilot2.git
  2. cd pilot2
  3. git checkout next
  4. git remote -v
  5. git remote add upstream https://github.com/PanDAWMS/pilot2.git
  6. git fetch upstream
  7. git merge upstream/next

pilot2's People

Contributors

palnilsson avatar anisyonk avatar wguanicedew avatar complynx avatar tomasjavurek avatar davidgcameron avatar danilaoleynik avatar mlassnig avatar dougbenjamin avatar fbarreir avatar pavlo-svirin avatar mihamuskinja avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.