Commits on Source (67)
-
Moul authored
Requires Poetry v1.2 https://python-poetry.org/blog/announcing-poetry-1.2.0/#dependency-groups doc group is optional and installed for doc job
-
Moul authored
-
Moul authored
Doesn’t make sense anymore Was set up to load equaly the load onto the two runners I am fine with the fact that runners takes the jobs by themselves dependending on their availabilities
-
Moul authored
Add coverage keyword and regex Before GitLab v15.0, it used to be into the project settings now, it’s into the CI config This fixes previously working feature https://docs.gitlab.com/ee/ci/pipelines/settings.html#merge-request-test-coverage-results Add xml coverage report base on that GitLab coverage integration https://docs.gitlab.com/ee/ci/testing/test_coverage_visualization.html#python-example Create artifact already eventhough it is not yet deployed to a web server (#167)
-
Moul authored
https://www.attrs.org/en/stable/changelog.html#id17 now ’attrs’ can be imported, but is not yet available for attr.{s,ib}
-
Moul authored
Fix mypy and pylint new reports
-
Moul authored
-
Moul authored
-
Moul authored
-
Moul authored
To fix deprecation warnings
-
Moul authored
Update in template and in documentation
-
Moul authored
PEP 484 prohibits implicit Optional Bump pre-commit hooks
-
Moul authored
-
Moul authored
-
Moul authored
-
Moul authored
-
Moul authored
The resulting documentation outcome seems stable Set language in the configuration, newly reported Set to v6, even though v7 is available, but sphinx-rtd-theme is not yet compatible
-
Moul authored
Apply Black changes
-
Moul authored
Add call-arg exception to errors https://mypy.readthedocs.io/en/stable/error_code_list.html#check-arguments-in-calls-call-arg Not sure about attr.s() though Fix notes
-
Moul authored
Set forkWindowSize as required now
-
Moul authored
on requirements, certifiers-of, and certified-by New optional pubkey argument to keep backward compatibility
-
Moul authored
-
Moul authored
Apply changes
-
Moul authored
Apply changes Add missing ``` block Remove spaced bullet points
-
Moul authored
Rename jobs with the name of the tool: black, mypy
-
Moul authored
-
Moul authored
-
Moul authored
-
Moul authored
Couldn’t come with a beautiful generic implementation such as the one with attrs expanding the astuple, since there is no filter exclude in dataclass lib Appending new attributes values to inheritated super().inline() Remove attrs dependency
-
Moul authored
Which fixes the issue with 2020-12 draft set as default since jsonschema v4 JSON 2020-12 draft changes tuple from 'items' to 'prefixItems' https://json-schema.org/draft/2020-12/release-notes.html#changes-to-items-and-additionalitems
-
Moul authored
Due to Domain change of GitLab pages
-
Moul authored
Suggest to add it to Py Dev Env
-
Moul authored
-
Moul authored
Adapt contributing documentation from readme moved non-covered doc to contributing Readme: add link to contributing Add initial "Install development environment" §
-
Moul authored
Still a discovery process which does and shall not requires Poetry, unless editing the examples Try to simplify the entry Remove Poetry installation for the usage, discovery not DuniterPy development itself
-
Moul authored
Synchronize dependencies with pyproject.toml I am not fan of maintaining two lists Done for the sake of completion
-
Moul authored
Bump mypy and pyugrade pre-commit hooks without effects
-
Moul authored
Could be better exceptions naming
-
Moul authored
allow_failure https://docs.gitlab.com/ee/ci/yaml/#allow_failure See silkaj#474
-
Moul authored
libnacl.version file removed: https://github.com/saltstack/libnacl/commit/85e7b61b2c2dca957d5701c4cfc2b75fcdb46894 Get version with importlib.metadata.version("libnacl") https://github.com/python-poetry/poetry/issues/273#issuecomment-570999678 Could have use pkg_resources.get_distribution("libnacl").version https://github.com/python-poetry/poetry/issues/273#issuecomment-401983643
-
Moul authored
-
Moul authored
Matching in addition docs/index.md, but it should be fine Trigger pre-commit jobs when pre-commit-config.yaml changes
-
Moul authored
Specially for mdformat hook
-
Moul authored
which did pass the MR, where mdformat wasn’t trigger But, it’s failing the pipeline on main branch
-
Moul authored
-
Moul authored
Specialy for pylint v3.0.0, which has Py3.12 wheels Doesn’t come with new reports: https://github.com/pylint-dev/pylint/releases/tag/v3.0.0 Update pylint link
-
Moul authored
Move coverage to v3.12 job Remove allow_failure
-
Moul authored
Since this is breaking Python Poetry based projects depending on DuniterPy At least for Silkaj, I get the following RuntimeError: The Poetry configuration is invalid: - data.homepage must be uri Can be re-added once there would be a website
-
Moul authored
Necessary since GitLab v16 API change GITLAB_PRIVATE_TOKEN now has to be defined per-project
-
Moul authored
-
Moul authored
-
Moul authored
-
Moul authored
-
Moul authored
Keeping this possibility for PyPI_test job since it’s for testing purposes
-
Moul authored
Types changes from Py3.9: https://peps.python.org/pep-0585/ upgrade with pyupgrade and pylint
-
Moul authored
-
Moul authored
Pylint, fix `possibly-used-before-assignment` in examples, and fix wrong variable name (s/insance/instance/g) :( Use Pylint v3.2.7 https://github.com/pylint-dev/pylint/releases/tag/v3.2.7 because `too-many-positional-arguments` (5/5) has to be fixed from v3.3.0 onward
-
Moul authored
-
Moul authored
Since Python 3.13, the IOBase finalizer now logs any errors raised by the close() method https://docs.python.org/3/whatsnew/3.13.html#io According to https://docs.python.org/3.13/library/io.html#io.IOBase.close if the file (descriptor) is accessed after being close, `ValueError` is raised. The `fd` is copied with `copy.copy()`. Both gets automatically closed once the function ends, the second can’t close a second time the same fd, that’s why we get this error. Reorganise complex function: don’t use `with` since the function is designed to allow returning the fd Drop `copy.copy()` used previously to return the fd, causing the issue Cleanly separate three return types and function’s returns
-
Moul authored
-
Moul authored
Except pylint Apply hooks fixes
-
Moul authored
Migrate from [tool.poetry] to [project] https://python-poetry.org/blog/announcing-poetry-2.0.0 https://python-poetry.org/docs/faq/#migrate-pep621-new-static Use dynamic Poetry classifiers and dependencies, more convenient but less generic to pyproject.toml project Use full names Remove s_b from the authors, I couldn’t find a commit from him with shortlog His activity: https://forum.duniter.org/t//528
-
Moul authored
Apply Black 2025
-
Moul authored
-
Moul authored
Showing
- .gitlab-ci.yml 58 additions, 31 deletions.gitlab-ci.yml
- .pre-commit-config.yaml 25 additions, 9 deletions.pre-commit-config.yaml
- CHANGELOG.md 160 additions, 23 deletionsCHANGELOG.md
- CONTRIBUTING.md 87 additions, 17 deletionsCONTRIBUTING.md
- README.md 29 additions, 67 deletionsREADME.md
- docs/conf.py 4 additions, 4 deletionsdocs/conf.py
- docs/index.rst 1 addition, 1 deletiondocs/index.rst
- duniterpy/__init__.py 2 additions, 2 deletionsduniterpy/__init__.py
- duniterpy/api/__init__.py 1 addition, 1 deletionduniterpy/api/__init__.py
- duniterpy/api/bma/__init__.py 1 addition, 1 deletionduniterpy/api/bma/__init__.py
- duniterpy/api/bma/blockchain.py 7 additions, 4 deletionsduniterpy/api/bma/blockchain.py
- duniterpy/api/bma/network.py 1 addition, 1 deletionduniterpy/api/bma/network.py
- duniterpy/api/bma/node.py 9 additions, 2 deletionsduniterpy/api/bma/node.py
- duniterpy/api/bma/tx.py 2 additions, 2 deletionsduniterpy/api/bma/tx.py
- duniterpy/api/bma/ud.py 1 addition, 1 deletionduniterpy/api/bma/ud.py
- duniterpy/api/bma/wot.py 19 additions, 7 deletionsduniterpy/api/bma/wot.py
- duniterpy/api/bma/ws.py 1 addition, 1 deletionduniterpy/api/bma/ws.py
- duniterpy/api/client.py 30 additions, 35 deletionsduniterpy/api/client.py
- duniterpy/api/endpoint.py 21 additions, 21 deletionsduniterpy/api/endpoint.py
- duniterpy/api/errors.py 1 addition, 1 deletionduniterpy/api/errors.py