Skip to content

Commit

Permalink
[PATCH] Removed Tensorflow, cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Diapolo10 committed Jan 5, 2024
1 parent 546e052 commit 4582b59
Show file tree
Hide file tree
Showing 25 changed files with 312 additions and 3,241 deletions.
28 changes: 28 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,30 @@
# Source files
# ============
*.pxd text diff=python
*.py text diff=python
*.py3 text diff=python
*.pyw text diff=python
*.pyx text diff=python
*.pyz text diff=python
*.pyi text diff=python

# Binary files
# ============
*.db binary
*.p binary
*.pkl binary
*.pickle binary
*.pyc binary export-ignore
*.pyo binary export-ignore
*.pyd binary

# Jupyter notebook
*.ipynb text eol=lf

# Note: .db, .p, and .pkl files are associated
# with the python modules ``pickle``, ``dbm.*``,
# ``shelve``, ``marshal``, ``anydbm``, & ``bsddb``
# (among others).

# Auto detect text files and perform LF normalization
* text=auto
4 changes: 4 additions & 0 deletions .github/workflows/github_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
tags:
- 'v*'

permissions:
contents: write

jobs:
build:
name: Build Binaries for ${{ matrix.os }}-${{ matrix.python-version }}
Expand All @@ -16,6 +19,7 @@ jobs:
os: [ ubuntu-latest ]
python-version: [
'3.10',
'pypy-3.10',
]
steps:

Expand Down
31 changes: 11 additions & 20 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,29 +15,19 @@ jobs:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
tox-env: [
py38,
py39,
py310,
# pypy3,
python-version: [
'3.10',
'3.11',
'pypy-3.10',
]
include:
- tox-env: py38
python-version: '3.8'
- tox-env: py39
python-version: '3.9'
- tox-env: py310
python-version: '3.10'
# - tox-env: pypy3
# python-version: pypy3.9

exclude:
- os: windows-latest
tox-env: pypy3
python-version: pypy-3.10
- os: macos-latest
tox-env: pypy3
python-version: pypy-3.10
env:
TOXENV: ${{ matrix.tox-env }}
PYTHON_VERSION: ${{ matrix.python-version }}

steps:

Expand All @@ -55,23 +45,24 @@ jobs:
- name: Install library and dependencies
run: |
poetry run pip install --upgrade pip setuptools
poetry install
poetry install --with tests
- name: Run Tox (Pytest + Coverage)
run: |
poetry run tox
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PLATFORM: ${{ matrix.os }}

- name: Upload Results to CodeCov
if: success()
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v3
with:
env_vars: TOXENV
fail_ci_if_error: false
files: ./tests/reports/coverage-html/index.html,./tests/reports/coverage.xml
flags: unittests
name: ${{ matrix.os }}-${{ matrix.tox-env }}
name: ${{ matrix.os }} - Python ${{ matrix.python-version }}
token: ${{ secrets.CODECOV_TOKEN }}


Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -142,5 +142,8 @@ tests/reports
# Makefile installation stamp
.install.stamp

rl_car/example
# Ruff
.ruff_cache

src/rl_car/example
cache.json
142 changes: 24 additions & 118 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,128 +1,34 @@
# Contributor Covenant Code of Conduct
# Contributing to the `rl_car` project

## Our Pledge
## Filing a bug report

We as members, contributors, and leaders pledge to make participation in our
community a harassment-free experience for everyone, regardless of age, body
size, visible or invisible disability, ethnicity, sex characteristics, gender
identity and expression, level of experience, education, socio-economic status,
nationality, personal appearance, race, religion, or sexual identity
and orientation.
To file a bug report, [open the Issues tab][Issues] and add a new issue,
labeling it as a bug report. If you wish to try and fix it yourself, add
yourself as a contributor to that issue. You are allowed to group similar
bugs into one issue report, as long as you don't exceed the limit of three
different bugs. Otherwise, make another issue.

We pledge to act and interact in ways that contribute to an open, welcoming,
diverse, inclusive, and healthy community.
## Suggesting a new feature

## Our Standards
To suggest a new feature:

Examples of behavior that contributes to a positive environment for our
community include:
- For small suggestions, [you can go directly to the Projects tab][Projects]
and write a suggestion to the Suggestions/Ideas column
- For medium-to-large suggestions, write an issue, mark it as part of the
current project and label it as a suggestion

- Demonstrating empathy and kindness toward other people
- Being respectful of differing opinions, viewpoints, and experiences
- Giving and gracefully accepting constructive feedback
- Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
- Focusing on what is best not just for us as individuals, but for the
overall community
You may NOT suggest features through email to the core developers.

Examples of unacceptable behavior include:
## Setting up your development environment

- The use of sexualized language or imagery, and sexual attention or
advances of any kind
- Trolling, insulting or derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or email
address, without their explicit permission
- Other conduct which could reasonably be considered inappropriate in a
professional setting
Since `rl_car` has very little to do beyond programming and testing,
the following should be enough for 95% of all contributors:

## Enforcement Responsibilities
1. A working Git or GitHub Desktop installation
2. A text editor / Python IDE
3. An installation of Python that supports Python version 3.10 or higher
4. The following, non-standard PyPI modules (available through `pip`):
- `poetry`

Community leaders are responsible for clarifying and enforcing our standards of
acceptable behavior and will take appropriate and fair corrective action in
response to any behavior that they deem inappropriate, threatening, offensive,
or harmful.

Community leaders have the right and responsibility to remove, edit, or reject
comments, commits, code, wiki edits, issues, and other contributions that are
not aligned to this Code of Conduct, and will communicate reasons for moderation
decisions when appropriate.

## Scope

This Code of Conduct applies within all community spaces, and also applies when
an individual is officially representing the community in public spaces.
Examples of representing our community include using an official e-mail address,
posting via an official social media account, or acting as an appointed
representative at an online or offline event.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at
[email protected].
All complaints will be reviewed and investigated promptly and fairly.

All community leaders are obligated to respect the privacy and security of the
reporter of any incident.

## Enforcement Guidelines

Community leaders will follow these Community Impact Guidelines in determining
the consequences for any action they deem in violation of this Code of Conduct:

### 1. Correction

**Community Impact**: Use of inappropriate language or other behavior deemed
unprofessional or unwelcome in the community.

**Consequence**: A private, written warning from community leaders, providing
clarity around the nature of the violation and an explanation of why the
behavior was inappropriate. A public apology may be requested.

### 2. Warning

**Community Impact**: A violation through a single incident or series
of actions.

**Consequence**: A warning with consequences for continued behavior. No
interaction with the people involved, including unsolicited interaction with
those enforcing the Code of Conduct, for a specified period of time. This
includes avoiding interactions in community spaces as well as external channels
like social media. Violating these terms may lead to a temporary or
permanent ban.

### 3. Temporary Ban

**Community Impact**: A serious violation of community standards, including
sustained inappropriate behavior.

**Consequence**: A temporary ban from any sort of interaction or public
communication with the community for a specified period of time. No public or
private interaction with the people involved, including unsolicited interaction
with those enforcing the Code of Conduct, is allowed during this period.
Violating these terms may lead to a permanent ban.

### 4. Permanent Ban

**Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals.

**Consequence**: A permanent ban from any sort of public interaction within
the community.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage],
version 2.0, available [here][Covenant].

Community Impact Guidelines were inspired by [Mozilla's code of conduct
enforcement ladder](https://github.com/mozilla/diversity).

For answers to common questions about this code of conduct, see the FAQ [here][FAQ]. Translations are available [here][Translations].

[homepage]: https://www.contributor-covenant.org
[Covenant]: https://www.contributor-covenant.org/version/2/0/code_of_conduct.html
[FAQ]: https://www.contributor-covenant.org/faq
[Translations]: https://www.contributor-covenant.org/translations
[Issues]: https://github.com/Diapolo10/rl_car/issues
[Projects]: https://github.com/Diapolo10/rl_car/projects
6 changes: 2 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,17 @@ install: $(INSTALL_STAMP)
$(INSTALL_STAMP): pyproject.toml
@if [ -z $(POETRY) ]; then echo "Poetry could not be found. See https://python-poetry.org/docs/"; exit 2; fi
$(POETRY) run pip install --upgrade pip setuptools
$(POETRY) install
$(POETRY) install --with dev,tests,linters
touch $(INSTALL_STAMP)

.PHONY: lint
lint: $(INSTALL_STAMP)
# Configured in pyproject.toml
# Skips mypy if not installed
#
# $(POETRY) run isort --profile=black --lines-after-imports=2 --check-only $(TESTS) $(PYMODULE)
# $(POETRY) run black --check $(TESTS) $(PYMODULE) --diff
@if [ -z $(MYPY) ]; then echo "Mypy not found, skipping..."; else echo "Running Mypy..."; $(POETRY) run mypy $(PYMODULE) $(TESTS); fi
@echo "Running Flake8..."; $(POETRY) run pflake8 # This is not a typo
@echo "Running Pylint..."; $(POETRY) run pylint $(PYMODULE)
@echo "Running Ruff..."; $(POETRY) run ruff . --fix

.PHONY: test
test: $(INSTALL_STAMP)
Expand Down
Loading

0 comments on commit 4582b59

Please sign in to comment.