Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: Base CSV Checking and RVM Addition #8

Merged
merged 22 commits into from
Jan 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,8 @@ coverage.xml

# Eclipse
.settings


# Local Build Testing
/reqs/*
/rtm_doorstop/*
5 changes: 0 additions & 5 deletions doorstop/cli/tests/docs/.doorstop.yml

This file was deleted.

16 changes: 0 additions & 16 deletions doorstop/cli/tests/docs/HLT001.yml

This file was deleted.

12 changes: 0 additions & 12 deletions doorstop/cli/tests/docs/HLT002.yml

This file was deleted.

13 changes: 0 additions & 13 deletions doorstop/cli/tests/docs/HLT003.yml

This file was deleted.

11 changes: 0 additions & 11 deletions doorstop/cli/tests/docs/HLT004.yml

This file was deleted.

10 changes: 0 additions & 10 deletions doorstop/cli/tests/docs/HLT005.yml

This file was deleted.

11 changes: 0 additions & 11 deletions doorstop/cli/tests/files/A001.txt

This file was deleted.

11 changes: 0 additions & 11 deletions doorstop/cli/tests/files/A002.txt

This file was deleted.

11 changes: 0 additions & 11 deletions doorstop/cli/tests/files/B001.txt

This file was deleted.

12 changes: 0 additions & 12 deletions doorstop/cli/tests/files/B002.txt

This file was deleted.

12 changes: 0 additions & 12 deletions doorstop/cli/tests/files/C001.txt

This file was deleted.

10 changes: 0 additions & 10 deletions doorstop/cli/tests/files/C002.txt

This file was deleted.

10 changes: 0 additions & 10 deletions doorstop/cli/tests/files/C003.txt

This file was deleted.

14 changes: 0 additions & 14 deletions doorstop/cli/tests/files/exported-map.csv

This file was deleted.

14 changes: 0 additions & 14 deletions doorstop/cli/tests/files/exported.csv

This file was deleted.

12 changes: 0 additions & 12 deletions doorstop/cli/tests/files/exported.tsv

This file was deleted.

Binary file removed doorstop/cli/tests/files/exported.xlsx
Binary file not shown.
4 changes: 0 additions & 4 deletions doorstop/cli/tests/files/template.yml

This file was deleted.

3 changes: 2 additions & 1 deletion doorstop/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ def _trace(self, message, *args, **kws):

logging.addLevelName(logging.DEBUG - 1, "TRACE")
logging.Logger.trace = _trace # type: ignore

logging.basicConfig(filename="warning_log.txt", level=logging.WARNING)
logging.captureWarnings(True)
logger = logging.getLogger
log = logger(__name__)

Expand Down
14 changes: 12 additions & 2 deletions doorstop/core/files/templates/latex/doorstop.cls
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,16 @@
\LoadClass{article}
\RequirePackage{titletoc}
\RequirePackage{palatino}
\RequirePackage{silence}
\RequirePackage{graphicx}
\RequirePackage{fancyhdr}
\RequirePackage{multirow}
\RequirePackage{lastpage}
\RequirePackage{booktabs}
\RequirePackage{color}
\RequirePackage{listings}
\RequirePackage{tikz}
\RequirePackage{csvsimple}
\RequirePackage{xstring}
\RequirePackage[compact]{titlesec}
\RequirePackage{appendix}
Expand All @@ -84,6 +87,12 @@
\RequirePackage{zref-user}
\RequirePackage{zref-xr}
\RequirePackage{parskip}
\RequirePackage{pdflscape}
\RequirePackage{adjustbox}
\RequirePackage{array}
\RequirePackage{rotating}
\RequirePackage[OT1]{fontenc}
\RequirePackage{inputenc}

\edef\masterBranch{\detokenize{master}}
\edef\gitBranch{\gitBranch}
Expand Down Expand Up @@ -224,7 +233,7 @@
\pagestyle{fancy}
\fancyhf{}% Clear all settings
\fancyhead[RE,RO]{\raisebox{0.5cm}{\textsf{\begin{tabular}{p{5cm}p{2.5cm}p{3.5cm}}
\textbf{\large\docname} & {\footnotesize\textbf{Repository:}} &{\footnotesize\textbf{Workflow:}}\tabularnewline
\textbf{\large\doctitle} & {\footnotesize\textbf{Repository:}} &{\footnotesize\textbf{Workflow:}}\tabularnewline
\multirow{3}{5cm}[1ex]{\textit{\docdef}}&\textrm{\small\gitlabrepo} & \textrm{\small\gitBranch} \tabularnewline
&{\footnotesize\textbf{Date:}} & {\footnotesize\textbf{Commit:}}\tabularnewline
&\textrm{\small\today} & \textrm{\small\gitDescribe} \tabularnewline
Expand Down Expand Up @@ -293,7 +302,8 @@
\includegraphics[height=3in]{\logo}\\[1mm]
\vspace{0.5cm} \mbox{}\hrulefill \mbox{}\\[1cm]
{\Huge \textbf{\doctitle\\[0.5cm]}}
{\LARGE \textit{\docdef}}\\[0.5cm]
{\LARGE \textit{\subtitle}}\\[0.5cm]
{\large \textit{\docdef}}\\[0.2cm]
{\large \textbf{Date: }\today} \vfill
{\large \textbf{\gitlabrepo} \textit{- Full Requirements Generation Repository}}\\[0.2cm]
{\large \textbf{\githubrepo} \textit{- Levels 0-3 Requirements Repository}}\\[0.2cm]
Expand Down
29 changes: 26 additions & 3 deletions doorstop/core/files/templates/latex/doorstop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,18 @@ documentclass:
- twoside
# Define all 'usepackage' commands.
usepackage:
inputenc:
- utf8
booktabs:
adjustbox:
rotating:
amsmath:
ulem:
url:
titletoc:
listings:
inputenc:
array:
ragged2e:
pdflscape:
tabularx:
longtable:
datetime:
Expand All @@ -19,12 +24,14 @@ usepackage:
fancyvrb:
textalpha:
fontenc:
- OT1
unicode-math:
xr-hyper:
microtype:
gitinfo2:
parskip:
silence:
csvsimple:
hyperref:
# Options are defined as sub-lists.
- unicode
Expand All @@ -34,7 +41,8 @@ usepackage:
# Define custom lines before \begin{document}
before_begin_document:
# Define the title for the published document output
- \def\docname{Pearl Requirements}
- \def\doctitle{Pearl Requirements}
sfrinaldi marked this conversation as resolved.
Show resolved Hide resolved
- \def\subtitle{Level 0-4 Requirements}
# Define / update the repository link requirements are located for reference
- \def\repourl{https://gitlab.sc.ascendingnode.tech/pearl-systems/pearl_requirements}
- \def\githuburl{https://github.com/uasal/pearl_requirements}
Expand All @@ -46,6 +54,17 @@ before_begin_document:
- \def\contributors{Roger Angel, Laird Close, Victor Gasho, Lori Harrison, Jared Males, Buddy Martin, Manny Montoya, et al.}
# Define copyright claimer (document side watermark)
- \def\claimer{\color{black!40}Nothing in this document is proprietary or confidential.}
# For defining any warning filters to show warnings of interest only
- \WarningFilter*{latex}{Reference `LastPage' on page}
- \WarningFilter*{hyperref}{Difference (\the\@tempcnta) between bookmark levels is}
- \WarningFilter*{latex}{Hyper reference on page}
# Define h and v badness levels for what is shown as warnings
- \hbadness=99999
- \vbadness=99999
- \sloppy
# Define column type for rvm to use
- \newcolumntype{L}{>{\centering\arraybackslash}m{3cm}}

# For appending graphics only before the end of the document
# Format -> image name: -> image title
include_graphics:
Expand All @@ -57,5 +76,9 @@ include_graphics:
after_begin_document:
- \maketitle
- \maketoc
# For adding the traceability matrix at the end of the document
traceability_matrix: True
# For adding the RVM at the end of the document. Name / location of rvm.tex needs to be in the same output directory of published latex files from doorstop.
rvm: True


Loading