-
Notifications
You must be signed in to change notification settings - Fork 99
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 #242 from MrPowers/202-drop-pyspark2
Drop Spark-2 support and update dependencies
- Loading branch information
Showing
11 changed files
with
1,190 additions
and
1,254 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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "quinn" | ||
version = "0.10.3" | ||
version = "1.0.0" | ||
description = "Pyspark helper methods to maximize developer efficiency" | ||
authors = ["MrPowers <[email protected]>"] | ||
|
||
|
@@ -22,7 +22,7 @@ build-backend = "poetry.masonry.api" | |
########################################################################### | ||
|
||
[tool.poetry.dependencies] | ||
python = ">=3.7,<4.0" | ||
python = ">=3.9,<4.0" | ||
|
||
|
||
########################################################################### | ||
|
@@ -42,26 +42,28 @@ optional = true | |
optional = true | ||
|
||
[tool.poetry.group.development.dependencies] | ||
pyspark = ">2" | ||
pyspark = ">3" | ||
semver = "^3" | ||
|
||
[tool.poetry.group.testing.dependencies] | ||
pytest = "^7" | ||
chispa = "0.9.4" | ||
chispa = "^0.10" | ||
pytest-describe = "^2" | ||
pyspark = ">2" | ||
pyspark = ">3" | ||
semver = "^3" | ||
|
||
[tool.poetry.group.linting.dependencies] | ||
ruff = "^0.0.291" | ||
ruff = "^0.5" | ||
|
||
[tool.poetry.group.docs.dependencies] | ||
mkdocstrings-python = "^0.8.3" | ||
mkdocs-gen-files = "^0.4.0" | ||
mkdocs-literate-nav = "^0.6.0" | ||
mkdocs-section-index = "^0.3.5" | ||
markdown-include = "^0.8.1" | ||
mkdocs = "^1" | ||
# All the dependencies related to mkdocs; | ||
# We are pinning only the main version of mkdocs. | ||
mkdocstrings-python = "*" | ||
mkdocs-gen-files = "*" | ||
mkdocs-literate-nav = "*" | ||
mkdocs-section-index = "*" | ||
markdown-include = "*" | ||
mkdocs = "^1.6" | ||
jupyterlab = "*" | ||
mkdocs-jupyter = "*" | ||
mkdocs-material = "*" | ||
|
@@ -74,8 +76,11 @@ markdown-exec = "*" | |
########################################################################### | ||
|
||
[tool.ruff] | ||
select = ["ALL"] | ||
line-length = 150 | ||
extend-exclude = ["tests", "docs"] | ||
|
||
[tool.ruff.lint] | ||
select = ["ALL"] | ||
ignore = [ | ||
"D100", | ||
"D203", # Ignore blank line before summary of class | ||
|
@@ -94,10 +99,13 @@ ignore = [ | |
"PTH123", # Don't force use of Pathlib | ||
"PTH207", # Don't force use of Pathlib | ||
"PTH113", # Don't force use of Pathlib | ||
"ISC001", # Recommended by Ruff | ||
"COM812", # Recommended by Ruff | ||
] | ||
extend-exclude = ["tests", "docs"] | ||
|
||
[tool.ruff.per-file-ignores] | ||
[tool.ruff.lint.per-file-ignores] | ||
"quinn/extensions/column_ext.py" = ["FBT003", "N802"] | ||
"quinn/extensions/__init__.py" = ["F401", "F403"] | ||
"quinn/__init__.py" = ["F401", "F403"] | ||
"quinn/functions.py" = ["FBT003"] | ||
"quinn/keyword_finder.py" = ["A002"] |
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 |
---|---|---|
|
@@ -54,6 +54,7 @@ | |
"sparkContext", | ||
] | ||
|
||
|
||
@dataclass | ||
class SearchResult: | ||
"""Class to hold the results of a file search. | ||
|
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