Skip to content

Commit

Permalink
cleanup and move to new dev enviroment. Drop support for python versi…
Browse files Browse the repository at this point in the history
…ons < 3.10
  • Loading branch information
R. Broderick committed Apr 28, 2024
1 parent 7f5b797 commit 1ce407a
Show file tree
Hide file tree
Showing 9 changed files with 382 additions and 194 deletions.
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
set ignore-comments
PACKAGE_SLUG := "src/precommithooks"
PACKAGE_SLUG := "src/verbex"
export PYTHON_VERSION := if env("CI","false") != "false" { `python --version|cut -d" " -f2` } else { `cat .python-version` }
PYTHON := if env("USE_SYSTEM_PYTHON", "false") != "false" { "python" } else { ".venv/bin/python" }
PYTHON_ENV := if env("USE_SYSTEM_PYTHON", "false") != "false" { "" } else { "sh .venv/bin/activate &&" }
Expand Down
330 changes: 165 additions & 165 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,49 +3,49 @@ build-backend = "setuptools.build_meta"
requires = ["setuptools>=67.0", "wheel"]

[project]
authors = [{ "name" = "R.Broderick" }]
authors = [{"name" = "R.Broderick"}]
description = "Python verbal based regular expressions"
version = "2.0.0"
license = { "file" = "LICENSE" }
license = {"file" = "LICENSE"}
name = "verbex"
readme = { file = "README.md", content-type = "text/markdown" }
readme = {file = "README.md", content-type = "text/markdown"}
dependencies = ["beartype", "typing-extensions; python_version < '3.12'"]
requires-python = ">=3.10.0"

[project.optional-dependencies]
dev = [
"build",
"dapperdata",
"glom",
"mypy",
"pytest",
"pytest-cov",
"pytest-pretty",
"ruamel.yaml",
"ruff",
"toml-sort",
"uv",
"validate-pyproject",
"packaging",
"snakeviz",
"pre-commit",
"tox",
"tox-pyenv-redux",
"pylint",
"perflint",
"snakeviz",
"pip-audit",
"build",
"dapperdata",
"glom",
"mypy",
"pytest",
"pytest-cov",
"pytest-pretty",
"ruamel.yaml",
"ruff",
"toml-sort",
"uv",
"validate-pyproject",
"packaging",
"snakeviz",
"pre-commit",
"tox",
"tox-pyenv-redux",
"pylint",
"perflint",
"snakeviz",
"pip-audit"
]

optional = []
docs = [
"Sphinx",
"sphinx-autodoc-typehints",
"sphinx-rtd-theme",
"sphinx-rtd-size",
"autodocsumm",
"sphinx-pyproject",
"Sphinx",
"sphinx-autodoc-typehints",
"sphinx-rtd-theme",
"sphinx-rtd-size",
"autodocsumm",
"sphinx-pyproject"
]

[tool.dapperdata]
exclude_paths = [".venv", ".mypy_cache", ".git", ".vscode"]

Expand All @@ -58,109 +58,109 @@ load-plugins = "perflint"

