Skip to content

Commit e3af97e

Browse files
committed
Update pre-commit
1 parent 3615841 commit e3af97e

File tree

2 files changed

+50
-42
lines changed

2 files changed

+50
-42
lines changed

.pre-commit-config.yaml

+20-8
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,55 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: v0.2.1
3+
rev: v0.6.8
44
hooks:
55
- id: ruff
66
args: [--exit-non-zero-on-fix]
77

88
- repo: https://github.com/psf/black-pre-commit-mirror
9-
rev: 24.1.1
9+
rev: 24.8.0
1010
hooks:
1111
- id: black
1212

1313
- repo: https://github.com/pre-commit/pre-commit-hooks
14-
rev: v4.5.0
14+
rev: v4.6.0
1515
hooks:
16+
- id: check-added-large-files
1617
- id: check-case-conflict
1718
- id: check-merge-conflict
1819
- id: check-toml
1920
- id: check-yaml
2021
- id: debug-statements
2122
- id: end-of-file-fixer
23+
- id: forbid-submodules
2224
- id: trailing-whitespace
2325

26+
- repo: https://github.com/python-jsonschema/check-jsonschema
27+
rev: 0.29.2
28+
hooks:
29+
- id: check-github-workflows
30+
31+
- repo: https://github.com/rhysd/actionlint
32+
rev: v1.7.2
33+
hooks:
34+
- id: actionlint
35+
2436
- repo: https://github.com/tox-dev/pyproject-fmt
25-
rev: 1.7.0
37+
rev: 2.2.4
2638
hooks:
2739
- id: pyproject-fmt
2840

2941
- repo: https://github.com/abravalheri/validate-pyproject
30-
rev: v0.16
42+
rev: v0.20.2
3143
hooks:
3244
- id: validate-pyproject
3345

3446
- repo: https://github.com/tox-dev/tox-ini-fmt
35-
rev: 1.3.1
47+
rev: 1.4.1
3648
hooks:
3749
- id: tox-ini-fmt
3850

39-
- repo: https://github.com/pre-commit/mirrors-prettier
40-
rev: v4.0.0-alpha.8
51+
- repo: https://github.com/rbubley/mirrors-prettier
52+
rev: v3.3.3
4153
hooks:
4254
- id: prettier
4355
args: [--prose-wrap=always, --print-width=88]

pyproject.toml

+30-34
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ keywords = [
1717
"strava",
1818
"visualisation",
1919
]
20-
license = {text = "MIT"}
21-
maintainers = [{name = "Hugo van Kemenade"}]
22-
authors = [{name = "Marcus Volz"}]
20+
license = { text = "MIT" }
21+
maintainers = [ { name = "Hugo van Kemenade" } ]
22+
authors = [ { name = "Marcus Volz" } ]
2323
requires-python = ">=3.8"
2424
classifiers = [
2525
"Development Status :: 3 - Alpha",
@@ -34,9 +34,7 @@ classifiers = [
3434
"Topic :: Multimedia :: Graphics",
3535
"Topic :: Scientific/Engineering :: Visualization",
3636
]
37-
dynamic = [
38-
"version",
39-
]
37+
dynamic = [ "version" ]
4038
dependencies = [
4139
"calmap>=0.0.11",
4240
"fit2gpx",
@@ -46,13 +44,11 @@ dependencies = [
4644
"plotnine",
4745
"rich",
4846
"seaborn",
49-
'setuptools; python_version >= "3.12"', # TODO Remove when https://github.com/MarvinT/calmap/issues/22 is fixed
47+
"setuptools; python_version>='3.12'", # TODO Remove when https://github.com/MarvinT/calmap/issues/22 is fixed
5048
]
51-
[project.urls]
52-
Homepage = "https://github.com/marcusvolz/strava_py"
53-
Source = "https://github.com/marcusvolz/strava_py"
54-
[project.scripts]
55-
stravavis = "stravavis.cli:main"
49+
urls.Homepage = "https://github.com/marcusvolz/strava_py"
50+
urls.Source = "https://github.com/marcusvolz/strava_py"
51+
scripts.stravavis = "stravavis.cli:main"
5652

5753
[tool.hatch]
5854
version.source = "vcs"
@@ -63,28 +59,28 @@ local_scheme = "no-local-version"
6359
[tool.ruff]
6460
fix = true
6561

66-
[tool.ruff.lint]
67-
select = [
68-
"C4", # flake8-comprehensions
69-
"E", # pycodestyle errors
70-
"EM", # flake8-errmsg
71-
"F", # pyflakes errors
72-
"I", # isort
73-
"ISC", # flake8-implicit-str-concat
74-
"LOG", # flake8-logging
75-
"PGH", # pygrep-hooks
62+
lint.select = [
63+
"C4", # flake8-comprehensions
64+
"E", # pycodestyle errors
65+
"EM", # flake8-errmsg
66+
"F", # pyflakes errors
67+
"I", # isort
68+
"ICN", # flake8-import-conventions
69+
"ISC", # flake8-implicit-str-concat
70+
"LOG", # flake8-logging
71+
"PGH", # pygrep-hooks
72+
"RUF022", # unsorted-dunder-all
7673
"RUF100", # unused noqa (yesqa)
77-
"UP", # pyupgrade
78-
"W", # pycodestyle warnings
79-
"YTT", # flake8-2020
74+
"UP", # pyupgrade
75+
"W", # pycodestyle warnings
76+
"YTT", # flake8-2020
8077
]
81-
extend-ignore = [
82-
"E203", # Whitespace before ':'
83-
"E221", # Multiple spaces before operator
84-
"E226", # Missing whitespace around arithmetic operator
85-
"E241", # Multiple spaces after ','
78+
lint.ignore = [
79+
"E203", # Whitespace before ':'
80+
"E221", # Multiple spaces before operator
81+
"E226", # Missing whitespace around arithmetic operator
82+
"E241", # Multiple spaces after ','
83+
"UP038", # Makes code slower and more verbose
8684
]
87-
88-
[tool.ruff.lint.isort]
89-
known-first-party = ["stravavis"]
90-
required-imports = ["from __future__ import annotations"]
85+
lint.isort.known-first-party = [ "stravavis" ]
86+
lint.isort.required-imports = [ "from __future__ import annotations" ]

0 commit comments

Comments
 (0)