Skip to content

Commit

Permalink
Apply swh-py-template v0.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
douardda committed Aug 27, 2024
1 parent 15c41aa commit 6854353
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# 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 core utilities
distribution_name: swh-core
Expand Down
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: check-json
- 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
Expand Down
2 changes: 1 addition & 1 deletion CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ build-backend = "setuptools.build_meta"
fallback_version = "0.0.1"

[tool.black]
target-version = ['py37']
target-version = ['py39', 'py310', 'py311', 'py312']

[tool.isort]
multi_line_output = 3
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
# 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
extend-exclude = .git,.tox,.mypy_cache,build,dist
10 changes: 5 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,16 @@ commands = tox run -e {env_name}-core-db-server-github-slow-cover -- {posargs}
[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

Expand All @@ -55,7 +55,7 @@ extras =
http
github
deps =
mypy==1.8.0
mypy==1.11.1
commands =
mypy swh

Expand Down

0 comments on commit 6854353

Please sign in to comment.