diff options
| author | Eugene Triguba <hello@eugenetriguba.com> | 2025-08-16 09:57:46 -0400 |
|---|---|---|
| committer | Eugene Triguba <hello@eugenetriguba.com> | 2025-08-16 09:57:46 -0400 |
| commit | 3b796ff25876e84c636baea33329bd3c43867de6 (patch) | |
| tree | 8284474d4002817760965c480b022aa43eac778d /pyproject.toml | |
| parent | Drop support for python 3.6, 3.7, and 3.8 (diff) | |
| download | config-file-3b796ff25876e84c636baea33329bd3c43867de6.zip | |
Update dependencies and linting
Diffstat (limited to 'pyproject.toml')
| -rw-r--r-- | pyproject.toml | 67 |
1 files changed, 42 insertions, 25 deletions
diff --git a/pyproject.toml b/pyproject.toml index 1a85c69..9062332 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,30 +37,41 @@ Documentation = "https://config-file.readthedocs.io/" [dependency-groups] dev = [ - "pre-commit~=2.1 ; python_version >= '3.6.1' and python_version < '4'", - "autoflake>=1.3.1,<2", - "isort>=5.6.4,<6", - "seed-isort-config>=2.1.1,<3 ; python_version >= '3.6.1' and python_version < '4'", - "pytest>=6.0.0,<7 ; python_version >= '3.6' and python_version < '3.7'", - "pytest>=7,<8 ; python_version >= '3.7' and python_version < '4.0'", - "pytest-cov>=2.8.1,<3 ; python_version >= '3.6' and python_version < '3.7'", - "pytest-cov>=4,<5 ; python_version >= '3.7' and python_version < '4.0'", - "pytest-sugar>=0.9.3,<0.10 ; python_version >= '3.6' and python_version < '3.7'", - "pytest-sugar>=0.9.7,<0.10 ; python_version >= '3.7' and python_version < '4.0'", - "taskipy>=1.2.1,<2", - "bump2version>=1.0.0,<2", - "flake8>=3.7.9,<4", - "black>=20,<21 ; python_version >= '3.6' and python_version < '3.13'", - "black>=23,<24 ; python_version >= '3.13'", - "mypy>=0.971,<0.972 ; python_version >= '3.6' and python_version < '3.8'", - "mypy~=1.6 ; python_version ~= '3.8'", + "bump2version>=1.0.1", + "taskipy>=1.14.1", ] +lint = [ + "autoflake>=2.3.1", + "black>=25.1.0", + "isort>=6.0.1", + "mypy>=1.17.1", + "pre-commit>=2.21.0", + "ruff>=0.12.9", +] +test = [ + "pytest>=8.4.1", + "pytest-cov>=6.2.1", + "pytest-sugar>=1.0.0", +] + +[tool.taskipy.settings] +use_vars = true + +[tool.taskipy.variables] +src_dir = "config_file" +tests_dir = "tests" [tool.taskipy.tasks] -test = "task test_cov -- --cov-report term-missing" -test_cov = "task pytest -- --cov=config_file/" -lint = "task lint_types && task lint_precommit" -lint_types = "mypy config_file/ tests/" +test = "pytest --cov={src_dir} --cov-report term-missing" +lint = """ +task lint_types && \ +task lint_analyze && \ +task lint_imports && \ +task lint_format""" +lint_types = "mypy ." +lint_analyze = "ruff check ." +lint_imports = "autoflake . && isort ." +lint_format = "black ." lint_precommit = "pre-commit run --all" pytest = "pytest tests/" @@ -79,9 +90,15 @@ include = '\.pyi?$' [tool.isort] profile = "black" -known_third_party = ["pytest"] -known_first_party = ["config_file"] + +[tool.autoflake] +in_place = true +remove_all_unused_imports = true +remove_unused_variables = true + +[tool.uv.build-backend] +module-root = "" [build-system] -requires = ["setuptools>=42", "wheel"] -build-backend = "setuptools.build_meta" +requires = ["uv_build>=0.8.11,<0.9.0"] +build-backend = "uv_build" |