Skip to content

Commit 20a48c0

Browse files
Update from cookiecutter
2 parents edf447c + 27e7809 commit 20a48c0

Some content is hidden

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

54 files changed

+1315
-265
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/__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'
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'
30+
coveralls: 'no'
31+
distribution_name: 'mario'
32+
33+
full_name: 'mario contributors'
34+
github_username: 'python-mario'
35+
landscape: 'no'
36+
license: 'GNU General Public License v3 (GPLv3)'
37+
linter: 'flake8'
38+
package_name: 'mario'
39+
project_name: 'mario'
40+
project_short_description: 'An example package. Generated with cookiecutter-pylibrary.'
41+
release_date: 'today'
42+
repo_name: 'python-mario'
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'
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
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

.gitignore

Lines changed: 68 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,68 @@
1-
poetry.lock
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)