Skip to content

Commit 545367e

Browse files
akbakb
authored andcommitted
Add initial project skeleton.
0 parents  commit 545367e

Some content is hidden

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

49 files changed

+2318
-0
lines changed

.bumpversion.cfg

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
[bumpversion]
2+
current_version = 0.1.0
3+
commit = True
4+
tag = True
5+
6+
[bumpversion:file:setup.py]
7+
search = version={current_version}
8+
replace = version={new_version}
9+
10+
[bumpversion:file:README.rst]
11+
search = v{current_version}.
12+
replace = v{new_version}.
13+
14+
[bumpversion:file:docs/conf.py]
15+
search = version = release = {current_version}
16+
replace = version = release = {new_version}
17+
18+
[bumpversion:file:src/mario_addons/__init__.py]
19+
search = __version__ = {current_version}
20+
replace = __version__ = {new_version}

.cookiecutterrc

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# This file exists so you can easily regenerate your project.
2+
#
3+
# `cookiepatcher` is a convenient shim around `cookiecutter`
4+
# for regenerating projects (it will generate a .cookiecutterrc
5+
# automatically for any template). To use it:
6+
#
7+
# pip install cookiepatcher
8+
# cookiepatcher gh:adamboche/cookiecutter-pylibrary project-path
9+
#
10+
# See:
11+
# https://pypi.org/pypi/cookiepatcher
12+
#
13+
# Alternatively, you can run:
14+
#
15+
# cookiecutter --overwrite-if-exists --config-file=project-path/.cookiecutterrc gh:adamboche/cookiecutter-pylibrary
16+
17+
default_context:
18+
19+
_template: 'gh:adamboche/cookiecutter-pylibrary'
20+
appveyor: 'yes'
21+
c_extension_function: 'longest'
22+
c_extension_module: '_mario_addons'
23+
c_extension_optional: 'no'
24+
c_extension_support: 'no'
25+
codacy: 'no'
26+
codeclimate: 'no'
27+
codecov: 'no'
28+
command_line_interface: 'click'
29+
command_line_interface_bin_name: 'mario-addons'
30+
coveralls: 'no'
31+
distribution_name: 'mario-addons'
32+
33+
full_name: 'Mario contributors'
34+
github_username: 'python-mario'
35+
landscape: 'no'
36+
license: 'MIT license'
37+
linter: 'flake8'
38+
package_name: 'mario_addons'
39+
project_name: 'mario_addons'
40+
project_short_description: 'More commands for Mario.'
41+
release_date: 'today'
42+
repo_name: 'mario-addons'
43+
requiresio: 'no'
44+
scrutinizer: 'no'
45+
sphinx_docs: 'yes'
46+
sphinx_doctest: 'no'
47+
sphinx_theme: 'sphinx-rtd-theme'
48+
test_matrix_configurator: 'no'
49+
test_matrix_separate_coverage: 'no'
50+
test_runner: 'pytest'
51+
travis: 'yes'
52+
version: '0.1.0'
53+
website: 'https://github.com/python-mario/mario-addons'
54+
year: 'now'

.coveragerc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[paths]
2+
source =
3+
src
4+
*/site-packages
5+
6+
[run]
7+
branch = true
8+
source =
9+
mario_addons
10+
tests
11+
parallel = true
12+
13+
[report]
14+
show_missing = true
15+
precision = 2
16+
omit = *migrations*

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# see http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
end_of_line = lf
6+
trim_trailing_whitespace = true
7+
insert_final_newline = true
8+
indent_style = space
9+
indent_size = 4
10+
charset = utf-8
11+
12+
[*.{bat,cmd,ps1}]
13+
end_of_line = crlf

