Skip to content

Commit b8e3a7c

Browse files
committed
update template
1 parent 00d01fa commit b8e3a7c

File tree

4 files changed

+30
-23
lines changed

4 files changed

+30
-23
lines changed

.cruft.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"template": "https://github.com/iterative/py-template",
3-
"commit": "15ee26df315020399731c6291d61bef81a3fc5d3",
3+
"commit": "454eb9a60092e980778877f1248072b45a92bb74",
44
"context": {
55
"cookiecutter": {
66
"project_name": "scmrepo",

.github/dependabot.yml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,10 @@ updates:
77
interval: "weekly"
88
labels:
99
- "maintenance"
10-
# Update via cruft
11-
ignore:
12-
- dependency-name: "mkdocs*"
13-
- dependency-name: "pytest*"
14-
- dependency-name: "pylint"
15-
- dependency-name: "mypy"
1610

1711
- directory: "/"
1812
package-ecosystem: "github-actions"
1913
schedule:
2014
interval: "weekly"
2115
labels:
2216
- "maintenance"
23-
# Update via cruft
24-
ignore:
25-
- dependency-name: "actions/checkout"
26-
- dependency-name: "actions/setup-python"
27-
- dependency-name: "pypa/gh-action-pypi-publish"
28-
- dependency-name: "codecov/codecov-action"
29-
- dependency-name: "peter-evans/create-pull-request"

.pre-commit-config.yaml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ default_language_version:
22
python: python3
33
repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v4.4.0
5+
rev: v4.5.0
66
hooks:
77
- id: check-added-large-files
88
- id: check-case-conflict
@@ -14,25 +14,19 @@ repos:
1414
exclude: "README.rst"
1515
- id: check-toml
1616
- id: check-yaml
17-
- id: debug-statements
1817
- id: end-of-file-fixer
1918
- id: mixed-line-ending
2019
args: ['--fix=lf']
2120
- id: sort-simple-yaml
2221
- id: trailing-whitespace
2322
- repo: https://github.com/astral-sh/ruff-pre-commit
24-
rev: 'v0.1.5'
23+
rev: 'v0.1.13'
2524
hooks:
2625
- id: ruff
2726
args: [--fix, --exit-non-zero-on-fix]
2827
- id: ruff-format
2928
- repo: https://github.com/codespell-project/codespell
30-
rev: v2.2.5
29+
rev: v2.2.6
3130
hooks:
3231
- id: codespell
3332
additional_dependencies: ["tomli"]
34-
- repo: https://github.com/asottile/pyupgrade
35-
rev: v3.10.1
36-
hooks:
37-
- id: pyupgrade
38-
args: [--py38-plus]

pyproject.toml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,3 +124,29 @@ ignore_missing_imports = true
124124

125125
[tool.codespell]
126126
ignore-words-list = "cachable, keypair"
127+
128+
[tool.ruff]
129+
ignore = [
130+
"S101", # assert
131+
"PLR2004", # magic-value-comparison
132+
"PLW2901", # redefined-loop-name
133+
"ISC001", # single-line-implicit-string-concatenation
134+
"SIM105", # suppressible-exception
135+
"SIM108", # if-else-block-instead-of-if-exp
136+
"D203", # one blank line before class
137+
"D213", # multi-line-summary-second-line
138+
]
139+
select = ["ALL"]
140+
show-source = true
141+
show-fixes = true
142+
143+
[tool.ruff.per-file-ignores]
144+
"noxfile.py" = ["D", "PTH"]
145+
"tests/**" = ["S", "ARG001", "ARG002", "ANN"]
146+
"docs/**" = ["INP"]
147+
148+
[tool.ruff.lint.flake8-type-checking]
149+
strict = true
150+
151+
[tool.ruff.lint.isort]
152+
known-first-party = ["scmrepo"]

0 commit comments

Comments
 (0)