Skip to content

Commit

Permalink
Trac #29068: little cleanup of imports and tweak again .lgtm.yml
Browse files Browse the repository at this point in the history
* removing unused imports as suggested by lgtm and pyflakes

* mark some specific files as catalog-like in lgtm.yml

URL: https://trac.sagemath.org/29068
Reported by: chapoton
Ticket author(s): Frédéric Chapoton
Reviewer(s): Travis Scrimshaw
  • Loading branch information
Release Manager committed Jan 24, 2020
2 parents 4da45e2 + e2c8680 commit 96695b3
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 18 deletions.
5 changes: 5 additions & 0 deletions .lgtm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ path_classifiers:
imports_only:
- "**/all.py"
- "**/*catalog*.py"
- "**/species/library.py"
- "**/matroids/advanced.py"
- "**/categories/basic.py"
- "**/interacts/geometry.py"
- "**/combinat/ribbon.py"
extraction:
python:
python_setup:
Expand Down
8 changes: 3 additions & 5 deletions build/sage_bootstrap/download/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,16 @@
"""


#*****************************************************************************
# ****************************************************************************
# Copyright (C) 2016 Volker Braun <vbraun.name@gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
# http://www.gnu.org/licenses/
#*****************************************************************************
# https://www.gnu.org/licenses/
# ****************************************************************************

import os
import sys
import logging
log = logging.getLogger()

Expand Down
8 changes: 3 additions & 5 deletions build/sage_bootstrap/download/cmdline.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,16 @@
This module handles the main "sage-download-file" commandline utility.
"""


#*****************************************************************************
# ****************************************************************************
# Copyright (C) 2016 Volker Braun <vbraun.name@gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
# http://www.gnu.org/licenses/
#*****************************************************************************
# https://www.gnu.org/licenses/
# ****************************************************************************

import os
import sys
import logging
log = logging.getLogger()
Expand Down
1 change: 0 additions & 1 deletion src/fpickle_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
a library file. It solves the issue from :trac:`11874`.
"""
import types
import copy
from six.moves import copyreg
from six import get_method_function, get_method_self

Expand Down
5 changes: 1 addition & 4 deletions src/sage_setup/docbuild/ext/inventory_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,10 @@
inventory files and pickle files. The documentation files are not written.
"""
from sphinx.builders.html import StandaloneHTMLBuilder
from sphinx.util.console import bold
from os import path

from six import iteritems, text_type

import shutil


class InventoryBuilder(StandaloneHTMLBuilder):
"""
A customized HTML builder which only generates intersphinx "object.inv"
Expand Down
3 changes: 0 additions & 3 deletions src/sage_setup/docbuild/ext/multidocs.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@
from six import text_type

import os
import sys
import shutil
import re
import tempfile
import sphinx
from sphinx.util.console import bold
from sage.env import SAGE_DOC
Expand Down

0 comments on commit 96695b3

Please sign in to comment.