Skip to content

Commit d748959

Browse files
authored
blocklint for linting project code for non-inclusive language (#122)
1 parent c72ec7f commit d748959

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,8 @@ repos:
4848
hooks:
4949
- id: mypy
5050
exclude: tests/
51+
- repo: https://github.com/PrincetonUniversity/blocklint
52+
rev: v0.2.4
53+
hooks:
54+
- id: blocklint
55+
exclude: 'docs/Makefile|docs/release_notes.rst|tox.ini'

tox.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ extend-ignore=E203
1212
max-line-length=88
1313
per-file-ignores=__init__.py:F401
1414

15+
[blocklint]
16+
max_issue_threshold=1
17+
1518
[testenv]
1619
usedevelop=True
1720
commands=

0 commit comments

Comments
 (0)