Skip to content

Commit

Permalink
Merge pull request #709 from DanielYang59/drop-python39
Browse files Browse the repository at this point in the history
Drop Python 3.9 support
  • Loading branch information
shyuep authored Dec 10, 2024
2 parents 6f35b53 + a2d72c9 commit 7d0c936
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ jobs:
fail-fast: false
max-parallel: 20
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
python: ["3.9", "3.10", "3.11", "3.12", "3.13"]
os: [ubuntu-latest, macos-14, windows-latest]
python-version: ["3.10", "3.12"]

runs-on: ${{ matrix.os }}

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ Monty is created to serve as a complement to the Python standard library. It
provides suite of tools to solve many common problems, and hopefully,
be a resource to collect the best solutions.

Monty supports Python 3.x.
Monty supports Python 3.10+.

Please visit the [official docs](https://materialsvirtuallab.github.io/monty) for more information.
2 changes: 1 addition & 1 deletion pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ persistent=yes

# Minimum Python version to use for version dependent checks. Will default to
# the version used to run pylint.
py-version=3.9
py-version=3.10

# Discover python modules and packages in the file system subtree.
recursive=no
Expand Down
19 changes: 8 additions & 11 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ maintainers = [
]
description = "Monty is the missing complement to Python."
readme = "README.md"
requires-python = ">=3.9,<=3.13"
requires-python = ">=3.10"
classifiers = [
"Programming Language :: Python :: 3",
"Development Status :: 4 - Beta",
Expand Down Expand Up @@ -60,10 +60,9 @@ include = ["monty", "monty.*"]

[tool.black]
line-length = 120
target-version = ['py39']
target-version = ["py310"]
include = '\.pyi?$'
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
Expand All @@ -88,26 +87,24 @@ branch = true
exclude_also = [
"@deprecated",
"def __repr__",
"if 0:",
"if __name__ == .__main__.:",
"if self.debug:",
"if settings.DEBUG",
"pragma: no cover",
"raise AssertionError",
"raise NotImplementedError",
"show_plot",
"if TYPE_CHECKING:",
"if typing.TYPE_CHECKING:",
"except ImportError:"
]

[tool.mypy]
ignore_missing_imports = true

[tool.ruff]
lint.select = [
"I", #isort
[tool.ruff.lint]
select = [
"I", # isort
]

lint.isort.required-imports = ["from __future__ import annotations"]
lint.isort.known-first-party = ["monty"]
[tool.ruff.lint.isort]
required-imports = ["from __future__ import annotations"]
known-first-party = ["monty"]

0 comments on commit 7d0c936

Please sign in to comment.