Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Proposal to fix #373 (Use hatchling build backend) and #374 (Update Towncrier config in pyproject.toml)
I have moved everything except for flake8 settings and pycodestyle settings from
setup.cfg
topyproject.toml
I have prepared these scripts:
style:fmt
runs Black and isort (all files now have imports sorted by isort)style:lint
runs flake8 and pycodestyledocs:build
runs pdoc3 to build API documentation in theapi-docs
directory (added to.gitignore
docs:serve
runs pdoc3 local server onlocalhost:8080
to observe API docs updated live as you update docstrings. However, this somehow does not work in this project and I don't know exactly how to solve the error.test:cov
runs pytest-covtest:no-cov
runs pytest with--no-cov
test:tox_test
runs toxScripts can be run with
hatch run
, e.g.hatch.run style:fmt
. All the test scripts fail because ofpython-semver\tests\coerce.py
not being a proper Python file (invalid syntax). I don't know what purpose of this file is, so I did not touch it. It makes tests fail even if you run then natively withtox
, so repairing this is beyond the scope of this PR, methinks.I changed the classifier
Environment :: Web Environment
toEnvironment :: Console
as I think it's more fitting.I also removed Python 3.6 from black's matxix in anticipation of #372 (Remove support of Python 3.6)