-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: delay import of requests, drop python 3.8, add python 3.13 (#27)
* feat: delay requests import * style(pre-commit.ci): auto fixes [...] * fix lint --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
e674bb1
commit 9716aa9
Showing
8 changed files
with
82 additions
and
79 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,17 +12,17 @@ name = "pyconify" | |
dynamic = ["version"] | ||
description = "iconify for python. Universal icon framework" | ||
readme = "README.md" | ||
requires-python = ">=3.8" | ||
requires-python = ">=3.9" | ||
license = { text = "BSD-3-Clause" } | ||
authors = [{ name = "Talley Lambert", email = "[email protected]" }] | ||
classifiers = [ | ||
"Development Status :: 3 - Alpha", | ||
"Development Status :: 4 - Beta", | ||
"Programming Language :: Python :: 3", | ||
"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.13", | ||
"License :: OSI Approved :: BSD License", | ||
"Typing :: Typed", | ||
] | ||
|
@@ -36,44 +36,38 @@ dev = ["black", "ipython", "mypy", "pdbpp", "rich", "ruff", "types-requests"] | |
homepage = "https://github.com/pyapp-kit/pyconify" | ||
repository = "https://github.com/pyapp-kit/pyconify" | ||
|
||
# https://github.com/charliermarsh/ruff | ||
# https://beta.ruff.rs/docs/rules/ | ||
[tool.ruff] | ||
line-length = 88 | ||
target-version = "py38" | ||
# https://beta.ruff.rs/docs/rules/ | ||
target-version = "py39" | ||
src = ["src", "tests"] | ||
|
||
[tool.ruff.lint] | ||
pydocstyle = { convention = "numpy" } | ||
select = [ | ||
"E", # style errors | ||
"W", # style warnings | ||
"E", # style errors | ||
"F", # flakes | ||
"D", # pydocstyle | ||
"I", # isort | ||
"UP", # pyupgrade | ||
"C", # flake8-comprehensions | ||
"B", # flake8-bugbear | ||
"A001", # flake8-builtins | ||
"S", # bandit | ||
"C4", # comprehensions | ||
"B", # bugbear | ||
"A001", # Variable shadowing a python builtin | ||
"TC", # flake8-type-checking | ||
"TID", # flake8-tidy-imports | ||
"RUF", # ruff-specific rules | ||
"TCH", | ||
"TID", | ||
"PERF", # performance | ||
"SLF", # private access | ||
] | ||
|
||
# I do this to get numpy-style docstrings AND retain | ||
# D417 (Missing argument descriptions in the docstring) | ||
# otherwise, see: | ||
# https://beta.ruff.rs/docs/faq/#does-ruff-support-numpy-or-google-style-docstrings | ||
# https://github.com/charliermarsh/ruff/issues/2606 | ||
ignore = [ | ||
"D100", # Missing docstring in public module | ||
"D107", # Missing docstring in __init__ | ||
"D203", # 1 blank line required before class docstring | ||
"D212", # Multi-line docstring summary should start at the first line | ||
"D213", # Multi-line docstring summary should start at the second line | ||
"D401", # First line should be in imperative mood | ||
"D413", # Missing blank line after last section | ||
"D416", # Section name should end with a colon | ||
"D401", # First line should be in imperative mood (remove to opt in) | ||
] | ||
|
||
[tool.ruff.per-file-ignores] | ||
"tests/*.py" = ["D"] | ||
[tool.ruff.lint.per-file-ignores] | ||
"tests/*.py" = ["D", "S101", "E501", "SLF"] | ||
|
||
# https://mypy.readthedocs.io/en/stable/config_file.html | ||
[tool.mypy] | ||
|
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