Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: Bump requirements and pre-commit hooks #181

Merged
merged 1 commit into from
Feb 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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