1. 28 Apr, 2021 5 commits
  2. 27 Apr, 2021 8 commits
  3. 07 Oct, 2020 2 commits
  4. 30 Sep, 2020 2 commits
  5. 14 Sep, 2020 3 commits
  6. 11 Sep, 2020 5 commits
  7. 10 Sep, 2020 2 commits
  8. 09 Sep, 2020 3 commits
    • Florian Schmaus's avatar
      Merge branch 'prepare-1.6' into 'master' · d4980046
      Florian Schmaus authored
      Static code analysis
      
      See merge request !8
      d4980046
    • Florian Schmaus's avatar
      Add pylint and pyflakes and fix issues found by those tools · 8ba3fb9a
      Florian Schmaus authored
      This also creates the following symlinks in rubber/latex_modules/
      
      graphicx.py → graphics.py
      minitoc-hyper.py → minitoc.py
      
      as otherwise the code analysis will complain about empty modules.
      8ba3fb9a
    • Florian Schmaus's avatar
      [gitlab-ci] Install pyflakes3 from debian testing · 940162ba
      Florian Schmaus authored
      Otherwise we run into https://github.com/PyCQA/pyflakes/issues/367
      
      pyflakes setup.py rubber bin
      156Traceback (most recent call last):
      157  File "/usr/bin/pyflakes", line 11, in <module>
      158    load_entry_point('pyflakes==2.0.0', 'console_scripts', 'pyflakes')()
      159  File "/usr/lib/python3/dist-packages/pyflakes/api.py", line 201, in main
      160    warnings = checkRecursive(args, reporter)
      161  File "/usr/lib/python3/dist-packages/pyflakes/api.py", line 158, in checkRecursive
      162    warnings += checkPath(sourcePath, reporter)
      163  File "/usr/lib/python3/dist-packages/pyflakes/api.py", line 101, in checkPath
      164    return check(codestr, filename, reporter)
      165  File "/usr/lib/python3/dist-packages/pyflakes/api.py", line 73, in check
      166    w = checker.Checker(tree, filename)
      167  File "/usr/lib/python3/dist-packages/pyflakes/checker.py", line 497, in __init__
      168    self.handleChildren(tree)
      169  File "/usr/lib/python3/dist-packages/pyflakes/checker.py", line 824, in handleChildren
      170    self.handleNode(node, tree)
      171  File "/usr/lib/python3/dist-packages/pyflakes/checker.py", line 871, in handleNode
      172    handler(node)
      173  File "/usr/lib/python3/dist-packages/pyflakes/checker.py", line 824, in handleChildren
      174    self.handleNode(node, tree)
      175  File "/usr/lib/python3/dist-packages/pyflakes/checker.py", line 871, in handleNode
      176    handler(node)
      177  File "/usr/lib/python3/dist-packages/pyflakes/checker.py", line 1306, in TUPLE
      178    self.handleChildren(node)
      179  File "/usr/lib/python3/dist-packages/pyflakes/checker.py", line 824, in handleChildren
      180    self.handleNode(node, tree)
      181  File "/usr/lib/python3/dist-packages/pyflakes/checker.py", line 871, in handleNode
      182    handler(node)
      183  File "/usr/lib/python3/dist-packages/pyflakes/checker.py", line 824, in handleChildren
      184    self.handleNode(node, tree)
      185  File "/usr/lib/python3/dist-packages/pyflakes/checker.py", line 870, in handleNode
      186    handler = self.getNodeHandler(node.__class__)
      187  File "/usr/lib/python3/dist-packages/pyflakes/checker.py", line 700, in getNodeHandler
      188    self._nodeHandlers[node_class] = handler = getattr(self, nodeType)
      189AttributeError: 'Checker' object has no attribute 'CONSTANT'
      190make: *** [Makefile:16: pyflakes] Error 1
      940162ba
  9. 08 Sep, 2020 1 commit
  10. 28 Aug, 2020 5 commits
  11. 24 Aug, 2020 4 commits
    • Florian Schmaus's avatar
      Merge branch 'flow' into 'master' · fe3a563b
      Florian Schmaus authored
      Various work
      
      See merge request !6
      fe3a563b
    • Florian Schmaus's avatar
      [setup] Add @maintainer@ and @maintainer_email@ to the list of substitutions · 003a7493
      Florian Schmaus authored
      We changed the generated man pages to use @maintainer@ instead of
      @author@ with 82f74549 ("Add myself as maintainer"), but I forgot to
      add those strings to the list of substitutions in setup.py.
      
      Fixes: 82f74549 ("Add myself as maintainer")
      003a7493
    • Florian Schmaus's avatar
      [cmdline] Remove unnecessary and erroneously check for --jobname · 491a55c7
      Florian Schmaus authored
      This check, which was introduced with 90090667 ("Parse arguments with
      argparse instead of getopt."), is erroneously because it is also
      performed if rubber-pipe is invoked. But with rubber-pipe we can have
      --jobname *without* any source files specified.
      
      This leads to the following traceback with e.g. "rubber-pipe --jobname
      test":
      
      Traceback (most recent call last):
        File "/usr/lib/python-exec/python3.7/rubber-pipe", line 18, in <module>
          rubber.cmdline.main (command_name = rubber.cmdline.RUBBER_PIPE)
        File "/usr/lib/python3.7/site-packages/rubber/cmdline.py", line 282, in main
          options = parse_opts (command_name)
        File "/usr/lib/python3.7/site-packages/rubber/cmdline.py", line 225, in parse_opts
          if args.jobname is not None and 1 < len (args.source):
      AttributeError: 'Namespace' object has no attribute 'source'
      
      The check is furthermore unnecessary because we already set nargs='+'
      in the argument definition of 'source'. Hence argparse will already
      bail out if no source was provided.
      
      Fixes: 90090667 ("Parse arguments with argparse instead of getopt.")
      491a55c7
    • Florian Schmaus's avatar
      Merge branch 'flow' into 'master' · f3c96a05
      Florian Schmaus authored
      Various Fixes
      
      See merge request !5
      f3c96a05