================
Lint Test is a simple Django app to perform flake8 linting on your
project. You'll set a settings.LINT\_TEST\_SINCE\_COMMIT from some
commit in your git history.
It will then check files changed since that commit origin and ensure
they lint properly. If any file doesn't lint properly your unit test run
will fail.
## Quick start
--------------
1. ``pip install linttest``
2. Add "linttest" to your INSTALLED\_APPS setting like this::
::
INSTALLED_APPS = [
...
'linttest',
]
3. Specify the commit origin in your settings (sh> git log)::
::
LINT_TEST_SINCE_COMMIT = '<commit hash>'
4. Run the management command::
::
python manage.py linttest
or
python manage.py test linttest
5. Fix any files that fail the linting!
## Run with your normal tests suite
-----------------------------------
1. Verify installation with the "Quick Start" guide
2. Add a test that extends the ``LintTestCase`` to another test file in
your project
::
from linttest.tests import LintTestCase
class MyLintTests(LintTestCase):
pass
3. Run the test command::
::
python manage.py test
This is required for django 1.6 and up because the DiscoveryRunner
defaults to just running tests in your project.
For local installation
----------------------
1. Git clone...
2. Package it
::
python setup.py sdist # rerun this and the next step on change
3. From your desired install project - note the relative path - update
for your project location
::
pip install ../linttest/dist/linttest-0.1.tar.gz
or
::
pip install ../linttest/dist/linttest-0.1.tar.gz --upgrade # rerun on change
4. You can follow the quickstart from there
Metadata
Release files for linttest 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| linttest-0.1.4.tar.gz | 3.7 kB | Without provenance | Details |
Release files / linttest-0.1.4.tar.gz
| Download URL | linttest-0.1.4.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cd5c12e6971eec28e67b883cfb8c7fca95b55b137f1f830250c9e2c3f331b861
|
|
BLAKE2b-256 checksum How to use checksums |
3a3b2ee5507f4676bc9aead2bc2d5ca0a82ab8382f01053b1d15bfdf69ee6156
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for linttest 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.