Skip to content

Commit

Permalink
Use derived target version (#896)
Browse files Browse the repository at this point in the history
* Use derived target version

* everywhere
  • Loading branch information
flying-sheep committed Jun 27, 2023
1 parent d256375 commit 051c1f8
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 18 deletions.
2 changes: 0 additions & 2 deletions pyproject.toml
Expand Up @@ -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",
Expand Down
2 changes: 0 additions & 2 deletions src/hatch/template/files_default.py
Expand Up @@ -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",
Expand Down
2 changes: 0 additions & 2 deletions tests/helpers/templates/new/default.py
Expand Up @@ -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",
Expand Down
2 changes: 0 additions & 2 deletions tests/helpers/templates/new/feature_cli.py
Expand Up @@ -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",
Expand Down
2 changes: 0 additions & 2 deletions tests/helpers/templates/new/feature_no_src_layout.py
Expand Up @@ -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",
Expand Down
2 changes: 0 additions & 2 deletions tests/helpers/templates/new/licenses_empty.py
Expand Up @@ -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",
Expand Down
2 changes: 0 additions & 2 deletions tests/helpers/templates/new/licenses_multiple.py
Expand Up @@ -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",
Expand Down
2 changes: 0 additions & 2 deletions tests/helpers/templates/new/projects_urls_empty.py
Expand Up @@ -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",
Expand Down
2 changes: 0 additions & 2 deletions tests/helpers/templates/new/projects_urls_space_in_label.py
Expand Up @@ -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",
Expand Down

0 comments on commit 051c1f8

Please sign in to comment.