.github/auto-merge.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Configuration for probot-auto-merge - https://github.com/bobvanderlinden/probot-auto-merge
2+
3+
# The minimum number of reviews from each association that approve the pull request before
4+
# doing an automatic merge. For more information about associations see:
5+
# https://developer.github.com/v4/reference/enum/commentauthorassociation/
6+
minApprovals:
7+
MEMBER: 0
8+
COLLABORATOR: 0
9+
10+
# The maximum number of reviews from each association that request changes to the pull request.
11+
# Setting this number higher than 0 will allow automatic merging while changes are still requested.
12+
# Requested changes from associations not defined in this list are ignored for automatic merging.
13+
maxRequestedChanges:
14+
COLLABORATOR: 0
15+
16+
# Whether an out-of-date pull request is automatically updated.
17+
# It does so by merging its base on top of the head of the pull request.
18+
# This is the equivalent of clicking the 'Update branch' button.
19+
# This is useful for repositories where protected branches are used and the option
20+
# 'Require branches to be up to date before merging' is enabled.
21+
# Note: this only works when the branch of the pull request resides in the same repository as
22+
# the pull request itself.
23+
updateBranch: true
24+
25+
# Whether the pull request branch is automatically deleted.
26+
# This is the equivalent of clicking the 'Delete branch' button shown on merged pull requests.
27+
# Note: this only works when the branch of the pull request resides in the same repository as
28+
# the pull request itself.
29+
deleteBranchAfterMerge: true
30+
31+
# In what way a pull request needs to be merged. This can be:
32+
# * merge: creates a merge commit, combining the commits from the pull request on top of
33+
# the base of the pull request (default)
34+
# * rebase: places the commits from the pull request individually on top of the base of the pull request
35+
# * squash: combines all changes from the pull request into a single commit and places the commit on top
36+
# of the base of the pull request
37+
# For more information see https://help.github.com/articles/about-pull-request-merges/
38+
mergeMethod: merge
39+
40+
# Blocking labels are the labels that can be attached to a pull request to make sure the pull request
41+
# is not being automatically merged.
42+
blockingLabels:
43+
- blocked
44+
45+
# Whenever required labels are configured, pull requests will only be automatically merged whenever
46+
# all of these labels are attached to a pull request.
47+
requiredLabels:
48+
- merge
49+
50+
# Automatic merges will be blocked if there is a match between the regular expression and title
51+
blockingTitleRegex: '\bwip\b'
52+
53+
# The status of the auto-merge process will be shown in each PR as a check. This can be especially useful to find out why a PR is not being merged automatically.
54+
reportStatus: true

.gitignore

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
*.py[cod]
2+
3+
# C extensions
4+
*.so
5+
6+
# Packages
7+
*.egg
8+
*.egg-info
9+
dist
10+
build
11+
eggs
12+
.eggs
13+
parts
14+
bin
15+
var
16+
sdist
17+
wheelhouse
18+
develop-eggs
19+
.installed.cfg
20+
lib
21+
lib64
22+
venv*/
23+
pyvenv*/
24+
25+
# Installer logs
26+
pip-log.txt
27+
28+
# Unit test / coverage reports
29+
.coverage
30+
.tox
31+
.coverage.*
32+
.pytest_cache/
33+
nosetests.xml
34+
coverage.xml
35+
htmlcov
36+
37+
# Translations
38+
*.mo
39+
40+
# Mr Developer
41+
.mr.developer.cfg
42+
.project
43+
.pydevproject
44+
.idea
45+
*.iml
46+
*.komodoproject
47+
48+
# Complexity
49+
output/*.html
50+
output/*/index.html
51+
52+
# Sphinx
53+
docs/_build
54+
55+
.DS_Store
56+
*~
57+
.*.sw[po]
58+
.build
59+
.ve
60+
.env
61+
.cache
62+
.pytest
63+
.bootstrap
64+
.appveyor.token
65+
*.bak
66+
67+
# Mypy Cache
68+
.mypy_cache/

.pre-commit-config.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
repos:
2+
- repo: https://github.com/ambv/black
3+
rev: 19.3b0
4+
hooks:
5+
- id: black
6+
language_version: python3.7
7+
# override until resolved: https://github.com/ambv/black/issues/402
8+
files: \.pyi?$
9+
types: []
10+
11+
- repo: https://github.com/asottile/blacken-docs
12+
rev: v1.0.0
13+
hooks:
14+
- id: blacken-docs
15+
additional_dependencies: [black==19.3b0]
16+
17+
- repo: https://github.com/asottile/seed-isort-config
18+
rev: v1.9.1
19+
hooks:
20+
- id: seed-isort-config
21+
22+
- repo: https://github.com/pre-commit/mirrors-isort
23+
rev: v4.3.20
24+
hooks:
25+
- id: isort
26+
language_version: python3.7
27+
28+
- repo: https://github.com/pre-commit/pre-commit-hooks
29+
rev: v2.2.3
30+
hooks:
31+
- id: trailing-whitespace
32+
- id: end-of-file-fixer
33+
- id: check-added-large-files
34+
- id: check-case-conflict
35+
- id: check-executables-have-shebangs
36+
- id: mixed-line-ending

0 commit comments

Comments
 (0)