Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit 2d547093 authored by Dorian Turba's avatar Dorian Turba
Browse files

Merge branch 'trunk'

parents 5fba05d0 0d422a9c
No related branches found
No related tags found
No related merge requests found
Pipeline #36618 passed
include:
- remote: 'https://gitlab.com/swepy/cicd-templates/release-by-changelog/-/raw/0.4.1/templates/release-by-changelog.yml'
# - remote: 'https://gitlab.com/swepy/cicd-templates/ruff/-/raw/ruff@1.0.2/ruff.yml'
- remote: 'https://gitlab.com/swepy/cicd-templates/twine/-/raw/0.2.0/templates/twine.yml'
# Changelog
All notable changes to this job will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
[![Pipeline](https://lab.frogg.it/swepy/zeropython/badges/trunk/pipeline.svg)](https://lab.frogg.it/swepy/zeropython/-/pipelines?ref=trunk)
## [0.1.0] - 2024-05-10
[![Pipeline](https://lab.frogg.it/swepy/zeropython/badges/0.1.0/pipeline.svg)](https://lab.frogg.it/swepy/zeropython/-/pipelines?ref=0.1.0)
* Initial release
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
requires = ["hatchling"]
[project]
name = "zeropython"
version = "0.0.1"
version = "0.1.0"
authors = [
{ name = "Dorian Turba", email = "zeropython.pip.w1nid@8shield.net" },
{email = "zeropython.pip.w1nid@8shield.net", name = "Dorian Turba"},
]
description = "Zero Python, a Python 3.7+ library for educational purpose."
description = "Zero Python, a Python library for educational purpose."
license = {file = "LICENSE"}
readme = "README.md"
requires-python = ">=3.7"
requires-python = ">=3.8"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Development Status :: 3 - Alpha",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
......@@ -26,76 +25,125 @@ classifiers = [
"Typing :: Typed",
]
dependencies = [
"typer",
"typer[all]",
]
[project.optional-dependencies]
DEV = [
"bump-my-version",
"pip-tools",
]
QUALITY = [
"toml-sort",
]
[project.scripts]
zeropython = "zeropython:app"
[project.urls]
"Homepage" = "https://lab.frogg.it/dorianturba/zero-python"
"Bug Tracker" = "https://lab.frogg.it/dorianturba/zero-python/-/issues"
"Homepage" = "https://lab.frogg.it/dorianturba/zero-python"
[project.optional-dependencies]
ALL = ["zeropython[QUALITY]", "zeropython[TEST]"]
QUALITY = [
"flake8",
"black",
"pre-commit",
"mypy",
"tox",
]
TEST = [
"pytest",
"coverage",
[tool.bumpversion]
allow-dirty = true
commit = true
config-file = "pyproject.toml"
current_version = "0.2.3"
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
replace = "{new_version}"
search = "{current_version}"
serialize = [
"{major}.{minor}.{patch}",
]
tag = false
[[tool.bumpversion.files]]
allow-dirty = true
filename = "pyproject.toml"
replace = "version = \"{new_version}\""
search = "version = \"{current_version}\""
[[tool.bumpversion.files]]
allow-dirty = true
filename = "CHANGELOG.md"
replace = """## [Unreleased]
[![Pipeline](https://lab.frogg.it/swepy/zeropython/badges/trunk/pipeline.svg)](https://lab.frogg.it/swepy/zeropython/-/pipelines?ref=trunk)
## [{new_version}] - {now:%Y-%m-%d}
[![Pipeline](https://lab.frogg.it/swepy/zeropython/badges/{new_version}/pipeline.svg)](https://lab.frogg.it/swepy/zeropython/-/pipelines?ref={new_version})
"""
search = """## [Unreleased]
[![Pipeline](https://lab.frogg.it/swepy/zeropython/badges/trunk/pipeline.svg)](https://lab.frogg.it/swepy/zeropython/-/pipelines?ref=trunk)
"""
[tool.hatch.envs.default.scripts]
toml = "toml-sort --in-place pyproject.toml"
[tool.pytest.ini_options]
addopts = "-rA -q"
minversion = "6.0"
addopts = "-rA -q --strict-markers"
testpaths = [
"tests",
"integration",
]
markers = [
"regression: prevent regression of functionality",
"destructive: make sure unwanted behavior raise errors",
"property: property based testing",
[tool.ruff]
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"pypackages",
"venv",
]
indent-width = 4
line-length = 88
target-version = "py38"
[tool.ruff.format]
docstring-code-format = true
docstring-code-line-length = "dynamic"
[tool.ruff.lint]
select = ["ANN", "C90", "D2", "D3", "D4", "E", "F", "I", "N", "RUF", "UP", "W"]
[tool.ruff.lint.flake8-annotations]
suppress-dummy-args = true
[tool.ruff.lint.pydocstyle]
convention = "pep257"
ignore-decorators = ["typing.overload"]
[tool.tomlsort]
check = false
ignore_case = true
in_place = true
no_block_comments = true
no_comments = true
no_footer_comments = true
no_header_comments = true
no_inline_comments = true
no_sort_tables = false
sort_inline_arrays = false
sort_inline_tables = true
sort_table_keys = true
spaces_before_inline_comment = 2
spaces_indent_inline_array = 4
trailing_comma_inline_array = true
[tool.black]
line-length = 100
[tool.mypy]
packages = "zeropython"
python_version = 3.7
disallow_untyped_defs = true
exclude = "tests"
[tool.tox]
legacy_tox_ini = """
[tox]
min_version = 4.0
env_list =
py{37,38,39,310,311,312}
black
flake8
mypy
isolated_build = true
[testenv]
deps = pytest
commands = pytest
[testenv:black]
deps = black
commands = black --check .
[testenv:flake8]
deps = flake8
commands = flake8
[testenv:mypy]
deps = mypy
commands = mypy src
"""
\ No newline at end of file
[tool.tomlsort.overrides."project"]
table_keys = false
......@@ -2,10 +2,9 @@ import pathlib
import typer
import zeropython.report
import zeropython.ast_detector
import zeropython.ast_cleaner
import zeropython.ast_detector
import zeropython.report
app = typer.Typer(pretty_exceptions_enable=False)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment