-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #81 from f1tenth/dev_ci_testing
CI + Testing + Bugfixes for path + misc. fixes + linting
- Loading branch information
Showing
39 changed files
with
1,930 additions
and
1,892 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Linting Checks | ||
|
||
on: | ||
push: | ||
branches: [ main , 'v*', 'dev_*'] | ||
pull_request: | ||
branches: [ main , 'v*' ] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.9"] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install flake8 pytest | ||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | ||
- name: Install | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -e . | ||
- name: Lint with flake8 | ||
run: | | ||
# stop the build if there are Python syntax errors or undefined names | ||
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide | ||
flake8 . --statistics --exit-zero |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
[[source]] | ||
url = "https://pypi.org/simple" | ||
verify_ssl = true | ||
name = "pypi" | ||
|
||
[packages] | ||
gymnasium = "*" | ||
numpy = "<1.25" | ||
pillow = ">=9.0.1" | ||
scipy = ">=1.7.3" | ||
pyglet = "<1.5" | ||
pyyaml = ">=5.3.1" | ||
yamldataclassconfig = "*" | ||
requests = "*" | ||
pyopengl = "*" | ||
numba = "*" | ||
shapely = "*" | ||
opencv-python = "*" | ||
f110-gym = {file = "."} | ||
|
||
[dev-packages] | ||
flake8 = "*" | ||
black = "*" | ||
ipykernel = "*" | ||
pytest = "*" | ||
isort = "*" | ||
autoflake = "*" | ||
matplotlib = "*" | ||
|
||
[requires] | ||
python_version = "3.10" | ||
python_full_version = "3.10.11" |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,88 +1,82 @@ | ||
# flake8: noqa | ||
import os | ||
import sys | ||
|
||
import sphinx_rtd_theme | ||
|
||
source_suffix = '.rst' | ||
source_encoding = 'utf-8-sig' | ||
source_suffix = ".rst" | ||
source_encoding = "utf-8-sig" | ||
|
||
# -- Language ---------------------------------------------------------------- | ||
env_tags = os.getenv('SPHINX_TAGS') | ||
if env_tags != None: | ||
for tag in env_tags.split(','): | ||
print('Adding Sphinx tag: %s' % tag.strip()) | ||
env_tags = os.getenv("SPHINX_TAGS") | ||
if env_tags is not None: | ||
for tag in env_tags.split(","): | ||
print("Adding Sphinx tag: %s" % tag.strip()) | ||
tags.add(tag.strip()) | ||
|
||
language = os.getenv('READTHEDOCS_LANGUAGE', 'en') | ||
is_i18n = tags.has('i18n') | ||
language = os.getenv("READTHEDOCS_LANGUAGE", "en") | ||
is_i18n = tags.has("i18n") | ||
|
||
# -- Theme ------------------------------------------------------------------- | ||
on_rtd = os.environ.get('READTHEDOCS', None) == 'True' | ||
html_theme = 'sphinx_rtd_theme' | ||
on_rtd = os.environ.get("READTHEDOCS", None) == "True" | ||
html_theme = "sphinx_rtd_theme" | ||
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] | ||
if on_rtd: | ||
using_rtd_theme = True | ||
html_theme_options = { | ||
# 'typekit_id': 'hiw1hhg', | ||
# 'analytics_id': '', | ||
# 'sticky_navigation': True # Set to False to disable the sticky nav while scrolling. | ||
'logo_only': False, # if we have a html_logo below, this shows /only/ the logo with no title text | ||
'collapse_navigation': False, # Collapse navigation (False makes it tree-like) | ||
'prev_next_buttons_location': 'bottom', | ||
"logo_only": False, # if we have a html_logo below, this shows /only/ the logo with no title text | ||
"collapse_navigation": False, # Collapse navigation (False makes it tree-like) | ||
"prev_next_buttons_location": "bottom", | ||
# 'display_version': True, # Display the docs version | ||
# 'navigation_depth': 4, # Depth of the headers shown in the navigation bar | ||
} | ||
html_context = { | ||
"display_github": not is_i18n, # Integrate GitHub | ||
"github_user": "f1tenth", # Username | ||
"github_repo": "f1tenth_gym", # Repo name | ||
"github_version": "exp_py", # Version | ||
"conf_py_path": "/docs/", # Path in the checkout to the docs root | ||
"display_github": not is_i18n, # Integrate GitHub | ||
"github_user": "f1tenth", # Username | ||
"github_repo": "f1tenth_gym", # Repo name | ||
"github_version": "exp_py", # Version | ||
"conf_py_path": "/docs/", # Path in the checkout to the docs root | ||
} | ||
|
||
html_favicon = 'assets/f1_stickers_02.png' | ||
html_favicon = "assets/f1_stickers_02.png" | ||
|
||
html_css_files = [ | ||
'css/custom.css' | ||
] | ||
html_css_files = ["css/custom.css"] | ||
|
||
html_js_files = [ | ||
'css/custom.js' | ||
] | ||
html_logo = 'assets/f1tenth_gym.svg' | ||
html_js_files = ["css/custom.js"] | ||
html_logo = "assets/f1tenth_gym.svg" | ||
|
||
# -- Project information ----------------------------------------------------- | ||
|
||
project = 'f1tenth_gym' | ||
project = "f1tenth_gym" | ||
copyright = "2021, Hongrui Zheng, Matthew O'Kelly, Aman Sinha" | ||
author = 'Hongrui Zheng' | ||
author = "Hongrui Zheng" | ||
|
||
# The full version, including alpha/beta/rc tags | ||
release = 'latest' | ||
version = 'latest' | ||
release = "latest" | ||
version = "latest" | ||
|
||
|
||
# -- General configuration --------------------------------------------------- | ||
|
||
# Add any Sphinx extension module names here, as strings. They can be | ||
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom | ||
# ones. | ||
extensions = [ "breathe", "sphinx_rtd_theme", "sphinx.ext.autosectionlabel" | ||
] | ||
extensions = ["breathe", "sphinx_rtd_theme", "sphinx.ext.autosectionlabel"] | ||
|
||
# Breathe configuration | ||
breathe_projects = { | ||
"f1tenth_gym":"./xml" | ||
} | ||
breathe_projects = {"f1tenth_gym": "./xml"} | ||
|
||
# Add any paths that contain templates here, relative to this directory. | ||
templates_path = ['_templates'] | ||
templates_path = ["_templates"] | ||
|
||
# List of patterns, relative to source directory, that match files and | ||
# directories to ignore when looking for source files. | ||
# 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"] | ||
|
||
# Add any paths that contain custom static files (such as style sheets) here, | ||
# relative to this directory. They are copied after the builtin static files, | ||
# so a file named "default.css" will overwrite the builtin "default.css". | ||
html_static_path = ['_static'] | ||
html_static_path = ["_static"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1 @@ | ||
from f110_gym.envs.integrator import * | ||
from f110_gym.envs.dynamic_models import * | ||
from f110_gym.envs.f110_env import F110Env | ||
from f110_gym.envs.laser_models import * | ||
from f110_gym.envs.base_classes import * | ||
from f110_gym.envs.collision_models import * | ||
from .f110_env import F110Env # noqa: F401 This is needed to make easy imports work |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.