1
0
mirror of https://github.com/google/fonts.git synced 2024-12-17 21:51:52 +03:00

fixing the GitHub Actions build

addressing linter warnings/errors
This commit is contained in:
Felipe Corrêa da Silva Sanches 2022-02-16 05:03:53 -03:00
parent 907c85747b
commit 52bcd6f7d9
2 changed files with 11 additions and 8 deletions

View File

@ -14,17 +14,21 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
"""Helper API for interaction with languages/regions/scripts data on the Google Fonts collection.
"""
Helper API for interaction with languages/regions/scripts
data on the Google Fonts collection.
"""
import glob
import os
from fontTools.ttLib import TTFont
from google.protobuf import text_format
from hyperglot import parse as hyperglot_parse
from languages import fonts_public_pb2
from pkg_resources import resource_filename
import os
import glob
from languages import fonts_public_pb2
DATA_DIR = resource_filename("languages", "data")

View File

@ -19,7 +19,6 @@ passenv = LD_LIBRARY_PATH LD_PRELOAD
deps = coverage
skip_install = true
commands =
coverage combine
coverage report
coverage html
@ -40,8 +39,8 @@ deps =
sphinx
sphinx_rtd_theme
recommonmark
wont_fix =
maybe_someday = fixme,missing-docstring
wont_fix = invalid-name,protected-access,too-many-lines
maybe_someday = fixme,missing-docstring,line-too-long
commands = pylint --disable={[testenv:pylint]wont_fix},{[testenv:pylint]maybe_someday} Lib/languages
[flake8]
@ -65,7 +64,7 @@ exclude =
# The ignore-list below comes from FontBakery linting setup.
# The `languages` module has a much simples codebase, so we may be in much better shape in here.
# So, perhaps, we could safely enable many of these lint-checks.
max-line-length=88
max-line-length=100
ignore =
# ITEMS BELOW ARE MEDIUM PRIORITY TO FIX AND REMOVE FROM IGNORE LIST
E402, # module level import not at top of file