Initial changes to implement formatters
Signed-off-by: Ryan Johnson <ryancj14@gmail.com>
This commit is contained in:
parent
ffebb33ee0
commit
a166626b25
|
@ -1,2 +1,4 @@
|
||||||
build
|
build
|
||||||
env
|
env
|
||||||
|
__pycache__
|
||||||
|
symbiflow
|
||||||
|
|
|
@ -0,0 +1,30 @@
|
||||||
|
# Copyright (C) 2021 The SymbiFlow Authors.
|
||||||
|
#
|
||||||
|
# Use of this source code is governed by a ISC-style
|
||||||
|
# license that can be found in the LICENSE file or at
|
||||||
|
# https://opensource.org/licenses/ISC
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: ISC
|
||||||
|
|
||||||
|
SHELL = bash
|
||||||
|
|
||||||
|
PYTHON_SRCS=$(shell find . -name "*.py" -not -path "./env/*" -not -path "./symbiflow/*")
|
||||||
|
JSON_SRCS=$(shell find . -name "*.json" -not -path "./env/*" -not -path "./symbiflow/*")
|
||||||
|
VERILOG_SRCS=$(shell find . -name "*.v" -not -path "./env/*" -not -path "./symbiflow/*")
|
||||||
|
|
||||||
|
env:
|
||||||
|
pip install -r requirements.txt
|
||||||
|
|
||||||
|
format:
|
||||||
|
yapf -i ${PYTHON_SRCS}
|
||||||
|
for i in ${JSON_SRCS}; do \
|
||||||
|
echo "$$(mjson $$i)" > $$i; \
|
||||||
|
done
|
||||||
|
for i in ${VERILOG_SRCS}; do \
|
||||||
|
echo "$$(verible-verilog-format $$i)" > $$i; \
|
||||||
|
done
|
||||||
|
|
||||||
|
clean::
|
||||||
|
rm -rf env/ symbiflow/
|
||||||
|
|
||||||
|
.PHONY: env format clean
|
|
@ -31,6 +31,7 @@
|
||||||
#
|
#
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
sys.path.insert(0, os.path.abspath('.'))
|
sys.path.insert(0, os.path.abspath('.'))
|
||||||
|
|
||||||
# -- Project information -----------------------------------------------------
|
# -- Project information -----------------------------------------------------
|
||||||
|
@ -57,7 +58,6 @@ templates_path = ['_templates']
|
||||||
# This pattern also affects html_static_path and html_extra_path.
|
# This pattern also affects html_static_path and html_extra_path.
|
||||||
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
|
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
|
||||||
|
|
||||||
|
|
||||||
# -- Options for HTML output -------------------------------------------------
|
# -- Options for HTML output -------------------------------------------------
|
||||||
|
|
||||||
# The theme to use for HTML and HTML Help pages. See the documentation for
|
# The theme to use for HTML and HTML Help pages. See the documentation for
|
||||||
|
@ -66,7 +66,8 @@ exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
|
||||||
|
|
||||||
html_show_sourcelink = True
|
html_show_sourcelink = True
|
||||||
html_sidebars = {
|
html_sidebars = {
|
||||||
"**": ["logo-text.html", "globaltoc.html", "localtoc.html", "searchbox.html"]
|
"**":
|
||||||
|
["logo-text.html", "globaltoc.html", "localtoc.html", "searchbox.html"]
|
||||||
}
|
}
|
||||||
|
|
||||||
html_theme = 'sphinx_material'
|
html_theme = 'sphinx_material'
|
||||||
|
@ -85,7 +86,6 @@ html_theme_options = {
|
||||||
# so a file named "default.css" will overwrite the builtin "default.css".
|
# so a file named "default.css" will overwrite the builtin "default.css".
|
||||||
# html_static_path = ['_static']
|
# html_static_path = ['_static']
|
||||||
|
|
||||||
|
|
||||||
# -- Collect READMEs from examples --------------------------------------------
|
# -- Collect READMEs from examples --------------------------------------------
|
||||||
|
|
||||||
from collect_readmes import full_name_lut, families, fill_context
|
from collect_readmes import full_name_lut, families, fill_context
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
name: symbiflow-examples
|
name: symbiflow-examples
|
||||||
channels:
|
channels:
|
||||||
- defaults
|
- defaults
|
||||||
|
- litex-hub
|
||||||
dependencies:
|
dependencies:
|
||||||
- python
|
- python
|
||||||
- pip
|
- pip
|
||||||
|
- litex-hub::verible
|
||||||
- pip:
|
- pip:
|
||||||
- -r file:requirements.txt
|
- -r file:requirements.txt
|
||||||
|
|
|
@ -1 +1,3 @@
|
||||||
rst_include
|
rst_include
|
||||||
|
yapf
|
||||||
|
mjson
|
||||||
|
|
Loading…
Reference in New Issue