Skip to content

Commit

Permalink
Bump requirements and pre-commit hooks. (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
obdulia-losantos authored Feb 11, 2025
1 parent 03aa2dd commit ea732b1
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 12 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ __pycache__/
## Local setup
.vscode/
.venv/
venv/

# Distribution / packaging
.Python
Expand Down
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@
repos:

- repo: /~https://github.com/asottile/pyupgrade
rev: v3.18.0
rev: v3.19.1
hooks:
- id: pyupgrade
args: ["--py38-plus"]
args: ["--py310-plus"]

- repo: /~https://github.com/adamchainz/django-upgrade
rev: 1.22.1
rev: 1.23.1
hooks:
- id: django-upgrade
args: ["--target-version", "3.0"]
args: ["--target-version", "4.0"]

- repo: /~https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.9
rev: v0.9.6
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
1 change: 0 additions & 1 deletion extra_settings/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
except ImproperlyConfigured:
pass

default_app_config = "extra_settings.apps.ExtraSettingsConfig"

__all__ = [
"__author__",
Expand Down
7 changes: 4 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ content-type = "text/markdown"

[project.license]
file = "LICENSE.txt"
content-type = "text/plain"

[project.urls]
Homepage = "/~https://github.com/fabiocaccamo/django-extra-settings"
Expand Down Expand Up @@ -83,11 +82,13 @@ exclude = '''
'''

[tool.ruff]
ignore = []
line-length = 88

[tool.ruff.lint]
ignore = []
select = ["B", "B9", "C", "E", "F", "W"]

[tool.ruff.mccabe]
[tool.ruff.lint.mccabe]
max-complexity = 10

[tool.setuptools.packages.find]
Expand Down
4 changes: 2 additions & 2 deletions requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
coverage == 7.6.*
pre-commit == 4.0.*
pre-commit == 4.1.*
psycopg2-binary == 2.9.*
tox == 4.22.*
tox == 4.24.*
2 changes: 1 addition & 1 deletion tests/test_templatetags.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def _render_template(self, string, context=None):

def test_get_setting(self):
rendered = self._render_template(
"{% load extra_settings %}" '{% get_setting "PACKAGE_NAME" %}'
'{% load extra_settings %}{% get_setting "PACKAGE_NAME" %}'
)
self.assertEqual(rendered, "django-extra-settings")

Expand Down

0 comments on commit ea732b1

Please sign in to comment.