forked from TezRomacH/python-package-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
93 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
SHELL:=/usr/bin/env bash | ||
|
||
ifeq ($(STRICT),1) | ||
SEP = | ||
else | ||
SEP = - | ||
endif | ||
|
||
.PHONY: download-poetry | ||
download-poetry: | ||
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python | ||
|
||
.PHONY: install | ||
install: | ||
poetry lock -n | ||
poetry install -n | ||
poetry run pre-commit install | ||
|
||
.PHONY: check-safety | ||
check-safety: | ||
poetry check | ||
$(SEP)pip check | ||
$(SEP)poetry run safety check --full-report | ||
$(SEP)poetry run bandit -r ./ | ||
|
||
.PHONY: check-style | ||
check-style: | ||
$(SEP)poetry run black --diff --target-version py37 --check ./ | ||
$(SEP)poetry run darglint -v 2 **/*.py | ||
|
||
.PHONY: codestyle | ||
codestyle: | ||
poetry run pre-commit run --all-files | ||
|
||
.PHONY: clean | ||
clean: | ||
rm -rf build/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# {{ cookiecutter.project_name }} | ||
|
||
<p align="center"> | ||
|
||
[![Build status](https://github.com/{{ cookiecutter.organization }}/{{ cookiecutter.project_name }}/workflows/test/badge.svg?branch=master&event=push)](https://github.com/{{ cookiecutter.organization }}/{{ cookiecutter.project_name }}/actions?query=workflow%3Atest) | ||
[![Python Version](https://img.shields.io/pypi/pyversions/{{ cookiecutter.project_name }}.svg)](https://pypi.org/project/{{ cookiecutter.project_name }}/) | ||
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) | ||
[![security: bandit](https://img.shields.io/badge/security-bandit-green.svg)](https://github.com/PyCQA/bandit) | ||
|
||
</p> | ||
|
||
{{ cookiecutter.project_description }} | ||
|
||
## Installation | ||
|
||
```bash | ||
pip install {{ cookiecutter.project_name }} | ||
``` | ||
|
||
or follow | ||
|
||
```bash | ||
poetry add {{ cookiecutter.project_name }} | ||
``` | ||
|
||
## License | ||
|
||
{{ cookiecutter.license }}. See [LICENSE](https://github.com/{{ cookiecutter.organization }}/{{ cookiecutter.project_name }}/blob/master/LICENCE) for more details. | ||
|
||
## Credits | ||
|
||
This project was generated with [`python-package-template`](https://github.com/TezRomacH/python-package-template). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
...er.project_name }}/{{cookiecutter.project_name.lower().replace('-', '_')}}/__version__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
"""Contains the version of the package.""" | ||
|
||
__version__ = "{{ cookiecutter.version }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters