Skip to content

Commit

Permalink
upgrade black and sync versions with tox -e format
Browse files Browse the repository at this point in the history
  • Loading branch information
mmerickel committed Jan 27, 2024
1 parent 3c92e82 commit 44be883
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
[tool.black]
line-length = 79
skip-string-normalization = true
target-version = ['py37', 'py38', 'py39', 'py310']
target-version = ['py37', 'py38', 'py39', 'py310', 'py311', 'py312']
exclude = '''
/(
\.git
Expand Down
1 change: 1 addition & 0 deletions src/pyramid/httpexceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@
subclasses have one additional keyword argument: ``location``,
which indicates the location to which to redirect.
"""

import json
from string import Template
from webob import html_escape as _html_escape
Expand Down
1 change: 1 addition & 0 deletions src/pyramid/resource.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" Backwards compatibility shim module (forever). """

from pyramid.asset import * # noqa b/w compat

resolve_resource_spec = resolve_asset_spec # noqa
Expand Down
6 changes: 3 additions & 3 deletions src/pyramid/scripts/pshell.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,9 @@ def setup_env(self):
env_help['root'] = 'Root of the default resource tree.'
env_help['registry'] = 'Active Pyramid registry.'
env_help['request'] = 'Active request object.'
env_help[
'root_factory'
] = 'Default root factory used to create `root`.'
env_help['root_factory'] = (
'Default root factory used to create `root`.'
)

# load the pshell section of the ini file
env.update(self.loaded_objects)
Expand Down
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ commands =
twine check dist/*
deps =
flake8~=6.1.0
black~=23.11.0
black~=24.1.0
isort~=5.12
build
check-manifest
Expand Down Expand Up @@ -72,8 +72,8 @@ commands =
isort src/pyramid tests setup.py
black src/pyramid tests setup.py
deps =
black~=22.12.0
isort~=5.10
black~=24.1.0
isort~=5.12

[testenv:build]
skip_install = true
Expand Down

0 comments on commit 44be883

Please sign in to comment.