-
Notifications
You must be signed in to change notification settings - Fork 2
General update of the project #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Viicos
wants to merge
14
commits into
main
Choose a base branch
from
general-update
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
7ccc9eb
General update of the project
Viicos e8bacac
Update action version and lockfile
Viicos 4b332ce
update
Viicos 76befec
update
Viicos 2361227
New flags
Viicos bae5341
no Python downloads
Viicos 92dcfc3
update
Viicos 0721b4e
update
Viicos 3bc5bd3
update
Viicos 2f78ece
update
Viicos a1ec52e
work
Viicos c7c9fd6
update
Viicos c710654
update
Viicos be20709
update
Viicos File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,56 +1,60 @@ | ||
| [build-system] | ||
| requires = ["setuptools>=60.0.0"] | ||
| build-backend = "setuptools.build_meta" | ||
| requires = ["hatchling"] | ||
| build-backend = "hatchling.build" | ||
|
|
||
| [project] | ||
| name = "clamdpy" | ||
| version = "0.1.0.post1" | ||
| description = "A Python wrapper around clamd, the ClamAV daemon" | ||
| authors = [ | ||
| {name = "Viicos", email = "[email protected]"} | ||
| ] | ||
| readme = "README.md" | ||
| requires-python = ">=3.8" | ||
| requires-python = ">=3.10" | ||
| classifiers = [ | ||
| "Development Status :: 4 - Beta", | ||
| "Operating System :: OS Independent", | ||
| "Programming Language :: Python :: 3", | ||
| "Programming Language :: Python :: 3 :: Only", | ||
| "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", | ||
| "Programming Language :: Python :: 3.14", | ||
| "License :: OSI Approved :: MIT License", | ||
| "Typing :: Typed" | ||
| ] | ||
| license = {file = "LICENSE"} | ||
| dynamic = ["version"] | ||
|
|
||
| [project.urls] | ||
| Homepage = "https://github.com/Viicos/clamdpy" | ||
| Source = "https://github.com/Viicos/clamdpy" | ||
| Changelog = "https://github.com/Viicos/clamdpy/blob/main/CHANGELOG.md" | ||
|
|
||
| [tool.setuptools.dynamic] | ||
| version = {attr = "clamdpy.__version__"} | ||
|
|
||
| [tool.setuptools] | ||
| package-dir = {"" = "src"} | ||
| [dependency-groups] | ||
| dev = [ | ||
| "pyright>=1.1.398", | ||
| "pytest>=8.3.5", | ||
| "ruff>=0.11.3", | ||
| "tox>=4.25.0", | ||
| "tox-gh>=1.5.0", | ||
| "tox-uv>=1.25.0", | ||
| ] | ||
|
|
||
| [tool.setuptools.packages.find] | ||
| where = ["src"] | ||
|
|
||
| [tool.setuptools.package-data] | ||
| "clamdpy" = ["py.typed"] | ||
| [tool.uv] | ||
| required-version = ">=0.9.0" | ||
|
|
||
| [tool.black] | ||
| line-length = 120 | ||
| [tool.pyright] | ||
| typeCheckingMode = "strict" | ||
| reportPrivateUsage = false | ||
|
|
||
| [tool.ruff] | ||
| target-version = "py310" | ||
| line-length = 120 | ||
| src = ["src"] | ||
|
|
||
| [tools.ruff.lint] | ||
| [tool.ruff.lint] | ||
| select = [ | ||
| "E", # pycodestyle (E) | ||
| "W", # pycodestyle (W) | ||
|
|
@@ -66,3 +70,22 @@ known-first-party = ["clamdpy"] | |
|
|
||
| [tool.pytest.ini_options] | ||
| pythonpath = "src" | ||
|
|
||
| [tool.tox] | ||
| requires = ["tox>=4.21"] | ||
| env_list = ["py310", "py311", "py312", "py314"] | ||
|
|
||
| [tool.tox.env_run_base] | ||
| description = "Run test under {base_python}" | ||
| runner = "uv-venv-lock-runner" | ||
| dependency_groups = ["dev"] | ||
| uv_python_preference = "only-managed" | ||
| uv_sync_flags = ["--no-python-downloads"] | ||
| commands = [["pytest"]] | ||
|
|
||
| [tool.tox.gh.python] | ||
| "3.10" = ["py310"] | ||
| "3.11" = ["py311"] | ||
| "3.12" = ["py312"] | ||
| "3.13" = ["py313"] | ||
| "3.14" = ["py314"] | ||
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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,7 @@ | ||
| from importlib.metadata import version | ||
|
|
||
| from .sockets import ClamdNetworkSocket, ClamdUnixSocket | ||
|
|
||
| __version__ = "0.1.0.post1" | ||
| __version__ = version("clamdpy") | ||
|
|
||
| __all__ = ("ClamdNetworkSocket", "ClamdUnixSocket") |
This file contains hidden or 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,3 @@ | ||
| from __future__ import annotations | ||
|
|
||
|
|
||
| class ClamdException(Exception): | ||
| pass | ||
|
|
||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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 was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Juste pour mon information, pyright remplace mypy ? Je connaissais pas.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Depuis peu je suis passé sur pyright, qui est actuellement le type checker le plus compliant avec la spec: https://htmlpreview.github.io/?https://github.com/python/typing/blob/main/conformance/results/results.html (et utilisant VSCode, c'est plus simple d'avoir les diagnostics directement dans l'IDE -- mypy étant utilisable uniquement en CLI et pas en language server)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Je suis aussi sous VSCode, je vais avoir quelques projets à migrer. Merci pour l’information !