File tree 4 files changed +46
-7
lines changed
4 files changed +46
-7
lines changed Original file line number Diff line number Diff line change
1
+ use nix
Original file line number Diff line number Diff line change @@ -31,3 +31,4 @@ virtualenv
31
31
* .prefs
32
32
* .mo
33
33
/.stfolder
34
+ .direnv /
Original file line number Diff line number Diff line change 1
- VIRTUALENV = $(shell pwd) /venv.tmp
2
- PYTHON = $(VIRTUALENV ) /bin/python
1
+ PYTHON = python
3
2
ISORT = isort $$(find $(PWD ) /allauth -not -path '*/migrations/*' -type f -name '*.py' -not -name '__init__.py' -print )
4
3
4
+
5
+ .PHONY : usage
6
+ usage :
7
+ @echo ' Usage: make [target]'
8
+ @echo ' '
9
+ @echo ' Targets:'
10
+ @echo ' black Auto format Python code'
11
+ @echo ' isort Fix isort issues'
12
+ @echo ' po (Re)generate .po files'
13
+ @echo ' mo Compile .po into .mo'
14
+
15
+ .PHONY : po
5
16
po :
6
17
( cd allauth ; $( PYTHON) ../manage.py makemessages -a -e html,txt,py )
7
18
19
+ .PHONY : mo
8
20
mo :
9
21
( cd allauth ; $( PYTHON) ../manage.py compilemessages )
10
22
11
- isort-fix :
23
+ .PHONY : isort
24
+ isort :
12
25
$(ISORT )
13
26
14
- .PHONY : \
15
- po \
16
- mo \
17
- isort-fix
27
+ .PHONY : black
28
+ black :
29
+ black allauth/ setup.py
Original file line number Diff line number Diff line change
1
+ with import <nixpkgs> { } ;
2
+
3
+ stdenv . mkDerivation {
4
+ name = "django-allauth" ;
5
+ buildInputs = [
6
+ black
7
+ gettext
8
+ isort
9
+ python310
10
+ python310Packages . django
11
+ python310Packages . flake8
12
+ python310Packages . pycodestyle
13
+ python310Packages . pyls-flake8
14
+ python310Packages . pylsp-rope
15
+ python310Packages . pytest
16
+ python310Packages . pytest-django
17
+ python310Packages . python-lsp-server
18
+ python310Packages . python3-openid
19
+ python310Packages . python3-saml
20
+ python310Packages . requests-oauthlib
21
+ python310Packages . tox
22
+ sphinx
23
+ twine
24
+ ] ;
25
+ }
You can’t perform that action at this time.
0 commit comments