From 27d8821abb2fe9cf46ac5199e91e7ba50374d9a0 Mon Sep 17 00:00:00 2001 From: stevenhua0320 Date: Sat, 6 Jul 2024 12:11:31 +0800 Subject: [PATCH] Fix W291 W605 for beamplanbuilder.py and classlist.py --- regolith/builders/beamplanbuilder.py | 2 +- regolith/classlist.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/regolith/builders/beamplanbuilder.py b/regolith/builders/beamplanbuilder.py index ef1de1fe3..56111101c 100644 --- a/regolith/builders/beamplanbuilder.py +++ b/regolith/builders/beamplanbuilder.py @@ -17,7 +17,7 @@ class BeamPlanBuilder(LatexBuilderBase): """ Build a file of experiment plans for the beamtime from database entries. - The report is in the .tex file. The template of the file is in the + The report is in the '.tex' file. The template of the file is in the 'templates/beamplan.tex'. The data will be grouped according to beamtime. Each beamtime will generate a file of the plans. If 'beamtime' in 'rc' are not None, only plans for those beamtime will be generated. diff --git a/regolith/classlist.py b/regolith/classlist.py index 292343a68..7d882aa56 100644 --- a/regolith/classlist.py +++ b/regolith/classlist.py @@ -50,7 +50,7 @@ def load_csv(filename, format="columbia"): return students -RE_ID = re.compile("^[A-Z]\d+$") +RE_ID = re.compile(r"^[A-Z]\d+$") RE_NAME = re.compile("^[A-Za-z-]+$")