Giter Site home page Giter Site logo

demonata's Introduction

Build Status Coverage Status

Branching strategy

In order to maximize commit throughput and avoid version control pitfalls like merge bottlenecks (i.e. having a single dedicated "merge master" to resolve conflicts, merge branches, etc) the strategy should be as follows:

  • Create single-feature, disposable branches
  • Give branches descriptive names based on the feature, defect, etc you're working on (e.g. the branch for Issue 5, creating an abstract room class, would be named issue5_abstract_room)
  • Write tests! See pytest section below.
  • Pull requests should be created from your working branch into the master branch. Don't forget to assign reviewers

Virtual environment usage

Virtual environment allows you to create an isolated environment, ensuring among other things that your test environment is consistent.

  • Install python virtualenv as normal for your OS.
  • Create a virtual environment named "venv" in your GIT_HOME directory. It will automatically install python, easy_install and pip in your virtual environment

virtualenv venv

  • Activate your virtual environment. For posix systems (mac, linux):

source venv/bin/activate For windows:

> venv\Scripts\activate

Writing tests for pytest

Tests should be isolated by class (e.g. tests of the item class should be in test_item.py), should be named test_.py, and test files should live in GIT_HOME/tests. Methods should be named test_*. Pytest will automatically discover methods in the correct directory that follow the correct naming scheme.

Run tests from within your virtual environment with "python -m pytest -v" - this is preferred over running the pytest executable, as python inserts the current working directory into the PYTHONPATH.

demonata's People

Contributors

patrickv83 avatar jalyxis55 avatar pvinas-novetta avatar dklesel avatar claudecyrill avatar

demonata's Issues

Action callback

The method that the UI calls when the action menu is activated

[UI] Create view and callbacks for inventory access

Should be able to open the inventory, navigate through the items in the inventory, and use items. (e.g. weapon.use() attaches weapon to player.weapon, consumable.use() is the consumable.consume() method)

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.