Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#444)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Jul 1, 2024
2 parents 5d16e05 + 4895a23 commit ad698a9
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 35 deletions.
9 changes: 4 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.5
rev: v0.5.0
hooks:
- id: ruff
args: [--exit-non-zero-on-fix]
Expand All @@ -27,21 +27,20 @@ repos:
exclude: tests/data/expected_tabulated.py

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.28.4
rev: 0.28.6
hooks:
- id: check-github-workflows
- id: check-renovate

- repo: https://github.com/rhysd/actionlint
rev: v1.7.0
rev: v1.7.1
hooks:
- id: actionlint

- repo: https://github.com/tox-dev/pyproject-fmt
rev: 1.8.0
rev: 2.1.3
hooks:
- id: pyproject-fmt
additional_dependencies: [tox]

- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.18
Expand Down
65 changes: 35 additions & 30 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ keywords = [
"statistics",
"stats",
]
license = {text = "MIT"}
authors = [{name = "Hugo van Kemenade"}]
license = { text = "MIT" }
authors = [
{ name = "Hugo van Kemenade" },
]
requires-python = ">=3.8"
classifiers = [
"Development Status :: 5 - Production/Stable",
Expand Down Expand Up @@ -47,25 +49,22 @@ dependencies = [
"python-slugify",
"termcolor>=2.1",
]
[project.optional-dependencies]
numpy = [
optional-dependencies.numpy = [
"numpy",
]
pandas = [
optional-dependencies.pandas = [
"pandas",
]
tests = [
optional-dependencies.tests = [
"freezegun",
"pytest",
"pytest-cov",
"respx>=0.11",
]
[project.urls]
Changelog = "https://github.com/hugovk/pypistats/releases"
Homepage = "https://github.com/hugovk/pypistats"
Source = "https://github.com/hugovk/pypistats"
[project.scripts]
pypistats = "pypistats.cli:main"
urls.Changelog = "https://github.com/hugovk/pypistats/releases"
urls.Homepage = "https://github.com/hugovk/pypistats"
urls.Source = "https://github.com/hugovk/pypistats"
scripts.pypistats = "pypistats.cli:main"

[tool.hatch]
version.source = "vcs"
Expand All @@ -76,36 +75,42 @@ local_scheme = "no-local-version"
[tool.ruff]
fix = true

[tool.ruff.lint]
select = [
"C4", # flake8-comprehensions
"E", # pycodestyle errors
"EM", # flake8-errmsg
"F", # pyflakes errors
"I", # isort
"ISC", # flake8-implicit-str-concat
"LOG", # flake8-logging
"PGH", # pygrep-hooks
lint.select = [
"C4", # flake8-comprehensions
"E", # pycodestyle errors
"EM", # flake8-errmsg
"F", # pyflakes errors
"I", # isort
"ISC", # flake8-implicit-str-concat
"LOG", # flake8-logging
"PGH", # pygrep-hooks
"RUF100", # unused noqa (yesqa)
"UP", # pyupgrade
"W", # pycodestyle warnings
"YTT", # flake8-2020
"UP", # pyupgrade
"W", # pycodestyle warnings
"YTT", # flake8-2020
]
extend-ignore = [
lint.extend-ignore = [
"E203", # Whitespace before ':'
"E221", # Multiple spaces before operator
"E226", # Missing whitespace around arithmetic operator
"E241", # Multiple spaces after ','
]
lint.isort.known-first-party = [
"pypistats",
]
lint.isort.required-imports = [
"from __future__ import annotations",
]

[tool.ruff.lint.isort]
known-first-party = ["pypistats"]
required-imports = ["from __future__ import annotations"]
[tool.pyproject-fmt]
max_supported_python = "3.13"

[tool.pytest.ini_options]
addopts = "--color=yes"
filterwarnings = [
# Python <= 3.11
"ignore:sys.monitoring isn't available, using default core:coverage.exceptions.CoverageWarning",
]
testpaths = ["tests"]
testpaths = [
"tests",
]

0 comments on commit ad698a9

Please sign in to comment.