Skip to content
Snippets Groups Projects
Commit d7609558 authored by David Douard's avatar David Douard
Browse files

Apply swh-py-template v0.2.3

parent 34604b32
No related branches found
No related tags found
1 merge request!83Apply swh-py-template v0.2.3
Pipeline #10484 passed
# Changes here will be overwritten by Copier # Changes here will be overwritten by Copier
_commit: v0.2.0 _commit: v0.2.3
_src_path: https://gitlab.softwareheritage.org/swh/devel/swh-py-template.git _src_path: https://gitlab.softwareheritage.org/swh/devel/swh-py-template.git
description: Software Heritage CVS Loader description: Software Heritage CVS Loader
distribution_name: swh-loader-cvs distribution_name: swh-loader-cvs
......
repos: repos:
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0 rev: v4.6.0
hooks: hooks:
- id: trailing-whitespace - id: trailing-whitespace
exclude: cvs2gitdump|rcsparse exclude: cvs2gitdump|rcsparse
...@@ -8,26 +8,26 @@ repos: ...@@ -8,26 +8,26 @@ repos:
- id: check-yaml - id: check-yaml
- repo: https://github.com/python/black - repo: https://github.com/python/black
rev: 23.1.0 rev: 24.8.0
hooks: hooks:
- id: black - id: black
exclude: cvs2gitdump|rcsparse exclude: cvs2gitdump|rcsparse
- repo: https://github.com/PyCQA/isort - repo: https://github.com/PyCQA/isort
rev: 5.12.0 rev: 5.13.2
hooks: hooks:
- id: isort - id: isort
exclude: cvs2gitdump|rcsparse exclude: cvs2gitdump|rcsparse
- repo: https://github.com/pycqa/flake8 - repo: https://github.com/pycqa/flake8
rev: 6.0.0 rev: 7.1.1
hooks: hooks:
- id: flake8 - id: flake8
additional_dependencies: [flake8-bugbear==22.9.23] additional_dependencies: [flake8-bugbear==24.4.26]
exclude: cvs2gitdump|rcsparse exclude: cvs2gitdump|rcsparse
- repo: https://github.com/codespell-project/codespell - repo: https://github.com/codespell-project/codespell
rev: v2.2.2 rev: v2.3.0
hooks: hooks:
- id: codespell - id: codespell
name: Check source code spelling name: Check source code spelling
......
...@@ -6,7 +6,7 @@ In the interest of fostering an open and welcoming environment, we as Software ...@@ -6,7 +6,7 @@ In the interest of fostering an open and welcoming environment, we as Software
Heritage contributors and maintainers pledge to making participation in our Heritage contributors and maintainers pledge to making participation in our
project and our community a harassment-free experience for everyone, regardless project and our community a harassment-free experience for everyone, regardless
of age, body size, disability, ethnicity, sex characteristics, gender identity of age, body size, disability, ethnicity, sex characteristics, gender identity
and expression, level of experience, education, socio-economic status, and expression, level of experience, education, socioeconomic status,
nationality, personal appearance, race, religion, or sexual identity and nationality, personal appearance, race, religion, or sexual identity and
orientation. orientation.
......
...@@ -43,7 +43,7 @@ build-backend = "setuptools.build_meta" ...@@ -43,7 +43,7 @@ build-backend = "setuptools.build_meta"
fallback_version = "0.0.1" fallback_version = "0.0.1"
[tool.black] [tool.black]
target-version = ['py37'] target-version = ['py39', 'py310', 'py311', 'py312']
exclude = '^/swh/loader/cvs/(cvsclient.py|rcsparse/|cvs2gitdump/)' exclude = '^/swh/loader/cvs/(cvsclient.py|rcsparse/|cvs2gitdump/)'
[tool.isort] [tool.isort]
......
...@@ -4,6 +4,6 @@ ...@@ -4,6 +4,6 @@
# E501: line too long, use B950 warning from flake8-bugbear instead # E501: line too long, use B950 warning from flake8-bugbear instead
# W503: line break before binary operator <https://github.com/psf/black/issues/52> # W503: line break before binary operator <https://github.com/psf/black/issues/52>
select = C,E,F,W,B950 select = C,E,F,W,B950
ignore = E203,E231,E501,W503 ignore = E203,E231,E501,E704,W503
max-line-length = 88 max-line-length = 88
exclude = .*, build, swh/loader/cvs/rcsparse, swh/loader/cvs/cvs2gitdump exclude = .*, build, swh/loader/cvs/rcsparse, swh/loader/cvs/cvs2gitdump
...@@ -26,16 +26,16 @@ commands = ...@@ -26,16 +26,16 @@ commands =
[testenv:black] [testenv:black]
skip_install = true skip_install = true
deps = deps =
black==23.1.0 black==24.8.0
commands = commands =
{envpython} -m black --check swh {envpython} -m black --check swh
[testenv:flake8] [testenv:flake8]
skip_install = true skip_install = true
deps = deps =
flake8==5.0.4 flake8==7.1.1
flake8-bugbear==22.9.23 flake8-bugbear==24.4.26
pycodestyle==2.9.1 pycodestyle==2.12.1
commands = commands =
{envpython} -m flake8 {envpython} -m flake8
...@@ -43,7 +43,7 @@ commands = ...@@ -43,7 +43,7 @@ commands =
extras = extras =
testing testing
deps = deps =
mypy==1.8.0 mypy==1.11.1
commands = commands =
mypy swh mypy swh
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment