Skip to content

Commit

Permalink
Version 0.1.0 - Update to using pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
CoolCat467 committed Mar 12, 2023
1 parent 20ab636 commit ec8b96f
Show file tree
Hide file tree
Showing 12 changed files with 935 additions and 342 deletions.
29 changes: 29 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
repos:
- repo: https://github.com/hadialqattan/pycln
rev: v2.1.3 # must match requirements_dev.txt
hooks:
- id: pycln
args: [--config=pyproject.toml, src]
- repo: https://github.com/psf/black
rev: 23.1.0 # must match requirements_dev.txt
hooks:
- id: black
language_version: python3.11
args: [--safe]
- repo: https://github.com/pycqa/isort
rev: 5.12.0 # must match requirements_dev.txt
hooks:
- id: isort
name: isort (python)
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.0-alpha.6
hooks:
- id: prettier
types_or: [yaml]

ci:
autofix_commit_msg: "[pre-commit.ci] auto fixes from pre-commit.com hooks"
autofix_prs: true
autoupdate_commit_msg: "[pre-commit.ci] pre-commit autoupdate"
autoupdate_schedule: quarterly
submodules: false
61 changes: 61 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"

[project]
name = "idlealign"
version = "0.1.0"
authors = [
{ name="CoolCat467" },
]
description = "Emacs Align by Regular Expression for IDLE"
readme = {file = "README.md", content-type = "text/markdown"}
license = {file = "LICENSE"}
requires-python = ">=3.8"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3 :: Only",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
"Framework :: IDLE",
"Topic :: Utilities",
"Typing :: Typed",
]
keywords = ["align", "regex", "idle", "extension", "development"]

[project.urls]
"Homepage" = "https://github.com/CoolCat467/idlealign"
"Source" = "https://github.com/CoolCat467/idlealign"
"Bug Tracker" = "https://github.com/CoolCat467/idlealign/issues"

[project.scripts]
idlealign = "idlealign:check_installed"

[tool.mypy]
mypy_path = "src"
check_untyped_defs = true
disallow_any_generics = true
disallow_untyped_calls = true
disallow_untyped_defs = true
ignore_missing_imports = true
no_implicit_optional = true
no_implicit_reexport = true
show_column_numbers = true
show_error_codes = true
strict = true
strict_equality = true
warn_redundant_casts = true
warn_return_any = true
warn_unreachable = true
warn_unused_configs = true
warn_unused_ignores = true

[tool.black]
line-length = 79
target-version = ['py311']
Empty file added requirements.txt
Empty file.
5 changes: 5 additions & 0 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
black==23.1.0 # must match .pre-commit-config.yaml
isort==5.12.0 # must match .pre-commit-config.yaml
mypy==1.0.1
pycln==2.1.3 # must match .pre-commit-config.yaml
pre-commit
4 changes: 0 additions & 4 deletions setup.cfg

This file was deleted.

201 changes: 0 additions & 201 deletions setup.py

This file was deleted.

Loading

0 comments on commit ec8b96f

Please sign in to comment.