Skip to content

Commit

Permalink
ruff 0.1.5, mypy 1.5.1, setup.cfg moved to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
dvolodin7 committed Nov 19, 2023
1 parent a3ed23a commit aab1e6d
Show file tree
Hide file tree
Showing 7 changed files with 61 additions and 47 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/py-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
- "examples/**"
- "src/**"
- "tests/**"
- "setup.cfg"
- "pyproject.toml"
branches:
- master
pull_request:
Expand Down
4 changes: 2 additions & 2 deletions .requirements/lint.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Lint Requirements
black==23.1.0
mypy==0.991
ruff==0.0.286
mypy==1.5.1
ruff==0.1.5
types-PyYAML==6.0.12.3
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ To see unreleased changes, please see the [CHANGELOG on the master branch](https
### Infrastructure

* devcontainer: Move settings to `customizations.vscode.settings`
* Ruff 0.0.286
* Ruff 0.1.5
* mypy 1.5.1
* mkdocs-material 9.4.8

## 1.0.3 - 2022-02-06
Expand Down
4 changes: 1 addition & 3 deletions docs/codebase.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ The code base of the project has following structure:
* `Dockerfile` - [Dockerfile][Dockerfile] for development container.
* `mkdocs.yml` - [Mkdocs][Mkdocs] configuration file.
* `pyproject.toml` - [pyproject.toml][Pyproject] file for python tools configuration.
* `setup.cfg` - Python library [setup][Setup] configuration.

[Remote Containers]: https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers
[GitHub Workflows]: https://docs.github.com/en/actions/using-workflows
Expand All @@ -38,5 +37,4 @@ The code base of the project has following structure:
[Pytest]: https://docs.pytest.org/
[Dockerfile]: https://docs.docker.com/engine/reference/builder/
[Gitignore]: https://git-scm.com/docs/gitignore
[Pyproject]: https://pip.pypa.io/en/stable/reference/build-system/pyproject-toml/
[Setup]: https://docs.python.org/3/distutils/configfile.html
[Pyproject]: https://pip.pypa.io/en/stable/reference/build-system/pyproject-toml/
55 changes: 55 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,58 @@ max-complexity = 10
"S603", # `subprocess` call: check for execution of untrusted input
"PLR2004", # Magic value used in comparison, consider replacing {value} with a constant variable
]
[tool.ruff.lint.isort]
known-first-party = ["src"]

[tool.mypy]
explicit_package_bases = true
mypy_path = ["src"]
strict = true
warn_unused_ignores = false

[project]
authors = [{name = "Gufo Labs"}]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"License :: OSI Approved :: BSD License",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
"Operating System :: OS Independent",
"Typing :: Typed",
]
dynamic = ["version"]
keywords = ["loader", "plugin"]
license = {text = "BSD 3-Clause License"}
name = "gufo_loader"
requires-python = ">=3.8"

[project.readme]
content-type = "text/markdown"
file = "README.md"

[project.urls]
"Bug Tracker" = "https://github.com/gufolabs/gufo_loader/issues"
Changelog = "https://github.com/gufolabs/gufo_loader/blob/master/CHANGELOG.md"
Documentation = "https://docs.gufolabs.com/gufo_loader/"
Homepage = "https://github.com/gufolabs/gufo_loader/"
"Source Code" = "https://github.com/gufolabs/gufo_loader/"

[tool.setuptools]
include-package-data = false
package-dir = {"" = "src"}

[tool.setuptools.packages.find]
namespaces = true
where = ["src"]

[tool.setuptools.package-data]
"*" = ["py.typed"]

[tool.setuptools.dynamic]
version = {attr = "gufo.loader.__version__"}
39 changes: 0 additions & 39 deletions setup.cfg

This file was deleted.

1 change: 0 additions & 1 deletion tests/test_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ def _get_project() -> str:
"docs/testing.md",
"mkdocs.yml",
"pyproject.toml",
"setup.cfg",
f"src/gufo/{PROJECT}/__init__.py",
f"src/gufo/{PROJECT}/py.typed",
"tests/test_docs.py",
Expand Down

0 comments on commit aab1e6d

Please sign in to comment.