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

Apply swh-py-template v0.2.3

parent 1c529206
No related branches found
No related tags found
1 merge request!1310Apply swh-py-template v0.2.3
# 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
description: Software Heritage web UI
distribution_name: swh-web
......
......@@ -2,7 +2,7 @@ exclude: "^swh/web/tests/resources/"
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.6.0
hooks:
- id: trailing-whitespace
exclude: >
......@@ -13,23 +13,23 @@ repos:
- id: check-yaml
- repo: https://github.com/python/black
rev: 23.1.0
rev: 24.8.0
hooks:
- id: black
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
rev: 5.13.2
hooks:
- id: isort
- repo: https://github.com/pycqa/flake8
rev: 6.0.0
rev: 7.1.1
hooks:
- id: flake8
additional_dependencies: [flake8-bugbear==22.9.23]
additional_dependencies: [flake8-bugbear==24.4.26]
- repo: https://github.com/codespell-project/codespell
rev: v2.2.2
rev: v2.3.0
hooks:
- id: codespell
name: Check source code spelling
......@@ -40,7 +40,7 @@ repos:
package.json|
swh/web/browse/tests/data/content_iso-8859-7_encoded
)$
args: [-L edn, -L crate]
args: [-L edn, -L crate, -L THIRDPARTY]
stages: [commit]
- id: codespell
name: Check commit message spelling
......
......@@ -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
project and our community a harassment-free experience for everyone, regardless
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
orientation.
......
......@@ -6,7 +6,7 @@ authors = [
description = "Software Heritage web UI"
readme = { file = "README.rst", content-type = "text/x-rst" }
requires-python = ">=3.7"
requires-python = ">=3.10"
classifiers = [
"Programming Language :: Python :: 3",
"Intended Audience :: Developers",
......@@ -41,7 +41,7 @@ build-backend = "setuptools.build_meta"
fallback_version = "0.0.1"
[tool.black]
target-version = ['py310']
target-version = ['py310', 'py311', 'py312']
exclude = 'swh/web/tests/resources/contents'
[tool.isort]
......
......@@ -7,6 +7,6 @@ exclude = swh/web/tests/resources/*
# E501: line too long, use B950 warning from flake8-bugbear instead
# W503: line break before binary operator <https://github.com/psf/black/issues/52>
select = C,E,F,W,B950
ignore = E203,E231,E501,W503
ignore = E203,E231,E501,E704,W503
max-line-length = 88
......@@ -26,16 +26,16 @@ commands =
[testenv:black]
skip_install = true
deps =
black==23.1.0
black==24.8.0
commands =
{envpython} -m black --check swh
[testenv:flake8]
skip_install = true
deps =
flake8==5.0.4
flake8-bugbear==22.9.23
pycodestyle==2.9.1
flake8==7.1.1
flake8-bugbear==24.4.26
pycodestyle==2.12.1
commands =
{envpython} -m flake8 \
--exclude=.tox,.git,__pycache__,.eggs,*.egg,node_modules
......
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