Skip to content

Commit 42654fc

Browse files
add pre-commit, update dev docs
1 parent 5683a32 commit 42654fc

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

.pre-commit-config.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
repos:
2+
- repo: https://github.com/psf/black
3+
rev: 24.3.0
4+
hooks:
5+
- id: black
6+
- repo: https://github.com/pycqa/flake8
7+
rev: 6.1.0
8+
hooks:
9+
- id: flake8
10+
files: '(src|_ui_tests|contrib|scripts|quickinstall.py)'

docs/devel/development.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ add more tools, exercise tools
107107
* create local docs::
108108

109109
./m docs # Windows: m docs
110+
* install the pre-commit hook::
111+
112+
pre-commit install # pre-commit is used for code linting / auto-format
110113
* set options on your favorite editor or IDE
111114

112115
- convert tabs to 4 spaces

requirements.d/development.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ pytest
55
lxml
66
# for sitetesting
77
scrapy>=2.10.1
8+
pre-commit

0 commit comments

Comments
 (0)