Skip to content

Commit 694f1d2

Browse files
committed
f
1 parent 6feb601 commit 694f1d2

File tree

5 files changed

+11
-9
lines changed

5 files changed

+11
-9
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ jobs:
2828
uses: sasanquaneuf/mypy-github-action@releases/v1
2929
with:
3030
checkName: 'mypy'
31-
env:
32-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3331

3432
lint:
3533
runs-on: ubuntu-latest
@@ -45,4 +43,4 @@ jobs:
4543
- name: Install Ruff
4644
run: pip install ruff
4745
- name: Run Ruff
48-
run: ruff check . --exit-zero
46+
run: ruff check . --fix --exit-zero

autosubmit/history/platform_monitor/slurm_monitor_item.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,4 +95,4 @@ def get_as_dict(self):
9595
"AveRSS": self.AveRSS}
9696

9797
def __str__(self):
98-
return "Name {0}, Status {1}, NCpus {2}, NNodes {3}, Submit {4}, Start {5}, Finish {6}, Energy {7}, MaxRSS {8}, AveRSS {9} [Energy Str {10}]".format(self.name, self.status, self.ncpus, self.nnodes, self.submit, self.start, self.finish, self.energy, self.MaxRSS, self.AveRSS, self.energy_str, )
98+
return f"Name {self.name}, Status {self.status}, NCpus {self.ncpus}, NNodes {self.nnodes}, Submit {self.submit}, Start {self.start}, Finish {self.finish}, Energy {self.energy}, MaxRSS {self.MaxRSS}, AveRSS {self.AveRSS} [Energy Str {self.energy_str}]"

docs/source/conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797

9898
# List of patterns, relative to source directory, that match files and
9999
# directories to ignore when looking for source files.
100-
exclude_patterns = []
100+
# exclude_patterns = []
101101

102102
# The reST default role (used for this markup: `text`) to use for all
103103
# documents.
@@ -270,7 +270,7 @@
270270

271271
# -- Options for LaTeX output ---------------------------------------------
272272

273-
latex_elements = {
273+
# latex_elements = {
274274
# The paper size ('letterpaper' or 'a4paper').
275275
# 'papersize': 'letterpaper',
276276

@@ -282,7 +282,7 @@
282282

283283
# Latex figure (float) alignment
284284
# 'figure_align': 'htbp',
285-
}
285+
# }
286286

287287
# Grouping the document tree into LaTeX files. List of tuples
288288
# (source start file, target name, title,

docs/source/ext/runcmd.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
# These classes were in the .util module of the original directive.
3636
class _Singleton(type):
37-
_instances = {}
37+
_instances: dict = {}
3838

3939
def __call__(cls, *args, **kwargs):
4040
if cls not in cls._instances:
@@ -47,7 +47,7 @@ class Singleton(_Singleton("SingletonMeta", (object,), {})):
4747

4848

4949
class CMDCache(Singleton):
50-
cache = {}
50+
cache: dict = {}
5151
exclude_cache_cmd = {hash("cat output.txt")}
5252

5353
def get(self, cmd, working_directory, cache):

mypy.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[mypy]
2+
ignore_missing_imports = true
3+
exclude = 'docs/build*'
4+
exclude = 'docs/source/ext*'

0 commit comments

Comments
 (0)