-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 1f5f44f
Showing
23 changed files
with
690 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
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,20 @@ | ||
Any related Github Issues?: _add link here_ | ||
|
||
_What has changed? This should match `CHANGELOG.md`._ | ||
|
||
# Check list | ||
|
||
## Before asking for a review | ||
|
||
- [ ] Target branch is `master` | ||
- [ ] [`[Unreleased]`](../blob/master/CHANGELOG.md#unreleased) section in [CHANGELOG.md](../blob/master/CHANGELOG.md) is updated. | ||
- [ ] I reviewed the "Files changed" tab and self-annotated anything unexpected. | ||
|
||
## Before review (reviewer) | ||
|
||
- [ ] All of the above are checked and true. **Review ALL items.** If not, return the PR to the author. | ||
- [ ] Continuous Integration is passing. If not, return the PR to the author. | ||
|
||
## After merge (reviewer) | ||
|
||
- [ ] Any issues that may now be closed are closed. |
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 @@ | ||
|
||
name: tests | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.9' | ||
architecture: 'x64' | ||
|
||
- name: Install poetry | ||
run: | | ||
pip install -U pip | ||
pip install poetry | ||
- name: Install dependencies | ||
run: poetry install | ||
|
||
- name: Run tests | ||
run: poetry run inv verify |
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,155 @@ | ||
### Transient ### | ||
# Test reports | ||
reports/ | ||
|
||
### Secrets ### | ||
# Environment variables | ||
.env | ||
|
||
### Python ### | ||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
*$py.class | ||
|
||
# C extensions | ||
*.so | ||
|
||
# Distribution / packaging | ||
.Python | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
.eggs/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
wheels/ | ||
pip-wheel-metadata/ | ||
share/python-wheels/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
MANIFEST | ||
|
||
# PyInstaller | ||
# Usually these files are written by a python script from a template | ||
# before PyInstaller builds the exe, so as to inject date/other infos into it. | ||
*.manifest | ||
*.spec | ||
|
||
# Installer logs | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
|
||
# Unit test / coverage reports | ||
htmlcov/ | ||
.tox/ | ||
.nox/ | ||
.coverage | ||
.coverage.* | ||
.cache | ||
nosetests.xml | ||
coverage.xml | ||
*.cover | ||
*.py,cover | ||
.hypothesis/ | ||
.pytest_cache/ | ||
pytestdebug.log | ||
|
||
# Translations | ||
*.mo | ||
*.pot | ||
|
||
# Django stuff: | ||
*.log | ||
local_settings.py | ||
db.sqlite3 | ||
db.sqlite3-journal | ||
|
||
# Flask stuff: | ||
instance/ | ||
.webassets-cache | ||
|
||
# Scrapy stuff: | ||
.scrapy | ||
|
||
# Sphinx documentation | ||
docs/_build/ | ||
doc/_build/ | ||
|
||
# PyBuilder | ||
target/ | ||
|
||
# Jupyter Notebook | ||
.ipynb_checkpoints | ||
|
||
# IPython | ||
profile_default/ | ||
ipython_config.py | ||
|
||
# pyenv | ||
.python-version | ||
|
||
# pipenv | ||
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. | ||
# However, in case of collaboration, if having platform-specific dependencies or dependencies | ||
# having no cross-platform support, pipenv may install dependencies that don't work, or not | ||
# install all needed dependencies. | ||
#Pipfile.lock | ||
|
||
# poetry | ||
#poetry.lock | ||
|
||
# PEP 582; used by e.g. github.com/David-OConnor/pyflow | ||
__pypackages__/ | ||
|
||
# Celery stuff | ||
celerybeat-schedule | ||
celerybeat.pid | ||
|
||
# SageMath parsed files | ||
*.sage.py | ||
|
||
# Environments | ||
# .env | ||
.env/ | ||
.venv/ | ||
env/ | ||
venv/ | ||
ENV/ | ||
env.bak/ | ||
venv.bak/ | ||
pythonenv* | ||
|
||
# Spyder project settings | ||
.spyderproject | ||
.spyproject | ||
|
||
# Rope project settings | ||
.ropeproject | ||
|
||
# mkdocs documentation | ||
/site | ||
|
||
# mypy | ||
.mypy_cache/ | ||
.dmypy.json | ||
dmypy.json | ||
|
||
# Pyre type checker | ||
.pyre/ | ||
|
||
# pytype static type analyzer | ||
.pytype/ | ||
|
||
# operating system-related files | ||
# file properties cache/storage on macOS | ||
*.DS_Store | ||
# thumbnail cache on Windows | ||
Thumbs.db | ||
|
||
# profiling data | ||
.prof |
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,13 @@ | ||
# See https://pre-commit.com/ for usage and config | ||
default_language_version: | ||
python: python3.9 | ||
repos: | ||
- repo: https://github.com/ambv/black | ||
rev: 20.8b1 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/pycqa/isort | ||
rev: 5.8.0 | ||
hooks: | ||
- id: isort | ||
name: isort |
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,25 @@ | ||
# Changelog | ||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog] and this project adheres to | ||
[Semantic Versioning]. | ||
|
||
Types of changes are: | ||
* **Security** in case of vulnerabilities. | ||
* **Deprecated** for soon-to-be removed features. | ||
* **Added** for new features. | ||
* **Changed** for changes in existing functionality. | ||
* **Removed** for now removed features. | ||
* **Fixed** for any bug fixes. | ||
|
||
## [Unreleased] | ||
### Added | ||
* Project started :) | ||
|
||
[Unreleased]: https://github.com/jacksmith15/workspaces/compare/initial..HEAD | ||
|
||
[Keep a Changelog]: http://keepachangelog.com/en/1.0.0/ | ||
[Semantic Versioning]: http://semver.org/spec/v2.0.0.html | ||
|
||
[_release_link_format]: https://github.com/jacksmith15/workspaces/compare/{previous_tag}..{tag} | ||
[_breaking_change_token]: BREAKING |
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,9 @@ | ||
MIT License | ||
Copyright 2019 Jack Smith | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
|
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,30 @@ | ||
# workspaces | ||
Manage interdependent project as workspaces. | ||
|
||
## Installation | ||
|
||
This project is not currently packaged and so must be installed manually. | ||
|
||
Clone the project with the following command: | ||
``` | ||
git clone https://github.com/jacksmith15/workspaces.git | ||
``` | ||
|
||
## Development | ||
|
||
Install dependencies: | ||
|
||
```shell | ||
pyenv shell 3.9.4 # Or other 3.9.x | ||
pre-commit install # Configure commit hooks | ||
poetry install # Install Python dependencies | ||
``` | ||
|
||
Run tests: | ||
|
||
```shell | ||
poetry run inv verify | ||
``` | ||
|
||
# License | ||
This project is distributed under the MIT license. |
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,24 @@ | ||
[mypy] | ||
python_version = 3.9 | ||
show_column_numbers = True | ||
show_error_codes = True | ||
color_output = True | ||
warn_unused_configs = True | ||
warn_unused_ignores = True | ||
follow_imports = normal | ||
|
||
### Source code dependencies ### | ||
|
||
# Example: | ||
# [mypy-furl.*] | ||
# ignore_missing_imports = True | ||
|
||
### Test dependencies ### | ||
|
||
[mypy-_pytest.*] | ||
ignore_missing_imports = True | ||
|
||
### Tasks dependencies ### | ||
|
||
[mypy-invoke.*] | ||
ignore_missing_imports = 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[virtualenvs] | ||
create = true | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
[tool.poetry] | ||
name = "workspaces" | ||
version = "0.1.0" | ||
description = "" | ||
authors = ["Jack Smith"] | ||
packages = [ | ||
{include = "workspaces"}, | ||
] | ||
homepage = "https://github.com/jacksmith15/workspaces" | ||
repository = "https://github.com/jacksmith15/workspaces" | ||
readme = "README.md" | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.9" | ||
|
||
[tool.poetry.dev-dependencies] | ||
pytest = "^6.2.3" | ||
toml = "^0.10" | ||
ipdb = "^0.13.7" | ||
ipython = "^7.22.0" | ||
mypy = "^0.812" | ||
pyflakes = "^2.3.1" | ||
invoke = "^1.5.0" | ||
termcolor = "^1.1.0" | ||
pytest-cov = "^2.11.1" | ||
changelog-cmd = "^0.1.2" | ||
|
||
[tool.isort] | ||
# Setting compatible with black. See https://black.readthedocs.io/en/stable/compatible_configs.html | ||
multi_line_output = 3 | ||
include_trailing_comma = true | ||
force_grid_wrap = 0 | ||
use_parentheses = true | ||
ensure_newline_before_comments = true | ||
line_length = 120 | ||
|
||
[tool.black] | ||
line-length = 120 | ||
target-version = ['py38'] | ||
exclude = ''' | ||
/( | ||
\.eggs | ||
| \.git | ||
| \.hg | ||
| \.mypy_cache | ||
| \.tox | ||
| \.venv | ||
| _build | ||
| buck-out | ||
| build | ||
| dist | ||
)/ | ||
''' | ||
|
||
[build-system] | ||
requires = ["poetry-core>=1.0.0"] | ||
build-backend = "poetry.core.masonry.api" |
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,18 @@ | ||
from invoke import Collection | ||
|
||
from tasks.changelog_check import changelog_check | ||
from tasks.lint import lint | ||
from tasks.release import build, release | ||
from tasks.test import coverage, test | ||
from tasks.typecheck import typecheck | ||
from tasks.verify import verify | ||
|
||
namespace = Collection( | ||
build, | ||
changelog_check, | ||
coverage, | ||
lint, | ||
release,test, | ||
typecheck, | ||
verify, | ||
) |
Oops, something went wrong.