Skip to content

Commit 7220c3b

Browse files
Add repo revew to tephi (#164)
* added repo review * added some ignores * added some ignores * noted which checks fail, and which skip * added in show errskip Co-authored-by: Martin Yeo <[email protected]> * Added links to pyproj.toml * fixed links --------- Co-authored-by: Martin Yeo <[email protected]>
1 parent 8257837 commit 7220c3b

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,10 @@ repos:
2626
- id: flake8
2727
types: [file, python]
2828
args: [--config=./.flake8]
29+
30+
- repo: https://github.com/scientific-python/cookie
31+
rev: 2024.08.19
32+
hooks:
33+
- id: sp-repo-review
34+
additional_dependencies: ["repo-review[cli]"]
35+
args: ["--show=errskip"]

pyproject.toml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,49 @@ requires = [
1212
# Defined by PEP 517
1313
build-backend = "setuptools.build_meta"
1414

15+
[tool.repo-review]
16+
# These are a list of the currently failing tests:
17+
ignore = [
18+
# https://learn.scientific-python.org/development/guides/packaging-simple/#PY005
19+
"PY005", # Has tests folder
20+
21+
# https://learn.scientific-python.org/development/guides/packaging-classic/#PP003
22+
"PP003", # Does not list wheel as a build-dep
23+
# https://learn.scientific-python.org/development/guides/pytest/#PP301
24+
"PP301", # Has pytest in project
25+
# https://learn.scientific-python.org/development/guides/pytest/#PP304
26+
"PP304", # Sets the log level in pytest
27+
# https://learn.scientific-python.org/development/guides/pytest/#PP305
28+
"PP305", # Specifies xfail_strict
29+
# https://learn.scientific-python.org/development/guides/pytest/#PP306
30+
"PP306", # Specifies strict config
31+
# https://learn.scientific-python.org/development/guides/pytest/#PP307
32+
"PP307", # Specifies strict markers
33+
# https://learn.scientific-python.org/development/guides/pytest/#PP309
34+
"PP309", # Filter warnings specified
35+
36+
# https://learn.scientific-python.org/development/guides/gha-basic/#GH212
37+
"GH212", # Require GHA update grouping
38+
39+
# https://learn.scientific-python.org/development/guides/style/#PC110
40+
"PC110", # Uses black or ruff-format
41+
# https://learn.scientific-python.org/development/guides/style/#PC140
42+
"PC140", # Uses a type checker
43+
# https://learn.scientific-python.org/development/guides/style/#PC160
44+
"PC160", # Uses a spell checker
45+
# https://learn.scientific-python.org/development/guides/style/#PC170
46+
"PC170", # Uses PyGrep hooks (only needed if rST present)
47+
# https://learn.scientific-python.org/development/guides/style/#PC180
48+
"PC180", # Uses a markdown formatter
49+
# https://learn.scientific-python.org/development/guides/style/#PC190
50+
"PC190", # Uses Ruff
51+
# https://learn.scientific-python.org/development/guides/style/#PC901
52+
"PC901", # Custom pre-commit CI message
53+
54+
# https://learn.scientific-python.org/development/guides/style/#MY100
55+
"MY100", # Uses MyPy (pyproject config)
56+
57+
# https://learn.scientific-python.org/development/guides/style/#RF001
58+
"RF001", # Has Ruff config
59+
]
60+

0 commit comments

Comments
 (0)