
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
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.
pip install linttest
Add "linttest" to your INSTALLED_APPS setting like this::
::
INSTALLED_APPS = [
...
'linttest',
]
Specify the commit origin in your settings (sh> git log)::
::
LINT_TEST_SINCE_COMMIT = '<commit hash>'
Run the management command::
::
python manage.py linttest
or
python manage.py test linttest
Fix any files that fail the linting!
Verify installation with the "Quick Start" guide
Add a test that extends the LintTestCase
to another test file in
your project
::
from linttest.tests import LintTestCase
class MyLintTests(LintTestCase):
pass
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.
Git clone...
Package it
::
python setup.py sdist # rerun this and the next step on change
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
You can follow the quickstart from there
FAQs
A django lint test runner
We found that linttest demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.