-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Drop Python 3.7, tinker with devopsy stuff
Too much stuff to list here.. Partial changes: - Relax a bunch of overly-zealous linter args - Ignore missing AssertionError in docstrings - Lock down bandit (see: tylerwince/flake8-bandit#21) - Disable strict optional - Ignore missing stubs from third-party libraries pandas,tqdm,sqlalchemy - Update lockfile - Remove unused module - Basic logging configuration (null handler) - Use Poetry 1.2.0.a2 for builds Notebooks: - Add formatting of notebooks - Add run-jupyter.sh convenience script (nosec) - Add PerfTestTemplate.ipynb
- Loading branch information
1 parent
f1d3197
commit 0311c94
Showing
32 changed files
with
2,323 additions
and
205 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,29 @@ | ||
[paths] | ||
source = src | ||
|
||
[report] | ||
omit = | ||
tests/* | ||
src/rics/translation/fetching/* | ||
src/rics/translation/dio/* | ||
src/rics/_internal* | ||
*/exceptions.py | ||
|
||
fail_under = 99 | ||
|
||
exclude_lines = | ||
pragma: no cover | ||
def __repr__ | ||
if self.debug | ||
if settings.DEBUG: | ||
raise AssertionError | ||
raise NotImplementedError | ||
if 0: | ||
if __name__ == __main__: | ||
LOGGER.isEnabledFor | ||
if not isinstance\(other | ||
|
||
show_missing = true | ||
|
||
[html] | ||
directory = htmlcov |
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,2 +1,3 @@ | ||
[darglint] | ||
strictness = short | ||
ignore_raise=AssertionError |
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 |
---|---|---|
|
@@ -12,10 +12,10 @@ jobs: | |
steps: | ||
- uses: actions/[email protected] | ||
|
||
- name: Set up Python 3.7 | ||
- name: Set up Python 3.8 | ||
uses: actions/[email protected] | ||
with: | ||
python-version: 3.7 | ||
python-version: 3.8 | ||
|
||
- name: Install pre-commit | ||
run: pip install pre-commit | ||
|
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 |
---|---|---|
|
@@ -11,16 +11,16 @@ jobs: | |
steps: | ||
- uses: actions/[email protected] | ||
|
||
- name: Set up Python 3.7 | ||
- name: Set up Python 3.8 | ||
uses: actions/[email protected] | ||
with: | ||
python-version: 3.7 | ||
python-version: 3.8 | ||
|
||
- name: Install system deps | ||
shell: bash | ||
run: | | ||
pip install poetry | ||
poetry config virtualenvs.in-project true | ||
curl -sSL https://install.python-poetry.org/ | python - | ||
poetry upgrade self --prerelease --version="1.2.0a2" | ||
- name: Build package | ||
run: | | ||
|
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 |
---|---|---|
|
@@ -3,6 +3,7 @@ name: tests | |
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
|
||
|
@@ -13,10 +14,10 @@ jobs: | |
steps: | ||
- uses: actions/[email protected] | ||
|
||
- name: Set up Python 3.7 | ||
- name: Set up Python 3.8 | ||
uses: actions/[email protected] | ||
with: | ||
python-version: 3.7 | ||
python-version: 3.8 | ||
|
||
- name: Linting | ||
run: | | ||
|
@@ -30,7 +31,7 @@ jobs: | |
strategy: | ||
matrix: | ||
os: [ Ubuntu, MacOS, Windows ] | ||
python-version: [ '3.7', '3.8', '3.9', '3.10' ] | ||
python-version: [ '3.8', '3.9', '3.10' ] | ||
fail-fast: true | ||
steps: | ||
- uses: actions/[email protected] | ||
|
@@ -44,8 +45,8 @@ jobs: | |
shell: bash | ||
run: | | ||
pip install nox | ||
pip install poetry | ||
poetry config virtualenvs.in-project true | ||
curl -sSL https://install.python-poetry.org/ | python - | ||
poetry upgrade self --prerelease --version="1.2.0a2" | ||
- name: Run mypy with nox | ||
shell: bash | ||
|
@@ -72,17 +73,17 @@ jobs: | |
steps: | ||
- uses: actions/[email protected] | ||
|
||
- name: Set up Python 3.7 | ||
- name: Set up Python 3.8 | ||
uses: actions/[email protected] | ||
with: | ||
python-version: 3.7 | ||
python-version: 3.8 | ||
|
||
- name: Install system deps | ||
shell: bash | ||
run: | | ||
pip install nox | ||
pip install poetry | ||
poetry config virtualenvs.in-project true | ||
curl -sSL https://install.python-poetry.org/ | python - | ||
poetry upgrade self --prerelease --version="1.2.0a2" | ||
- name: Download coverage data | ||
uses: actions/[email protected] | ||
|
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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,7 @@ | ||
# Placeholder | ||
|
||
Ensure that venv is installed locally. If Poetry doesn't respect this, run: | ||
|
||
```bash | ||
poetry config virtualenvs.in-project true | ||
``` |
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,4 @@ | ||
|
||
# Rics | ||
|
||
# Readme | ||
|
||
<div align="center"> | ||
|
||
|
@@ -20,23 +18,63 @@ | |
|
||
My personal little ML engineering library. | ||
|
||
|
||
* GitHub repo: <https://github.com/rsundqvist/rics.git> | ||
* Documentation: <https://rics.readthedocs.io> | ||
* Free software: MIT | ||
|
||
|
||
## Features | ||
|
||
* TODO | ||
|
||
## Quickstart | ||
|
||
TODO | ||
## Quickstart for development | ||
|
||
### Notice | ||
This project uses groups for extras dependencies, which is currently a **PRERELEASE** feature (slated for `1.2`). Assuming | ||
poetry was installed the recommended way (see below), this can be done using: | ||
```bash | ||
curl -sSL https://install.python-poetry.org/ | python - | ||
poetry upgrade self --prerelease --version="1.2.0a2" | ||
``` | ||
|
||
### Setting up for local development | ||
Assumes a "modern" version of Ubuntu (guide written under `Ubuntu 20.04.2 LTS`) with basic dev dependencies installed. | ||
To get started, run the following commands: | ||
|
||
Installing the latest version of Poetry | ||
```bash | ||
curl -sSL https://install.python-poetry.org/ | python - | ||
``` | ||
This is the way recommended by the Poetry project. | ||
|
||
```bash | ||
git clone [email protected]:rsundqvist/rics.git | ||
cd rics | ||
poetry install | ||
inv install-hooks | ||
``` | ||
This project uses groups for extras dependencies. If installation fails, make sure that output from | ||
`poetry --version` is `1.2.0` or greater. | ||
|
||
### Registering the project on Codecov | ||
|
||
Probably only for forking? | ||
```bash | ||
curl -Os https://uploader.codecov.io/latest/linux/codecov | ||
chmod +x codecov | ||
``` | ||
|
||
Visit https://app.codecov.io and log in, follow instructions to link the repo and get a token for private repos. | ||
```bash | ||
CODECOV_TOKEN="<from-the-website>" | ||
inv coverage --fmt=xml | ||
./codecov -t ${CODECOV_TOKEN} | ||
``` | ||
|
||
## Credits | ||
|
||
This package was created with [Cookiecutter][cookiecutter] and the [fedejaure/cookiecutter-modern-pypackage][cookiecutter-modern-pypackage] project template. | ||
This package was created with [Cookiecutter][cookiecutter] and | ||
the [fedejaure/cookiecutter-modern-pypackage][cookiecutter-modern-pypackage] project template. | ||
|
||
[cookiecutter]: https://github.com/cookiecutter/cookiecutter | ||
|
||
[cookiecutter-modern-pypackage]: https://github.com/fedejaure/cookiecutter-modern-pypackage |
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.