Coder Social home page Coder Social logo

python_test-cielquan's Introduction

python_test

License Code Style: Black

Azure DevOps builds Azure DevOps Coverage
Read the Docs (latest) - Status Requires.io - Requirements status

PyPI - Python versions supported PyPI - Implementations supported
PyPI - Package latest release PyPI - Package stability PyPI - Format PyPI - Monthly downloads

Github Latest Release GitHub commits since latest release GitHub last commit
Github stars Github forks Github Contributors

Info

Repo for testing different stuff with open source python repos. This project is under GPL-3.0 License even if the LICENSE file shows another license because of tests.

  1. create repo and cd into:

    $ git clone xxx
    $ cd xxx
    
  2. add basic files:

    $ touch .gitignore
    $ touch .gitattributes
    $ touch LICENSE.rst
    $ touch README.rst
    $ touch CHANGELOG.rst
    
  3. create venv and activate it:

    $ python3 -m venv venv
    $ . venv/bin/activate
    
  4. update pip, setuptools:

    $ pip install -U pip setuptools
    
  5. open in pycharm and setup venv as interpreter

  6. setup docs
    Badges for docs:
    $ pip install sphinx
    $ mkdir docs && pushd docs
    $ sphinx-quickstart
    $ make html
    $ popd
    $ touch .readthedocs.yaml
    
  7. setup tests:

    $ pip install pytest
    $ mkdir tests && pushd tests
    $ touch conftest.py
    $ popd
    $ touch pytest.ini
    
  8. setup tox
    tox:
    • flake8
    • pylint
    • black
    • isort
    • coverage
    • docs
    • pytest
$ touch tox.ini
  1. setup travis-ci:

    $ touch .travis.yml
    
  2. setup setup:

    $ touch setup.py
    '''add stuff to setup.py'''
    $ pip install -e .
    

TODO:

bla bla bla


commit-msg hook for jira issue verification with pre-commit.

See also: https://github.com/pre-commit/pre-commit

Add this to your .pre-commit-config.yaml:

- repo: https://github.com/Cielquan/commit-msg-jira-hook
  rev: v0.1.0 # Use the ref you want to point at
  hooks:
  - id: jira_commit_msg
    stages: [commit-msg]

Then add a jira.ini to you projects root directory with following data:

[jira]
JIRA_URL = e.g. https://jira.atlassian.com
JIRA_TAG = tag
JIRA_USERNAME = email
JIRA_TOKEN = api-token

Lastly install the hook:

$ pre-commit install -t commit-msg

python_test-cielquan's People

Contributors

cielquan avatar dependabot-preview[bot] avatar

Watchers

 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.