mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-04 22:34:31 +02:00
flake/dev: use nix-shell shebangs for scripts
Allow running the scripts directly without entering the devshell.
This commit is contained in:
parent
c39f5f39c3
commit
9cc99629f3
5 changed files with 11 additions and 4 deletions
3
flake/dev/diff-plugins.py
Normal file → Executable file
3
flake/dev/diff-plugins.py
Normal file → Executable file
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env nix-shell
|
||||||
|
#!nix-shell -i python3 -p python3
|
||||||
|
|
||||||
import json
|
import json
|
||||||
import re
|
import re
|
||||||
|
|
|
@ -10,6 +10,8 @@
|
||||||
package = pkgs.writers.writePython3Bin "list-plugins" {
|
package = pkgs.writers.writePython3Bin "list-plugins" {
|
||||||
# Disable flake8 checks that are incompatible with the ruff ones
|
# Disable flake8 checks that are incompatible with the ruff ones
|
||||||
flakeIgnore = [
|
flakeIgnore = [
|
||||||
|
# Thinks shebang is a block comment
|
||||||
|
"E265"
|
||||||
# line too long
|
# line too long
|
||||||
"E501"
|
"E501"
|
||||||
# line break before binary operator
|
# line break before binary operator
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
#!/usr/bin/env nix-shell
|
||||||
|
#!nix-shell -i python3 -p python3
|
||||||
|
|
||||||
import glob
|
import glob
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env nix-shell
|
||||||
# This script requires nix-locate
|
#!nix-shell -i python3 -p python3 nix-index
|
||||||
|
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
|
|
3
flake/dev/new-plugin.py
Normal file → Executable file
3
flake/dev/new-plugin.py
Normal file → Executable file
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env nix-shell
|
||||||
|
#!nix-shell -i python3 -p python3
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue