FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-graphblas/.pre-commit-config.yaml at main · python-graphblas/python-graphblas · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
python-graphblas
/
python-graphblas
Public
Notifications
You must be signed in to change notification settings
Fork
16
Star
156
Code
Issues
55
Pull requests
45
Discussions
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
python-graphblas
/
.pre-commit-config.yaml
Copy path
More file actions
More file actions
Latest commit
History
History
History
245 lines (245 loc) · 8.07 KB
Breadcrumbs
python-graphblas
/
.pre-commit-config.yaml
Copy path
File metadata and controls
245 lines (245 loc) · 8.07 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
#
https://pre-commit.com/
#
#
Before first use: `pre-commit install`
#
To run: `pre-commit run --all-files`
#
To update: `pre-commit autoupdate`
#
- &flake8_dependencies below needs updated manually
ci
:
#
See: https://pre-commit.ci/#configuration
autofix_prs
:
false
autoupdate_schedule
:
quarterly
autoupdate_commit_msg
:
"
chore: update pre-commit hooks
"
autofix_commit_msg
:
"
style: pre-commit fixes
"
#
pysentry downloads advisory databases at run time, and pre-commit.ci
#
runs hooks without network access, so it can only run locally.
skip
:
[pylint, no-commit-to-branch, pysentry]
fail_fast
:
false
default_language_version
:
python
:
python3
repos
:
-
repo
:
https://github.com/pre-commit/pre-commit-hooks
rev
:
v6.0.0
hooks
:
-
id
:
check-added-large-files
-
id
:
check-case-conflict
-
id
:
check-executables-have-shebangs
-
id
:
check-illegal-windows-names
-
id
:
check-merge-conflict
-
id
:
check-ast
-
id
:
check-json
#
no JSON files yet; enabled for the future
-
id
:
check-toml
-
id
:
check-yaml
-
id
:
check-executables-have-shebangs
-
id
:
check-vcs-permalinks
-
id
:
debug-statements
-
id
:
destroyed-symlinks
-
id
:
detect-private-key
-
id
:
forbid-submodules
-
id
:
end-of-file-fixer
exclude_types
:
[svg]
-
id
:
mixed-line-ending
-
id
:
trailing-whitespace
-
id
:
name-tests-test
args
:
["--pytest-test-first"]
-
repo
:
https://github.com/abravalheri/validate-pyproject
rev
:
v0.25
hooks
:
-
id
:
validate-pyproject
name
:
Validate pyproject.toml
#
I don't yet trust ruff to do what autoflake does
-
repo
:
https://github.com/PyCQA/autoflake
rev
:
v2.3.3
hooks
:
-
id
:
autoflake
args
:
[--in-place]
#
We can probably remove `isort` if we come to trust `ruff --fix`,
#
but we'll need to figure out the configuration to do this in `ruff`
-
repo
:
https://github.com/pycqa/isort
#
9.0 is still in alpha (9.0.0a3) and a pre-release pin defeats
#
pre-commit.ci's autoupdate "avoid prereleases" logic; stay on the last
#
stable 8.x until 9.0 GAs.
rev
:
8.0.1
hooks
:
-
id
:
isort
#
Let's keep `pyupgrade` even though `ruff --fix` probably does most of it
-
repo
:
https://github.com/asottile/pyupgrade
rev
:
v3.21.2
hooks
:
-
id
:
pyupgrade
args
:
[--py311-plus]
-
repo
:
https://github.com/MarcoGorelli/auto-walrus
rev
:
0.4.1
hooks
:
-
id
:
auto-walrus
args
:
[--line-length, "100"]
-
repo
:
https://github.com/psf/black-pre-commit-mirror
rev
:
26.3.1
hooks
:
-
id
:
black
-
id
:
black-jupyter
-
repo
:
https://github.com/astral-sh/ruff-pre-commit
rev
:
v0.15.13
hooks
:
-
id
:
ruff-check
args
:
[--fix-only, --show-fixes]
#
Let's keep `flake8` even though `ruff` does much of the same.
#
`flake8-bugbear` and `flake8-simplify` have caught things missed by `ruff`.
-
repo
:
https://github.com/PyCQA/flake8
rev
:
7.3.0
hooks
:
-
id
:
flake8
args
:
["--config=.flake8"]
additional_dependencies
:
&flake8_dependencies
#
These versions need updated manually
-
flake8==7.3.0
-
flake8-bugbear==25.11.29
-
flake8-simplify==0.30.0
-
repo
:
https://github.com/codespell-project/codespell
rev
:
v2.4.2
hooks
:
-
id
:
codespell
types_or
:
[python, markdown, rst, toml, yaml]
additional_dependencies
:
-
tomli; python_version<'3.11'
files
:
^(graphblas|docs)/
-
repo
:
https://github.com/astral-sh/ruff-pre-commit
rev
:
v0.15.13
hooks
:
-
id
:
ruff-check
#
- id: ruff-format # we prefer black; uncomment to compare with ruff's formatter
-
repo
:
https://github.com/sphinx-contrib/sphinx-lint
rev
:
v1.0.2
hooks
:
-
id
:
sphinx-lint
args
:
[--enable, all, "--disable=line-too-long,leaked-markup"]
#
`pyroma` may help keep our package standards up to date if best practices change.
#
This is probably a "low value" check though and safe to remove if we want faster pre-commit.
-
repo
:
https://github.com/regebro/pyroma
rev
:
"
5.0.1
"
hooks
:
-
id
:
pyroma
args
:
[-n, "10", .]
-
repo
:
https://github.com/shellcheck-py/shellcheck-py
rev
:
"
v0.11.0.1
"
hooks
:
-
id
:
shellcheck
-
repo
:
https://github.com/rbubley/mirrors-prettier
rev
:
v3.8.3
hooks
:
-
id
:
prettier
args
:
[--prose-wrap=preserve]
-
repo
:
https://github.com/pre-commit/pygrep-hooks
rev
:
v1.10.0
hooks
:
-
id
:
rst-backticks
-
id
:
rst-directive-colons
-
id
:
rst-inline-touching-normal
-
id
:
python-check-blanket-noqa
-
id
:
python-check-blanket-type-ignore
-
id
:
python-no-eval
-
id
:
python-no-log-warn
-
id
:
text-unicode-replacement-char
-
repo
:
https://github.com/ComPWA/taplo-pre-commit
rev
:
v0.9.3
hooks
:
-
id
:
taplo-format
args
:
["--option", "column_width=100"]
-
repo
:
https://github.com/rhysd/actionlint
rev
:
v1.7.12
hooks
:
-
id
:
actionlint
-
repo
:
https://github.com/python-jsonschema/check-jsonschema
rev
:
0.37.2
hooks
:
-
id
:
check-dependabot
-
id
:
check-github-workflows
-
id
:
check-readthedocs
-
repo
:
https://github.com/adrienverge/yamllint
rev
:
v1.38.0
hooks
:
-
id
:
yamllint
#
- repo: https://github.com/woodruffw/zizmor-pre-commit
#
rev: v1.14.2
#
hooks:
#
- id: zizmor
-
repo
:
https://github.com/pysentry/pysentry-pre-commit
rev
:
v0.4.6
hooks
:
-
id
:
pysentry
args
:
["--format=human", "--fail-on=low", "--sources=pypa,osv,pypi"]
-
repo
:
meta
hooks
:
-
id
:
check-hooks-apply
-
id
:
check-useless-excludes
-
repo
:
local
hooks
:
-
id
:
disallow-caps
name
:
Disallow improper capitalization
language
:
pygrep
entry
:
PyBind|Numpy\>|Cmake|CCache|Github|PyTest|\<RST\>|PyLint
exclude
:
(.pre-commit-config.yaml|docs/pages/guides/style\.md)$
-
id
:
disallow-words
name
:
Disallow certain words
language
:
pygrep
entry
:
"
[Ff]alsey
"
exclude
:
.pre-commit-config.yaml$
-
id
:
disallow-bad-permalinks
name
:
Disallow _ in permalinks
language
:
pygrep
entry
:
"
^permalink:.*_.*
"
-
id
:
disallow-ai-dashes
#
AI-ism: em-dash, en-dash, " -- " separator, or "word--jam".
#
See ``scripts/find_aiisms.sh`` for the manual / branch-diff variant
#
and ``ai/CLAUDE.md`` "Writing Style" for the rationale.
name
:
Disallow em/en-dash and ' -- ' as a separator
language
:
pygrep
entry
:
"
—|–| -- |[A-Za-z0-9]--
"
types_or
:
[python, rst, markdown, toml, yaml, shell]
#
README intentionally uses en-dash. docs/conf.py + jit_diagnostics.py
#
use ``# --- Section ---`` banner comments / print output, which the
#
regex also matches. find_aiisms.sh contains the matching regex.
exclude
:
|
(?x)^(
README\.md
| docs/conf\.py
| scripts/jit_diagnostics\.py
| scripts/find_aiisms\.sh
| \.pre-commit-config\.yaml
)$
#
Add `--hook-stage manual` to pre-commit command to run (very slow)
#
It's probably better (and faster!) to simply run `pylint graphblas/some/file.py`
-
id
:
pylint
name
:
pylint
entry
:
pylint
language
:
system
types
:
[python]
stages
:
[manual]
args
:
[graphblas/]
pass_filenames
:
false
-
repo
:
https://github.com/pre-commit/pre-commit-hooks
rev
:
v6.0.0
hooks
:
-
id
:
no-commit-to-branch
#
no commit directly to main
#
#
Maybe:
#
#
- repo: https://github.com/rstcheck/rstcheck
#
rev: v6.1.1
#
hooks:
#
- id: rstcheck
#
additional_dependencies: [nbsphinx]
#
#
- repo: https://github.com/PyCQA/pydocstyle
#
rev: 6.3.0
#
hooks:
#
- id: pydocstyle
#
additional_dependencies: [tomli]
#
#
- repo: https://github.com/PyCQA/bandit
#
rev: 1.8.2
#
hooks:
#
- id: bandit
#
args: ["-c", "pyproject.toml"]
#
additional_dependencies: ["bandit[toml]"]
#
#
blacken-docs, blackdoc, mypy, pydocstringformatter, velin, flynt
Back
|
FazBrowse Home
|
New Git URL