-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from icecube/RemoveTrailingComma
Remove Trailing Comma after kwargs
- Loading branch information
Showing
13 changed files
with
17 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[build-system] | ||
requires = ["setuptools>=61.0"] | ||
requires = ["setuptools>=44.0"] # Note: unfortunately need python >=2.7 | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
|
@@ -13,7 +13,7 @@ authors = [ | |
maintainers = [ | ||
{ name = "Mirco Huennefeld", email = "[email protected]" }, | ||
] | ||
requires-python = ">=3.7" | ||
requires-python = ">=2.7" # Note: unfortunately need python >=2.7 | ||
|
||
dependencies = ["numpy", "matplotlib", "tensorflow"] | ||
|
||
|
@@ -48,7 +48,10 @@ version = {attr = "tfscripts.__version__"} | |
|
||
[tool.black] | ||
line-length = 79 | ||
target-version = ["py38"] | ||
# technically, black does not support python2. | ||
# This is all python versions black knows of and gets | ||
# rid of the trailing comma bug | ||
target-version = ["py33", "py34", "py35", "py36", "py37", "py38", "py39", "py310", "py311"] | ||
|
||
[tool.ruff] | ||
# select = ["ALL"] | ||
|
@@ -65,7 +68,7 @@ ignore = [ | |
"T20", # flake8-print | ||
"TCH", # flake8-type-checking | ||
"S101", # assert-used | ||
"F401", # imported but unused. NOTE: sooner or later, we should not ignore this | ||
"COM812", # trailing comma to not insert after **kwargs, which is a syntax error prior to py3.6 | ||
] | ||
line-length = 79 | ||
target-version = "py38" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
# ruff: noqa: F401 | ||
from tfscripts import __version__, __description__, __url__ | ||
from tfscripts import FLOAT_PRECISION |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters