Skip to content

Commit 92a73d2

Browse files
Fully remove 3.10 support
1 parent 47da660 commit 92a73d2

7 files changed

Lines changed: 87 additions & 606 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ and this project adheres to
88

99
## [Unreleased]
1010

11+
- Drop support for Python 3.10. The minimum required version is now 3.11.
1112
- Documenting support for Python 3.14.
1213
- Test against dbt-core 1.12.
1314

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ Check out the [contributing guide][contributors-guide] to get started. 🚀
211211

212212
## Requirements
213213

214-
- Python 3.10+
214+
- Python 3.11+
215215
- dbt-core 1.5+
216216

217217
## License

‎docs/contributing.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ documentation website.
5858

5959
You'll need the following:
6060

61-
- Any Python version starting from 3.10
61+
- Any Python version starting from 3.11
6262
- [pre-commit](https://pre-commit.com/) (recommended)
6363
- [uv](https://docs.astral.sh/uv/)
6464

‎docs/get_started.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Get started
22

33
`dbt-score` is a Python library that is easy to install and use. The minimum
4-
required version of Python is `3.10`.
4+
required version of Python is `3.11`.
55

66
## Installation
77

‎pyproject.toml‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ classifiers = [
1818
"License :: OSI Approved :: MIT License",
1919
"Programming Language :: Python",
2020
"Programming Language :: Python :: 3 :: Only",
21-
"Programming Language :: Python :: 3.10",
2221
"Programming Language :: Python :: 3.11",
2322
"Programming Language :: Python :: 3.12",
2423
"Programming Language :: Python :: 3.13",
@@ -29,9 +28,8 @@ classifiers = [
2928

3029
dependencies = [
3130
"click>=7.1.1, <9.0.0",
32-
"tomli>=1.1.0; python_version<'3.11'",
3331
]
34-
requires-python = ">=3.10"
32+
requires-python = ">=3.11"
3533
readme = "README.md"
3634
license = {text = "MIT"}
3735

‎src/dbt_score/config.py‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
11
"""This module is responsible for loading configuration."""
22

33
import logging
4-
import sys
4+
import tomllib
55
from dataclasses import dataclass, field, replace
66
from pathlib import Path
77
from typing import Any, Final
88

99
from dbt_score.rule import RuleConfig
1010

11-
if sys.version_info >= (3, 11):
12-
import tomllib
13-
else:
14-
import tomli as tomllib
15-
1611
logger = logging.getLogger(__name__)
1712

1813
DEFAULT_CONFIG_FILE = "pyproject.toml"

‎uv.lock‎

Lines changed: 81 additions & 594 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)