Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/tox_runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
uses: actions/cache@v3
with:
path: .tox
key: ${{ runner.os }}-tox-${{ hashFiles('**/requirements.txt') }}-${{ hashFiles('**/tox.ini') }}-${{ hashFiles('**/setup.cfg') }}
key: ${{ runner.os }}-tox-${{ hashFiles('**/requirements-dev.txt') }}-${{ hashFiles('**/pyproject.toml') }}

- name: Run tox on the repo
run: |
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ python:
- "3.8"
- "3.9"
Comment thread
dpaskov marked this conversation as resolved.
Outdated
install:
- pip install -r requirements.txt
- pip install -r requirements-dev.txt
script:
- pytest --cov-report term --cov=taskflow

65 changes: 65 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
[build-system]
requires = ["setuptools>=80.3.1"]
build-backend = "setuptools.build_meta"

[project]
name = "taskflow"
dynamic = ["version", "optional-dependencies"]
urls = {"homepage" = "https://git@github.com/Vectorworks/taskflow.git"}
description = "A simple workflow library."
readme = "README.md"
requires-python = ">=3.9"
dependencies = []

[tool.setuptools.dynamic]
version = {attr = "taskflow.__version__"}
optional-dependencies = { dev = { file = ["requirements-dev.txt"] } }

[tool.setuptools.packages.find]
where = ["."]

[tool.setuptools.package-data]
taskflow = ["**/*"]

[tool.flake8]
exclude = [".cache",".git",".tox",".vscode"]
max-line-length = 120

[tool.pylint]
exclude = [".cache", ".git", ".tox", ".vscode"]
max-line-length = 120

[tool.pycodestyle]
max-line-length = 120

[tool.isort]
skip = [".cache", ".git", ".tox", ".vscode"]
indent = 4
line_length = 120
multi_line_output = 2
combine_as_imports = true
include_trailing_comma = true
default_section = "THIRDPARTY"
known_libraries = []
known_first_party = ["taskflow"]
sections = ["FUTURE", "STDLIB", "THIRDPARTY", "LIBRARIES", "FIRSTPARTY", "LOCALFOLDER"]

[tool.tox]
envlist = ["py39", "py310", "py311", "py312", "lint", "isort"]
isolated_build = true
skip_missing_interpreters = true

[tool.tox.env.default]
recreate = false
alwayscopy = true
extras = ["dev"]
setenv = {PYTHONPATH = "{toxinidir}"}
commands = ["py.test -v"]
Comment thread
dpaskov marked this conversation as resolved.
Outdated

[tool.tox.env.lint]
extras = ["dev"]
commands = [["python", "-m", "flake8", "taskflow"]]

[tool.tox.env.isort]
extras = ["dev"]
commands = [["python", "-m", "isort", "--check-only", "--diff", "taskflow"]]
5 changes: 4 additions & 1 deletion requirements.txt → requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@
pytest==8.3.5
pytest-cov==6.0.0
pytest-mock==3.14.0
tox==4.15.0
tox==4.26.0
flake8-pyproject==1.2.3
flake8==7.2.0
isort==5.13.2
22 changes: 0 additions & 22 deletions setup.cfg

This file was deleted.

57 changes: 0 additions & 57 deletions setup.py

This file was deleted.

29 changes: 0 additions & 29 deletions tox.ini

This file was deleted.

Loading