Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
5 changes: 4 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,8 @@ jobs:
pip3 --version
pip3 install setuptools tox

- name: Run tox
- name: Run pytest
run: tox -e py

- name: Run flake8
run: tox -e flake8
1 change: 0 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
include README.rst
include LICENSE
include requirements_dev.txt
include tox.ini
include Makefile
8 changes: 7 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,15 @@ classifiers = [
Homepage = "https://github.com/mivade/argparse_dataclass"

[project.optional-dependencies]
dev = ["black", "flake8", "tox", "pytest", "build"]
dev = ["black", "flake8", "flake8-pyproject", "tox", "pytest", "build"]

[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"

[tool.flake8]
# Recommended by black
max-line-length = 88
extend-ignore = [
"E501", # line too long, even for constants - incompatible with black
]
5 changes: 0 additions & 5 deletions requirements_dev.txt

This file was deleted.

9 changes: 4 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ envlist = py39, py310, py311, py312, py313
# isolated_build = True

[testenv]
deps =
-r {toxinidir}/requirements_dev.txt
extras = dev
commands =
python -m doctest argparse_dataclass.py
pytest
commands_post =
black --check argparse_dataclass.py
black --check tests

[testenv:flake8]
commands = flake8 {posargs}