Skip to content

Commit 5a5d98f

Browse files
committed
Add Makefile and LDAP related types to indent.pro
Makefile contains targets to run indent and autopep8.
1 parent cb503b5 commit 5a5d98f

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

.indent.pro

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,10 @@
2222
--swallow-optional-blank-lines
2323
-T PyCFunction
2424
-T PyObject
25+
-T PyMethodDef
26+
-T LDAP
27+
-T LDAPMod
28+
-T LDAPMessage
29+
-T LDAPControl
30+
-T LDAPObject
31+
-T sasl_interact_t

Makefile

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ LCOV_REPORT=build/lcov_report
44
LCOV_REPORT_OPTIONS=--show-details -no-branch-coverage \
55
--title "python-ldap LCOV report"
66
SCAN_REPORT=build/scan_report
7+
AUTOPEP8_OPTS=--aggressive
78

89
.NOTPARALLEL:
910

@@ -12,7 +13,7 @@ all:
1213

1314
.PHONY: clean
1415
clean:
15-
rm -rf build dist *.egg-info $(VENV) .tox MANIFEST
16+
rm -rf build dist *.egg-info .tox MANIFEST
1617
rm -f .coverage .coverage.*
1718
find . \( -name '*.py[co]' -or -name '*.so*' -or -name '*.dylib' \) \
1819
-delete
@@ -49,3 +50,14 @@ scan-build:
4950
scan-build -o $(SCAN_REPORT) --html-title="python-ldap scan report" \
5051
-analyze-headers --view \
5152
$(PYTHON) setup.py clean --all build
53+
54+
# Code autoformatter
55+
.PHONY: indent
56+
indent:
57+
indent Modules/*.c Modules/*.h
58+
rm -f Modules/*.c~ Modules/*.h~
59+
60+
.PHONY: autopep8
61+
autopep8:
62+
$(PYTHON) -m autopep8 -r -i -j0 $(AUTOPEP8_OPTS) \
63+
Demo Lib Tests setup.py

0 commit comments

Comments
 (0)