Skip to content

Commit 8609290

Browse files
author
Joey Leingang
committed
temple scaffolding
1 parent e16d35a commit 8609290

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+1049
-390
lines changed

.bumpversion.cfg

Lines changed: 0 additions & 14 deletions
This file was deleted.

.cicleci/config.yml

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
version: 2
2+
aliases:
3+
- &docker_image circleci/python:3.6-stretch
4+
- &dependencies
5+
name: Make virtualenv and install dependencies
6+
command: |
7+
python3 -m venv ~/venv
8+
echo ". ~/venv/bin/activate" >> $BASH_ENV
9+
source $BASH_ENV
10+
make dependencies
11+
- &test_boilerplate
12+
environment:
13+
TEST_REPORTS: /tmp/test-reports
14+
steps:
15+
- checkout
16+
- run:
17+
<<: *dependencies
18+
- run: make test
19+
- store_test_results:
20+
path: /tmp/test-reports
21+
- store_artifacts:
22+
path: /tmp/test-reports
23+
jobs:
24+
temple_check:
25+
docker:
26+
- image: *docker_image
27+
steps:
28+
- checkout
29+
- run:
30+
<<: *dependencies
31+
- run: temple update --check
32+
lint:
33+
docker:
34+
- image: *docker_image
35+
steps:
36+
- checkout
37+
- run:
38+
<<: *dependencies
39+
- run: make validate
40+
test_py34:
41+
docker:
42+
- image: circleci/python:3.4-stretch
43+
<<: *test_boilerplate
44+
test_py35:
45+
docker:
46+
- image: circleci/python:3.5-stretch
47+
<<: *test_boilerplate
48+
test_py36:
49+
docker:
50+
- image: circleci/python:3.6-stretch
51+
<<: *test_boilerplate
52+
test_py37:
53+
docker:
54+
- image: circleci/python:3.7-stretch
55+
<<: *test_boilerplate
56+
deploy:
57+
docker:
58+
- image: *docker_image
59+
steps:
60+
- checkout
61+
- add_ssh_keys:
62+
fingerprints:
63+
- "af:a6:bf:48:f0:08:d6:0f:19:4f:fd:10:f2:9d:50:2c"
64+
- run:
65+
<<: *dependencies
66+
- run: pip install -q -r deploy_requirements.txt
67+
- run: python3 deploy.py prod
68+
69+
workflows:
70+
version: 2
71+
checks_and_deploy:
72+
jobs:
73+
- temple_check
74+
- lint
75+
- test_py35
76+
- test_py36
77+
- test_py37
78+
- deploy:
79+
requires:
80+
- temple_check
81+
- lint
82+
- test_py34
83+
- test_py35
84+
- test_py36
85+
- test_py37
86+
filters:
87+
branches:
88+
only:
89+
- master

.coveragerc

Lines changed: 0 additions & 12 deletions
This file was deleted.

.editorconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_size = 4
7+
indent_style = space
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.{yaml,yml}]
12+
indent_size = 2
13+
14+
[makefile]
15+
indent_style = tab

.pylintrc

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Pylint rules for temporal_sqlalchemy
2+
3+
[MESSAGES CONTROL]
4+
# Disable the message, report, category or checker with the given id(s). You
5+
# can either give multiple identifiers separated by comma (,) or put this
6+
# option multiple times (only on the command line, not in the configuration
7+
# file where it should appear only once).You can also use "--disable=all" to
8+
# disable everything first and then reenable specific checks. For example, if
9+
# you want to run only the similarities checker, you can use "--disable=all
10+
# --enable=similarities". If you want to run only the classes checker, but have
11+
# no Warning level messages displayed, use"--disable=all --enable=classes
12+
# --disable=W"
13+
disable=bad-continuation,
14+
fixme,
15+
locally-disabled,
16+
locally-enabled,
17+
no-else-return,
18+
no-init,
19+
too-few-public-methods,
20+
too-many-arguments,
21+
wrong-import-order,
22+
23+
24+
[REPORTS]
25+
# Set the output format. Available formats are text, parseable, colorized, msvs
26+
# (visual studio) and html. You can also give a reporter class, eg
27+
# mypackage.mymodule.MyReporterClass.
28+
output-format=colorized
29+
30+
# Tells whether to display a full report or only the messages
31+
reports=no
32+
33+
34+
[BASIC]
35+
# Regular expression which should only match function or class names that do
36+
# not require a docstring.
37+
no-docstring-rgx=__.*__|_.*|test_.*
38+
39+
# Minimum line length for functions/classes that require docstrings, shorter
40+
# ones are exempt.
41+
docstring-min-length=3

.travis.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

CONTRIBUTING.rst

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
Contributing Guide
2+
==================
3+
4+
This project was created using temple.
5+
For more information about temple, go to the `Temple docs <https://github.com/CloverHealth/temple>`_.
6+
7+
Setup
8+
~~~~~
9+
10+
Set up your development environment with::
11+
12+
git clone [email protected]:CloverHealth/temporal-sqlalchemy.git
13+
cd temporal-sqlalchemy
14+
make setup
15+
16+
``make setup`` will setup a virtual environment managed by `pyenv <https://github.com/yyuu/pyenv>`_ and install dependencies.
17+
18+
Note that if you'd like to use something else to manage dependencies other than pyenv, call ``make dependencies`` instead of
19+
``make setup``.
20+
21+
Testing and Validation
22+
~~~~~~~~~~~~~~~~~~~~~~
23+
24+
Run the tests with::
25+
26+
make test
27+
28+
Validate the code with::
29+
30+
make validate
31+
32+
Documentation
33+
~~~~~~~~~~~~~
34+
35+
`Sphinx <http://www.sphinx-doc.org/>`_ documentation can be built with::
36+
37+
make docs
38+
39+
The static HTML files are stored in the ``docs/_build/html`` directory. A shortcut for opening them is::
40+
41+
make open_docs
42+
43+
Releases and Versioning
44+
~~~~~~~~~~~~~~~~~~~~~~~
45+
46+
Anything that is merged into the master branch will be automatically deployed to PyPI.
47+
Documentation will be published to `ReadTheDocs <http://temporal-sqlalchemy.readthedocs.io/>`__.
48+
49+
The following files will be generated and should *not* be edited by a user:
50+
51+
* ``ChangeLog`` - Contains the commit messages of the releases. Please have readable commit messages in the
52+
master branch and squash and merge commits when necessary.
53+
* ``AUTHORS`` - Contains the contributing authors.
54+
* ``version.py`` - Automatically updated to include the version string.
55+
56+
This project uses `Semantic Versioning <http://semver.org>`_ through `PBR <https://docs.openstack.org/developer/pbr/>`_. This means when you make a commit, you can add a message like::
57+
58+
sem-ver: feature, Added this functionality that does blah.
59+
60+
Depending on the sem-ver tag, the version will be bumped in the right way when releasing the package. For more information,
61+
about PBR, go the the `PBR docs <https://docs.openstack.org/developer/pbr/>`_.

INSTALL.txt

Lines changed: 0 additions & 6 deletions
This file was deleted.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2016, Clover Health Labs, LLC
1+
Copyright (c) 2016, 2017, 2018, Clover Health Labs, LLC
22
All rights reserved.
33

44
Redistribution and use in source and binary forms, with or without

MANIFEST.in

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)