Skip to content

Commit b0f3642

Browse files
tiranencukou
authored andcommitted
Add Makefile and LDAP related types to indent.pro
Makefile contains targets to run indent and autopep8.
1 parent e33ad51 commit b0f3642

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
@@ -5,6 +5,7 @@ LCOV_REPORT_OPTIONS=--show-details -no-branch-coverage \
55
--title "python-ldap LCOV report"
66
SCAN_REPORT=build/scan_report
77
PYTHON_SUPP=/usr/share/doc/python3-devel/valgrind-python.supp
8+
AUTOPEP8_OPTS=--aggressive
89

910
.NOTPARALLEL:
1011

@@ -13,7 +14,7 @@ all:
1314

1415
.PHONY: clean
1516
clean:
16-
rm -rf build dist *.egg-info $(VENV) .tox MANIFEST
17+
rm -rf build dist *.egg-info .tox MANIFEST
1718
rm -f .coverage .coverage.*
1819
find . \( -name '*.py[co]' -or -name '*.so*' -or -name '*.dylib' \) \
1920
-delete
@@ -77,3 +78,14 @@ valgrind: build $(PYTHON_SUPP)
7778
echo "Found definitive leak, see build/valgrind.log"; \
7879
exit 1; \
7980
fi
81+
82+
# Code autoformatter
83+
.PHONY: indent
84+
indent:
85+
indent Modules/*.c Modules/*.h
86+
rm -f Modules/*.c~ Modules/*.h~
87+
88+
.PHONY: autopep8
89+
autopep8:
90+
$(PYTHON) -m autopep8 -r -i -j0 $(AUTOPEP8_OPTS) \
91+
Demo Lib Tests setup.py

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy