Skip to content

Commit 76b7aa1

Browse files
committed
Add Makefile and LDAP related types to indent.pro
Makefile contains targets to run indent and autopep8 in a virtual env.
1 parent 4edbd1a commit 76b7aa1

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ __pycache__/
66
.tox
77
.coverage*
88
!.coveragerc
9+
.venv
910

1011
# shared libs installed by 'setup.py test'
1112
/Lib/*.so*

.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: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
PYTHON=python3
2+
VENV=.venv
3+
AUTOPEP8_OPTS=-i -j0 --aggressive
4+
15
.NOTPARALLEL:
26

37
.PHONY: all
@@ -9,3 +13,20 @@ clean:
913
rm -f .coverage .coverage.*
1014
find . -name '*.py[co]' -or -name '*.so*' -or -name '*.dylib' -delete
1115
find . -depth -name __pycache__ -exec rm -rf {} \;
16+
17+
.PHONY: indent
18+
indent:
19+
indent Modules/*.c Modules/*.h
20+
rm -f Modules/*.c~ Modules/*.h~
21+
22+
$(VENV)/bin/pip:
23+
$(PYTHON) -m venv $(VENV)
24+
$@ install --upgrade pip setuptools
25+
26+
$(VENV)/bin/autopep8: $(VENV)/bin/pip
27+
$< install autopep8
28+
29+
.PHONY: autopep8
30+
autopep8: $(VENV)/bin/autopep8
31+
$< $(AUTOPEP8_OPTS) -r Demo Lib Tests setup.py
32+

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