Skip to content

Commit 901e140

Browse files
committed
🔧 Add pre-commit config
1 parent 5a82773 commit 901e140

3 files changed

Lines changed: 38 additions & 0 deletions

File tree

.pre-commit-config.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# See https://pre-commit.com for more information
2+
# See https://pre-commit.com/hooks.html for more hooks
3+
4+
repos:
5+
- repo: https://github.com/pre-commit/pre-commit-hooks
6+
rev: v3.2.0
7+
hooks:
8+
- id: trailing-whitespace
9+
- id: end-of-file-fixer
10+
- id: check-yaml
11+
- id: check-json
12+
types: [file] # override `types: [json]`
13+
files: \.(json|ipynb)$
14+
- repo: https://github.com/psf/black
15+
rev: "22.12.0"
16+
hooks:
17+
- id: black
18+
- repo: https://github.com/asottile/reorder_python_imports
19+
rev: "v3.9.0"
20+
hooks:
21+
- id: reorder-python-imports
22+
- repo: https://github.com/pycqa/flake8
23+
rev: "6.0.0"
24+
hooks:
25+
- id: flake8
26+
language_version: python3

constraints.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,24 @@ alabaster==0.7.12
22
Babel==2.11.0
33
beautifulsoup4==4.11.1
44
certifi==2022.12.7
5+
cfgv==3.3.1
56
charset-normalizer==2.1.1
7+
distlib==0.3.6
68
docutils==0.17.1
9+
filelock==3.9.0
710
furo==2022.9.29
11+
identify==2.5.12
812
idna==3.4
913
imagesize==1.4.1
1014
Jinja2==3.1.2
1115
MarkupSafe==2.1.1
16+
nodeenv==1.7.0
1217
packaging==22.0
18+
platformdirs==2.6.2
19+
pre-commit==2.21.0
1320
Pygments==2.14.0
1421
pytz==2022.7
22+
PyYAML==6.0
1523
requests==2.28.1
1624
snowballstemmer==2.2.0
1725
soupsieve==2.3.2.post1
@@ -27,3 +35,4 @@ sphinxcontrib-qthelp==1.0.3
2735
sphinxcontrib-serializinghtml==1.1.5
2836
sphinxext-opengraph==0.7.5
2937
urllib3==1.26.13
38+
virtualenv==20.17.1

requirements_dev.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
-r requirements.txt
2+
3+
pre-commit

0 commit comments

Comments
 (0)