Skip to content

Commit

Permalink
fix: ignore .venv, bump version, and linting
Browse files Browse the repository at this point in the history
  • Loading branch information
mrf345 committed Oct 2, 2022
1 parent 73f1e4c commit 8d1bb28
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ c ?= 1
test: install
test -f .venv/bin/activate && source .venv/bin/activate && python -m bandit -c bandit.yml -r . && python -m pytest --count=$(c)
lint: install
source .venv/bin/activate && python -m isort --profile black --check . && python -m black --check .
source .venv/bin/activate && python -m isort -sg "**/.venv*" --profile black --check . && python -m black --check .
format: install
test -f .venv/bin/activate && source .venv/bin/activate && python -m isort --profile black . && python -m black .
test -f .venv/bin/activate && source .venv/bin/activate && python -m isort -sg "**/.venv*" --profile black . && python -m black .
run: install
python tests/integration.py
release: install-dev clean
Expand Down
2 changes: 1 addition & 1 deletion flask_minify/about.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.39"
__version__ = "0.40"
__doc__ = "Flask extension to minify html, css, js and less."
__license__ = "MIT"
__author__ = "Mohamed Feddad"
Expand Down
2 changes: 2 additions & 0 deletions flask_minify/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
class FlaskMinifyException(Exception):
"""FlaskMinify base exception"""

pass


class MissingApp(FlaskMinifyException):
"""Raised when the flask app is accessed before it's set"""

pass
2 changes: 1 addition & 1 deletion flask_minify/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
from flask import request

from flask_minify.cache import MemoryCache
from flask_minify.exceptions import MissingApp
from flask_minify.parsers import Parser
from flask_minify.utils import does_content_type_match
from flask_minify.exceptions import MissingApp


class Minify:
Expand Down
1 change: 1 addition & 0 deletions tests/units.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ def test_access_missing_app_raises_exception(self):
with pytest.raises(MissingApp):
ext.app


class TestParsers:
def test_css_edge_cases_with_rcssmin(self):
parser = parsers.Parser({"style": parsers.Rcssmin})
Expand Down

0 comments on commit 8d1bb28

Please sign in to comment.