[tool.pylint."messages control"]
disable = [
"W0707",
"W0703",
"C0204",
"C0411",
"C0114",
"C0115",
"C0116",
"W0611",
"E0401",
"W2301",
"C0414",
"C0413",
"R0902",
"R0914",
"W8205",
"E0611",
"C0103",
"R0913",
"R0903",
"W0613",
"C0412",
"W8201",
"R0912",
"R0915",
"R0801",
"W8402",
"W0511",
"W0622",
"W0107",
"R0911",
"E1101",
"E1136",
"E1120",
"W8403",
"W0222",
"E1129",
"E0213",
"W0221",
"E1128",
"C0321",
"logging-fstring-interpolation",
"unnecessary-lambda-assignment",
"protected-access",
# codes in ruff
"C0105",
"C0131",
"C0132",
"C0205",
"C0208",
"C0414",
"C3002",
"E0100",
"E0101",
"E0116",
"E0117",
"E0118",
"E0237",
"E0241",
"E0302",
"E0307",
"E0604",
"E0605",
"E1142",
"E1205",
"E1206",
"E1300",
"E1307",
"E1310",
"E1507",
"E1700",
"E2502",
"E2510",
"E2512",
"E2513",
"E2514",
"E2515",
"R0124",
"R0133",
"R0206",
"R0402",
"R0911",
"R0912",
"R0913",
"R0915",
"R1701",
"R1711",
"R1714",
"R1722",
# "R2004",
# "R5501",
"W0120",
"W0127",
"W0129",
"W0131",
"W0406",
"W0602",
"W0603",
"W0711",
"W1508",
"W1509",
"W1510",
# "W2901",
"W3301",
"W0707",
"W0703",
"C0204",
"C0411",
"C0114",
"C0115",
"C0116",
"W0611",
"E0401",
"W2301",
"C0414",
"C0413",
"R0902",
"R0914",
"W8205",
"E0611",
"C0103",
"R0913",
"R0903",
"W0613",
"C0412",
"W8201",
"R0912",
"R0915",
"R0801",
"W8402",
"W0511",
"W0622",
"W0107",
"R0911",
"E1101",
"E1136",
"E1120",
"W8403",
"W0222",
"E1129",
"E0213",
"W0221",
"E1128",
"C0321",
"logging-fstring-interpolation",
"unnecessary-lambda-assignment",
"protected-access",
# codes in ruff
"C0105",
"C0131",
"C0132",
"C0205",
"C0208",
"C0414",
"C3002",
"E0100",
"E0101",
"E0116",
"E0117",
"E0118",
"E0237",
"E0241",
"E0302",
"E0307",
"E0604",
"E0605",
"E1142",
"E1205",
"E1206",
"E1300",
"E1307",
"E1310",
"E1507",
"E1700",
"E2502",
"E2510",
"E2512",
"E2513",
"E2514",
"E2515",
"R0124",
"R0133",
"R0206",
"R0402",
"R0911",
"R0912",
"R0913",
"R0915",
"R1701",
"R1711",
"R1714",
"R1722",
# "R2004",
# "R5501",
"W0120",
"W0127",
"W0129",
"W0131",
"W0406",
"W0602",
"W0603",
"W0711",
"W1508",
"W1509",
"W1510",
# "W2901",
"W3301"
]

[tool.pytest.ini_options]
Expand Down Expand Up @@ -198,27 +198,27 @@ docstring-code-line-length = "dynamic"
typing-modules = ["beartype.typing"]
select = ["ALL"]
ignore = [
"B024",
"PIE790",
"T201",
"PYI013",
"ANN101",
"TCH003",
"PLC0414",
"ERA001",
"T203",
"ANN102",
"ANN401",
"TCH002",
"TD002",
"TD003",
"FIX002",
"D203",
"D213",
"COM812",
"ISC001",
"FBT001",
"FBT002",
"B024",
"PIE790",
"T201",
"PYI013",
"ANN101",
"TCH003",
"PLC0414",
"ERA001",
"T203",
"ANN102",
"ANN401",
"TCH002",
"TD002",
"TD003",
"FIX002",
"D203",
"D213",
"COM812",
"ISC001",
"FBT001",
"FBT002"
]
fixable = ["ALL"]
unfixable = []
Expand All @@ -227,7 +227,7 @@ unfixable = []
force-single-line = true

[tool.setuptools.dynamic]
readme = { file = ["README.md"] }
readme = {file = ["README.md"]}

[tool.setuptools.package-data]
library = ["py.typed"]
Expand All @@ -241,24 +241,24 @@ where = ["src"]
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
coverage_show_missing_items = true
extensions = [
"sphinx.ext.autodoc",
"sphinx_autodoc_typehints",
"sphinx.ext.viewcode",
"sphinx.ext.coverage",
"autodocsumm",
"sphinx_rtd_theme",
'sphinx_rtd_size',
"sphinx.ext.autodoc",
"sphinx_autodoc_typehints",
"sphinx.ext.viewcode",
"sphinx.ext.coverage",
"autodocsumm",
"sphinx_rtd_theme",
'sphinx_rtd_size'
]
sphinx_rtd_size_width = "90%"
templates_path = ["_templates"]
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
auto_doc_default_options = { 'autosummary' = true }
auto_doc_default_options = {'autosummary' = true}
# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
html_theme = "sphinx_rtd_theme"
html_style = "css/custom.css"
html_static_path = ["_static"]
html_theme_options = { 'display_version' = true, 'sticky_navigation' = true, 'includehidden' = true, 'titles_only' = false }
html_theme_options = {'display_version' = true, 'sticky_navigation' = true, 'includehidden' = true, 'titles_only' = false}
autosummary_generate = true

[tool.sphinx-pyproject.autodoc_default_options]
Expand Down
Loading

0 comments on commit 1ce407a

Please sign in to comment.