Skip to content
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
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.11.x, 3.10.x, 3.9, 3.8]
python-version: [3.11]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ repos:
hooks:
- id: black
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.17.0'
rev: 'v0.15.22'
hooks:
- id: ruff
- repo: https://github.com/asottile/pyupgrade
rev: v3.22.0
hooks:
- id: pyupgrade
args:
- --py3-plus
- --py311-plus
- repo: local
hooks:
- id: towncrier
Expand Down
1 change: 1 addition & 0 deletions changes/165.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Drop support for Python < 3.11
2 changes: 1 addition & 1 deletion giturlparse/tests/test_parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,7 @@ def _test_valid(self, url, expected):
self.assertTrue(p.valid, "%s is not a valid URL" % url)
for k, v in expected.items():
attr_v = getattr(p, k)
self.assertEqual(attr_v, v, "[{}] Property '{}' should be '{}' but is '{}'".format(url, k, v, attr_v))
self.assertEqual(attr_v, v, f"[{url}] Property '{k}' should be '{v}' but is '{attr_v}'")

def test_valid_urls(self):
for _test_type, data in VALID_PARSE_URLS:
Expand Down
11 changes: 6 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ build-backend = "setuptools.build_meta"

[tool.black]
line-length = 119
target-version = ["py310"]
include = 'giturlparse/*py'
target-version = ["py311"]

[tool.towncrier]
package = "giturlparse"
Expand Down Expand Up @@ -41,11 +40,13 @@ multi_line_output = 3
use_parentheses = true

[tool.ruff]
ignore = []
line-length = 119
target-version = "py310"
target-version = "py311"

[tool.ruff.lint]
ignore = []

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

[tool.bumpversion]
Expand Down
5 changes: 1 addition & 4 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,14 @@ classifiers =
Intended Audience :: Developers
License :: OSI Approved :: Apache Software License
Natural Language :: English
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11

[options]
include_package_data = True
setup_requires =
setuptools
packages = giturlparse, giturlparse.platforms
python_requires = >=3.8
python_requires = >=3.11
zip_safe = False
test_suite = giturlparse.tests

Expand Down
2 changes: 1 addition & 1 deletion tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def clean(c):
patterns.append("docs/_build")
patterns.append("**/*.pyc")
for pattern in patterns:
c.run("rm -rf {}".format(pattern))
c.run(f"rm -rf {pattern}")


@task
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ envlist =
ruff
pypi-description
towncrier
py{311,310,39,38}
py311
skip_missing_interpreters = true

[testenv]
Expand Down
Loading