You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have python scripts I execute on a slurm cluster.
To give some configurations to the cluster the script starts with comments in a specific style. For example
#!/bin/python#SBATCH -n 5#SBATCH -N 1
When formatting this file the Shebang is left as is but the other comments get treated as regular comments and a space is inserted between # and SBATCH. Unfortunately this space prevents the slurm cluster from recognizing the comments.
My current solution is
#!/bin/python# fmt: off#SBATCH -n 5#SBATCH -N 1# fmt: on
I would like an option to ignore these comments when formatting a file.
The text was updated successfully, but these errors were encountered:
Summary
I have python scripts I execute on a slurm cluster.
To give some configurations to the cluster the script starts with comments in a specific style. For example
When formatting this file the Shebang is left as is but the other comments get treated as regular comments and a space is inserted between
#
andSBATCH
. Unfortunately this space prevents the slurm cluster from recognizing the comments.My current solution is
I would like an option to ignore these comments when formatting a file.
The text was updated successfully, but these errors were encountered: