Skip to content

Commit 953ab26

Browse files
committed
Add Makefile and LDAP related types to indent.pro
Makefile contains targets to run indent and autopep8.
1 parent 1c8eb98 commit 953ab26

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-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: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ LCOV_INFO=build/lcov.info
22
LCOV_REPORT=build/lcov_report
33
LCOV_REPORT_OPTIONS=--show-details -no-branch-coverage \
44
--title "python-ldap LCOV report"
5+
PYTHON=python3
6+
AUTOPEP8_OPTS=--aggressive
57

68
.NOTPARALLEL:
79

@@ -10,11 +12,12 @@ all:
1012

1113
.PHONY: clean
1214
clean:
13-
rm -rf build dist *.egg-info $(VENV) .tox MANIFEST
15+
rm -rf build dist *.egg-info .tox MANIFEST
1416
rm -f .coverage .coverage.*
1517
find . -name '*.py[co]' -or -name '*.so*' -or -name '*.dylib' -delete
1618
find . -depth -name __pycache__ -exec rm -rf {} \;
1719

20+
1821
# LCOV report (measuring test coverage for C code)
1922
.PHONY: lcov-clean lcov-coverage lcov-report lcov-open lcov
2023
lcov-clean:
@@ -39,3 +42,13 @@ lcov-open: $(LCOV_REPORT)
3942
lcov: lcov-clean
4043
$(MAKE) lcov-coverage
4144
$(MAKE) lcov-report
45+
46+
.PHONY: indent
47+
indent:
48+
indent Modules/*.c Modules/*.h
49+
rm -f Modules/*.c~ Modules/*.h~
50+
51+
.PHONY: autopep8
52+
autopep8:
53+
$(PYTHON) -m autopep8 -r -i -j0 $(AUTOPEP8_OPTS) \
54+
Demo Lib Tests setup.py

0 commit comments

Comments
 (0)