Skip to content

Commit 8df4e05

Browse files
authored
feat(tooling): Enabled local linting (getsentry#1315)
* feat(tooling): Enabled local linting
1 parent 435e856 commit 8df4e05

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

.pre-commit-config.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# See https://pre-commit.com for more information
2+
# See https://pre-commit.com/hooks.html for more hooks
3+
repos:
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
rev: v3.2.0
6+
hooks:
7+
- id: trailing-whitespace
8+
- id: end-of-file-fixer
9+
10+
- repo: https://github.com/psf/black
11+
rev: stable
12+
hooks:
13+
- id: black
14+
15+
- repo: https://gitlab.com/pycqa/flake8
16+
rev: 4.0.1
17+
hooks:
18+
- id: flake8
19+
20+
# Disabled for now, because it lists a lot of problems.
21+
#- repo: https://github.com/pre-commit/mirrors-mypy
22+
# rev: 'v0.931'
23+
# hooks:
24+
# - id: mypy

linter-requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ flake8-import-order==0.18.1
44
mypy==0.782
55
flake8-bugbear==21.4.3
66
pep8-naming==0.11.1
7+
pre-commit # local linting

0 commit comments

Comments
 (0)