Skip to content

Commit

Permalink
feat: switch to Poetry for dependency and project management
Browse files Browse the repository at this point in the history
  • Loading branch information
DonDebonair committed Oct 16, 2021
1 parent ee2607d commit c999246
Show file tree
Hide file tree
Showing 15 changed files with 1,738 additions and 200 deletions.
11 changes: 11 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[flake8]
exclude =
.git,
.tox,
.eggs,
docs,
__pycache__,
dist,
build,
tests
max-line-length=100
6 changes: 5 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
version: 2
updates:
- package-ecosystem: "pip"
- package-ecosystem: "poetry"
directory: "/"
schedule:
interval: "daily"
commit-message:
prefix: "chore"
include: "scope"
open-pull-requests-limit: 10
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,7 @@ fabric.properties

# Pytest
.pytest_cache
pytest.xml
pytest.xml

# we don't need setup.py anymore because we use poetry, but we generate it so we can install slack-machine as editable
setup.py
22 changes: 11 additions & 11 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.1.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://gitlab.com/pycqa/flake8
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.3
hooks:
- id: flake8
- id: flake8
files: >
(?x)^(
machine|
setup.py
)
(?x)^(
machine|
setup.py
)
4 changes: 0 additions & 4 deletions MANIFEST.in

This file was deleted.

17 changes: 0 additions & 17 deletions machine/__about__.py

This file was deleted.

5 changes: 1 addition & 4 deletions machine/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
from .core import Machine
from .__about__ import (__title__, __description__, __uri__, __version__, __author__,
__email__, __license__, __copyright__)

__all__ = [
'__title__', '__description__', '__uri__', '__version__', '__author__', '__email__',
'__license__', '__copyright__', 'Machine'
'Machine'
]
Loading

0 comments on commit c999246

Please sign in to comment.