-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: enable python 3.8 (and disable py 3.12)
- Loading branch information
1 parent
fc589de
commit feb847d
Showing
11 changed files
with
811 additions
and
774 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[mypy] | ||
python_version = 3.8 |
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
target-version = "py38" | ||
|
||
[lint] | ||
select = [ | ||
"A", | ||
# "ANN", | ||
"B", | ||
"BLE", | ||
"C4", | ||
"C90", | ||
# "D", | ||
"E", | ||
"F", | ||
"FBT", | ||
"I", | ||
"RUF", | ||
"S", | ||
"YTT", | ||
] | ||
|
||
# Never enforce `E501` (line length violations). | ||
# ignore = ["E501"] | ||
ignore = ["ANN101", "ANN102","D203", "D213", "B008"] | ||
|
||
# Avoid trying to fix flake8-bugbear (`B`) violations. | ||
unfixable = ["B"] | ||
|
||
# Ignore `E402` (import violations) in all `__init__.py` files, and in `path/to/file.py`. | ||
[lint.per-file-ignores] | ||
"**/tests/*" = ["D100","D101","D102","D103","D104","S101"] | ||
# "__init__.py" = ["E402"] |
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -5,14 +5,10 @@ description = "A sparv plugin for computing word neighbours using a BERT model." | |
authors = [ | ||
{ name = "Kristoffer Andersson", email = "[email protected]" }, | ||
] | ||
dependencies = [ | ||
"sparv-pipeline >=5.2.0", | ||
"transformers>=4.34.1", | ||
"tabulate>=0.9.0", | ||
] | ||
dependencies = ["sparv-pipeline >=5.2.0", "transformers>=4.34.1"] | ||
license = "MIT" | ||
readme = "README.md" | ||
requires-python = ">= 3.9" | ||
requires-python = ">= 3.8.1,<3.12" | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
# "Development Status :: 5 - Production/Stable", | ||
|
@@ -21,10 +17,11 @@ classifiers = [ | |
"Operating System :: Unix", | ||
"Operating System :: POSIX", | ||
# "Operating System :: Microsoft :: Windows", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
# "Programming Language :: Python :: 3.12", TODO: fix this | ||
"Programming Language :: Python :: Implementation :: CPython", | ||
# "uncomment if you test on these interpreters:", | ||
# "Programming Language :: Python :: Implementation :: IronPython", | ||
|
@@ -56,7 +53,4 @@ allow-direct-references = true | |
|
||
|
||
[tool.pdm.dev-dependencies] | ||
dev = [ | ||
"pytest>=8.0.0", | ||
"syrupy>=4.6.1", | ||
] | ||
dev = ["pytest>=8.0.0", "syrupy>=4.6.1"] |
Oops, something went wrong.