mirror of
https://github.com/google/fonts.git
synced 2024-12-17 21:51:52 +03:00
- Most of the code & data was migrated from the [`fontbakery`](https://github.com/googlefonts/fontbakery/) and [`google/fonts`](https://github.com/google/fonts/) git repositories so that the GF Axis Registry data can be easily available to all our tools. The most immediate user of this module is `Font Bakery` itself, as well as `GFTools`. - Axis Registry definitions are still being gradualy updated on the `google/fonts` repo, on its **axisregistry/** directory (https://github.com/google/fonts/tree/main/axisregistry) and this `axisregistry` python module will try to be kept in sync. - There's an ongoing plan to make this module the main place to update these definitions, avoiding data duplication and guaranteeing uniformity across tools.
54 lines
1.2 KiB
INI
54 lines
1.2 KiB
INI
[tox]
|
|
envlist = py37, py38, py39, coverage, flake8, pylint
|
|
|
|
[gh-actions]
|
|
python =
|
|
3.7: py37, coverage, flake8, pylint
|
|
3.8: py38, coverage, flake8, pylint
|
|
3.9: py39, coverage, flake8, pylint
|
|
|
|
[testenv]
|
|
deps =
|
|
pytest
|
|
coverage
|
|
-rrequirements.txt
|
|
commands = coverage run -m pytest {posargs}
|
|
|
|
[testenv:coverage]
|
|
deps = coverage
|
|
skip_install = true
|
|
commands =
|
|
coverage report
|
|
coverage html
|
|
|
|
[testenv:flake8]
|
|
deps =
|
|
flake8
|
|
commands = flake8 --count --show-source --statistics
|
|
|
|
[testenv:pylint]
|
|
deps =
|
|
pylint
|
|
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} --ignore=axes_pb2.py Lib/axisregistry
|
|
|
|
[flake8]
|
|
select = E,F,W
|
|
|
|
exclude =
|
|
# Exclude the entire build directory:
|
|
build
|
|
# Exclude these auto-generated files that should not be hand-edited:
|
|
Lib/axisregistry/*_pb2.py,
|
|
# No need to traverse hidden directories such as .git, .tox
|
|
.*,
|
|
# Exclude virtual environment directory:
|
|
venv*,
|
|
# There's no value in checking cache directories
|
|
__pycache__,
|
|
|
|
max-line-length=100
|
|
ignore =
|
|
E126, # continuation line over-indented for hanging indent
|