-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial cookiecutter and copy/paste work.
- Loading branch information
1 parent
3059ecd
commit d2c1613
Showing
39 changed files
with
2,493 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.DS_STORE | ||
*.swp |
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,25 @@ | ||
Change Log | ||
---------- | ||
|
||
.. | ||
All enhancements and patches to warnings_report will be documented | ||
in this file. It adheres to the structure of http://keepachangelog.com/ , | ||
but in reStructuredText instead of Markdown (for ease of incorporation into | ||
Sphinx documentation and the PyPI description). | ||
This project adheres to Semantic Versioning (http://semver.org/). | ||
.. There should always be an "Unreleased" section for changes pending release. | ||
Unreleased | ||
~~~~~~~~~~ | ||
|
||
* | ||
|
||
[0.1.0] - 2020-01-14 | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
Added | ||
_____ | ||
|
||
* First release on PyPI. |
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,5 @@ | ||
include LICENSE | ||
include README.rst | ||
|
||
recursive-exclude * __pycache__ | ||
recursive-exclude * *.py[co] |
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,72 @@ | ||
.PHONY: clean compile_translations coverage diff_cover docs dummy_translations \ | ||
extract_translations fake_translations help pii_check pull_translations push_translations \ | ||
quality requirements selfcheck test test-all upgrade validate | ||
|
||
.DEFAULT_GOAL := help | ||
|
||
# For opening files in a browser. Use like: $(BROWSER)relative/path/to/file.html | ||
BROWSER := python -m webbrowser file://$(CURDIR)/ | ||
|
||
help: ## display this help message | ||
@echo "Please use \`make <target>' where <target> is one of" | ||
@awk -F ':.*?## ' '/^[a-zA-Z]/ && NF==2 {printf "\033[36m %-25s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST) | sort | ||
|
||
clean: ## remove generated byte code, coverage reports, and build artifacts | ||
find . -name '__pycache__' -exec rm -rf {} + | ||
find . -name '*.pyc' -exec rm -f {} + | ||
find . -name '*.pyo' -exec rm -f {} + | ||
find . -name '*~' -exec rm -f {} + | ||
coverage erase | ||
rm -fr build/ | ||
rm -fr dist/ | ||
rm -fr *.egg-info | ||
|
||
coverage: clean ## generate and view HTML coverage report | ||
pytest --cov-report html | ||
$(BROWSER)htmlcov/index.html | ||
|
||
docs: ## generate Sphinx HTML documentation, including API docs | ||
tox -e docs | ||
$(BROWSER)docs/_build/html/index.html | ||
|
||
# Define PIP_COMPILE_OPTS=-v to get more information during make upgrade. | ||
PIP_COMPILE = pip-compile --rebuild --upgrade $(PIP_COMPILE_OPTS) | ||
|
||
upgrade: export CUSTOM_COMPILE_COMMAND=make upgrade | ||
upgrade: ## update the requirements/*.txt files with the latest packages satisfying requirements/*.in | ||
pip install -qr requirements/pip-tools.txt | ||
# Make sure to compile files after any other files they include! | ||
$(PIP_COMPILE) -o requirements/pip-tools.txt requirements/pip-tools.in | ||
$(PIP_COMPILE) -o requirements/base.txt requirements/base.in | ||
$(PIP_COMPILE) -o requirements/test.txt requirements/test.in | ||
$(PIP_COMPILE) -o requirements/doc.txt requirements/doc.in | ||
$(PIP_COMPILE) -o requirements/quality.txt requirements/quality.in | ||
$(PIP_COMPILE) -o requirements/travis.txt requirements/travis.in | ||
$(PIP_COMPILE) -o requirements/dev.txt requirements/dev.in | ||
# Let tox control the Django version for tests | ||
sed '/^[dD]jango==/d' requirements/test.txt > requirements/test.tmp | ||
mv requirements/test.tmp requirements/test.txt | ||
|
||
quality: ## check coding style with pycodestyle and pylint | ||
tox -e quality | ||
|
||
pii_check: ## check for PII annotations on all Django models | ||
tox -e pii_check | ||
|
||
requirements: ## install development environment requirements | ||
pip install -qr requirements/pip-tools.txt | ||
pip-sync requirements/dev.txt requirements/private.* | ||
|
||
test: clean ## run tests in the current virtualenv | ||
pytest | ||
|
||
diff_cover: test ## find diff lines that need test coverage | ||
diff-cover coverage.xml | ||
|
||
test-all: quality pii_check ## run tests on every supported Python/Django combination | ||
tox | ||
|
||
validate: quality pii_check test ## run tests and quality checks | ||
|
||
selfcheck: ## check that the Makefile is well-formed | ||
@echo "The Makefile is well-formed." |
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,80 @@ | ||
====================== | ||
pytest-warnings-report | ||
====================== | ||
|
||
.. image:: https://img.shields.io/pypi/v/pytest-warnings-report.svg | ||
:target: https://pypi.org/project/pytest-warnings-report | ||
:alt: PyPI version | ||
|
||
.. image:: https://img.shields.io/pypi/pyversions/pytest-warnings-report.svg | ||
:target: https://pypi.org/project/pytest-warnings-report | ||
:alt: Python versions | ||
|
||
.. image:: https://travis-ci.org/edx/pytest-warnings-report.svg?branch=master | ||
:target: https://travis-ci.org/edx/pytest-warnings-report | ||
:alt: See Build Status on Travis CI | ||
|
||
.. image:: https://ci.appveyor.com/api/projects/status/github/edx/pytest-warnings-report?branch=master | ||
:target: https://ci.appveyor.com/project/edx/pytest-warnings-report/branch/master | ||
:alt: See Build Status on AppVeyor | ||
|
||
A pytest plugin for generating warnings reports. | ||
|
||
---- | ||
|
||
This `pytest`_ plugin was generated with `Cookiecutter`_ along with `@hackebrot`_'s `cookiecutter-pytest-plugin`_ template. | ||
|
||
|
||
Features | ||
-------- | ||
|
||
* TODO | ||
|
||
|
||
Requirements | ||
------------ | ||
|
||
* TODO | ||
|
||
|
||
Installation | ||
------------ | ||
|
||
You can install "pytest-warnings-report" via `pip`_ from `PyPI`_:: | ||
|
||
$ pip install pytest-warnings-report | ||
|
||
|
||
Usage | ||
----- | ||
|
||
* TODO | ||
|
||
Contributing | ||
------------ | ||
Contributions are very welcome. Tests can be run with `tox`_, please ensure | ||
the coverage at least stays the same before you submit a pull request. | ||
|
||
License | ||
------- | ||
|
||
Distributed under the terms of the `GNU GPL v3.0`_ license, "pytest-warnings-report" is free and open source software | ||
|
||
|
||
Issues | ||
------ | ||
|
||
If you encounter any problems, please `file an issue`_ along with a detailed description. | ||
|
||
.. _`Cookiecutter`: https://github.com/audreyr/cookiecutter | ||
.. _`@hackebrot`: https://github.com/hackebrot | ||
.. _`MIT`: http://opensource.org/licenses/MIT | ||
.. _`BSD-3`: http://opensource.org/licenses/BSD-3-Clause | ||
.. _`GNU GPL v3.0`: http://www.gnu.org/licenses/gpl-3.0.txt | ||
.. _`Apache Software License 2.0`: http://www.apache.org/licenses/LICENSE-2.0 | ||
.. _`cookiecutter-pytest-plugin`: https://github.com/pytest-dev/cookiecutter-pytest-plugin | ||
.. _`file an issue`: https://github.com/edx/pytest-warnings-report/issues | ||
.. _`pytest`: https://github.com/pytest-dev/pytest | ||
.. _`tox`: https://tox.readthedocs.io/en/latest/ | ||
.. _`pip`: https://pypi.org/project/pip/ | ||
.. _`PyPI`: https://pypi.org/project |
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,43 @@ | ||
# What Python version is installed where: | ||
# http://www.appveyor.com/docs/installed-software#python | ||
|
||
environment: | ||
matrix: | ||
- PYTHON: "C:\\Python27" | ||
TOX_ENV: "py27" | ||
|
||
- PYTHON: "C:\\Python34" | ||
TOX_ENV: "py34" | ||
|
||
- PYTHON: "C:\\Python35" | ||
TOX_ENV: "py35" | ||
|
||
- PYTHON: "C:\\Python36" | ||
TOX_ENV: "py36" | ||
|
||
- PYTHON: "C:\\Python37" | ||
TOX_ENV: "py37" | ||
|
||
init: | ||
- "%PYTHON%/python -V" | ||
- "%PYTHON%/python -c \"import struct;print( 8 * struct.calcsize(\'P\'))\"" | ||
|
||
install: | ||
- "%PYTHON%/Scripts/easy_install -U pip" | ||
- "%PYTHON%/Scripts/pip install tox" | ||
- "%PYTHON%/Scripts/pip install wheel" | ||
|
||
build: false # Not a C# project, build stuff at the test step instead. | ||
|
||
test_script: | ||
- "%PYTHON%/Scripts/tox -e %TOX_ENV%" | ||
|
||
after_test: | ||
- "%PYTHON%/python setup.py bdist_wheel" | ||
- ps: "ls dist" | ||
|
||
artifacts: | ||
- path: dist\* | ||
|
||
#on_success: | ||
# - TODO: upload the content of dist/*.whl to a public wheelhouse |
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,12 @@ | ||
coverage: | ||
status: | ||
project: | ||
default: | ||
enabled: yes | ||
target: auto | ||
patch: | ||
default: | ||
enabled: yes | ||
target: 100% | ||
|
||
comment: false |
Oops, something went wrong.