From 051c1f804ae7a990bfec6419bc1228676251c727 Mon Sep 17 00:00:00 2001 From: Philipp A Date: Tue, 27 Jun 2023 15:32:32 +0200 Subject: [PATCH] Use derived target version (#896) * Use derived target version * everywhere --- pyproject.toml | 2 -- src/hatch/template/files_default.py | 2 -- tests/helpers/templates/new/default.py | 2 -- tests/helpers/templates/new/feature_cli.py | 2 -- tests/helpers/templates/new/feature_no_src_layout.py | 2 -- tests/helpers/templates/new/licenses_empty.py | 2 -- tests/helpers/templates/new/licenses_multiple.py | 2 -- tests/helpers/templates/new/projects_urls_empty.py | 2 -- tests/helpers/templates/new/projects_urls_space_in_label.py | 2 -- 9 files changed, 18 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index cccd36e2d..c8637f4a6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -86,10 +86,8 @@ exclude = [ [tool.black] line-length = 120 skip-string-normalization = true -target-version = ["py38"] [tool.ruff] -target-version = "py38" line-length = 120 select = [ "A", diff --git a/src/hatch/template/files_default.py b/src/hatch/template/files_default.py index 7f5cbdfaa..1d16301dc 100644 --- a/src/hatch/template/files_default.py +++ b/src/hatch/template/files_default.py @@ -178,12 +178,10 @@ def __init__(self, template_config: dict, plugin_config: dict): ] [tool.black] -target-version = ["py38"] line-length = 120 skip-string-normalization = true [tool.ruff] -target-version = "py38" line-length = 120 select = [ "A", diff --git a/tests/helpers/templates/new/default.py b/tests/helpers/templates/new/default.py index 75f0e7b79..2f8da82d4 100644 --- a/tests/helpers/templates/new/default.py +++ b/tests/helpers/templates/new/default.py @@ -147,12 +147,10 @@ def get_files(**kwargs): ] [tool.black] -target-version = ["py38"] line-length = 120 skip-string-normalization = true [tool.ruff] -target-version = "py38" line-length = 120 select = [ "A", diff --git a/tests/helpers/templates/new/feature_cli.py b/tests/helpers/templates/new/feature_cli.py index 7226d7820..77a447277 100644 --- a/tests/helpers/templates/new/feature_cli.py +++ b/tests/helpers/templates/new/feature_cli.py @@ -181,12 +181,10 @@ def {kwargs['package_name']}(): ] [tool.black] -target-version = ["py38"] line-length = 120 skip-string-normalization = true [tool.ruff] -target-version = "py38" line-length = 120 select = [ "A", diff --git a/tests/helpers/templates/new/feature_no_src_layout.py b/tests/helpers/templates/new/feature_no_src_layout.py index 5cfb846e9..1df5d9093 100644 --- a/tests/helpers/templates/new/feature_no_src_layout.py +++ b/tests/helpers/templates/new/feature_no_src_layout.py @@ -147,12 +147,10 @@ def get_files(**kwargs): ] [tool.black] -target-version = ["py38"] line-length = 120 skip-string-normalization = true [tool.ruff] -target-version = "py38" line-length = 120 select = [ "A", diff --git a/tests/helpers/templates/new/licenses_empty.py b/tests/helpers/templates/new/licenses_empty.py index cc8e35edb..9123510cb 100644 --- a/tests/helpers/templates/new/licenses_empty.py +++ b/tests/helpers/templates/new/licenses_empty.py @@ -110,12 +110,10 @@ def get_files(**kwargs): ] [tool.black] -target-version = ["py38"] line-length = 120 skip-string-normalization = true [tool.ruff] -target-version = "py38" line-length = 120 select = [ "A", diff --git a/tests/helpers/templates/new/licenses_multiple.py b/tests/helpers/templates/new/licenses_multiple.py index a8354c5ca..4453613fd 100644 --- a/tests/helpers/templates/new/licenses_multiple.py +++ b/tests/helpers/templates/new/licenses_multiple.py @@ -150,12 +150,10 @@ def get_files(**kwargs): ] [tool.black] -target-version = ["py38"] line-length = 120 skip-string-normalization = true [tool.ruff] -target-version = "py38" line-length = 120 select = [ "A", diff --git a/tests/helpers/templates/new/projects_urls_empty.py b/tests/helpers/templates/new/projects_urls_empty.py index 8eff8f17a..4f2c9fa74 100644 --- a/tests/helpers/templates/new/projects_urls_empty.py +++ b/tests/helpers/templates/new/projects_urls_empty.py @@ -142,12 +142,10 @@ def get_files(**kwargs): ] [tool.black] -target-version = ["py38"] line-length = 120 skip-string-normalization = true [tool.ruff] -target-version = "py38" line-length = 120 select = [ "A", diff --git a/tests/helpers/templates/new/projects_urls_space_in_label.py b/tests/helpers/templates/new/projects_urls_space_in_label.py index a7d65244a..5c691753d 100644 --- a/tests/helpers/templates/new/projects_urls_space_in_label.py +++ b/tests/helpers/templates/new/projects_urls_space_in_label.py @@ -145,12 +145,10 @@ def get_files(**kwargs): ] [tool.black] -target-version = ["py38"] line-length = 120 skip-string-normalization = true [tool.ruff] -target-version = "py38" line-length = 120 select = [ "A",