Skip to content

Commit 51b3b17

Browse files
committed
[chore:project] prepare for version v0.1.3
Update `pyproject.toml` lock and CHANGELOG
1 parent edc5ce2 commit 51b3b17

File tree

3 files changed

+161
-24
lines changed

3 files changed

+161
-24
lines changed

docs/source/changelog.rst

Lines changed: 39 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,49 @@ Unreleased
1414

1515
*This section is for upcoming changes. It will become the next version's release notes.*
1616

17-
**Added**
18-
- *... (e.g., Added `must_have_docstring` constraint)*
17+
Added
18+
-----
1919

20-
**Changed**
2120
- *...*
2221

23-
**Fixed**
22+
Changed
23+
-------
24+
2425
- *...*
2526

27+
Fixed
28+
-----
29+
30+
- *...*
31+
32+
33+
----
34+
35+
v0.1.3 - 2025-06-17
36+
===================
37+
38+
Patch changes, fixes, and improvements.
39+
40+
Fixed
41+
-----
42+
43+
- **Logging level**: Wherever the level was specified as a string, the LogLevel structure is used.
44+
- **Clean code**: Delete unnecessary comments from code.
45+
- **Docstring**: Update all docstring in all files.
46+
47+
48+
49+
v0.1.2 - 2025-06-17
50+
===================
51+
52+
A little code refinement.
53+
54+
Changed
55+
-------
56+
57+
- **Typo**: Fix `README.md`: add links and clean file.
58+
59+
2660

2761
v0.1.1 - 2025-06-17
2862
===================
@@ -35,7 +69,7 @@ The documentation for ReadTheDocs has been written and the book How It Works has
3569
- **How It Works**: How It Works in `docs/how_it_works/index.md`.
3670
- **AI in repository**: Deep wiki by `https://deepwiki.com/Qu1nel/PythonCodeValidator`
3771

38-
.. _v0.1.0:
72+
3973

4074
v0.1.0 - 2025-06-16
4175
===================

pyproject.toml

Lines changed: 71 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,54 @@
1+
# ==============================================================================
2+
# Build System Configuration (PEP 517/518)
3+
# ==============================================================================
14
[build-system]
25
requires = ["setuptools>=61.0"]
36
build-backend = "setuptools.build_meta"
47

5-
8+
# ==============================================================================
9+
# Project Metadata (PEP 621)
10+
# ==============================================================================
611
[project]
712
name = "python-code-validator"
8-
version = "0.1.2"
13+
version = "0.1.3"
914
authors = [{ name = "Qu1nel", email = "covach.qn@gmail.com" }]
10-
description = "A flexible framework for static validation of Python code based on JSON rules."
15+
description = "A flexible, AST-based framework for static validation of Python code using declarative JSON rules."
1116
readme = "README.md"
1217
requires-python = ">=3.11"
1318
license = { file = "LICENSE" }
14-
keywords = ["validation", "linter", "static analysis", "testing", "education"]
19+
keywords = ["validation", "linter", "static analysis", "testing", "education", "ast"]
1520
classifiers = [
16-
"Development Status :: 3 - Alpha",
21+
"Development Status :: 4 - Beta",
22+
"Intended Audience :: Developers",
23+
"Intended Audience :: Education",
1724
"Programming Language :: Python :: 3",
1825
"Programming Language :: Python :: 3.11",
1926
"Programming Language :: Python :: 3.12",
2027
"License :: OSI Approved :: MIT License",
2128
"Operating System :: OS Independent",
29+
"Topic :: Software Development :: Quality Assurance",
30+
"Topic :: Software Development :: Testing",
31+
"Topic :: Education",
2232
]
2333

34+
dependencies = [
35+
"flake8>=7.0.0"
36+
]
2437

2538
[project.urls]
2639
"Homepage" = "https://github.com/Qu1nel/PythonCodeValidator"
2740
"Documentation" = "https://pythoncodevalidator.readthedocs.io/en/latest/"
2841
"Bug Tracker" = "https://github.com/Qu1nel/PythonCodeValidator/issues"
2942

30-
3143
[project.scripts]
3244
validate-code = "code_validator.cli:run_from_cli"
3345

34-
3546
[project.optional-dependencies]
3647
dev = [
3748
"ruff>=0.4.0",
38-
"flake8>=7.0.0",
3949
"build",
4050
"twine",
41-
"coverage>=7.5.0",
51+
"coverage[toml]>=7.5.0",
4252
]
4353
docs = [
4454
"sphinx>=7.0.0",
@@ -47,16 +57,63 @@ docs = [
4757
"sphinx-design",
4858
]
4959

60+
# ==============================================================================
61+
# Tool Configuration
62+
# ==============================================================================
5063

5164
[tool.ruff]
5265
line-length = 120
53-
exclude = ["tests/fixtures"]
66+
exclude = [
67+
".venv",
68+
"build",
69+
"dist",
70+
"src/python_code_validator.egg-info",
71+
"tests/fixtures",
72+
]
5473

5574
[tool.ruff.lint]
56-
select = ["E", "F", "W", "I", "C", "B"]
57-
ignore = []
58-
mccabe.max-complexity = 15
75+
select = [
76+
"E", # pycodestyle errors
77+
"W", # pycodestyle warnings
78+
"F", # pyflakes
79+
"I", # isort
80+
"B", # flake8-bugbear
81+
"C4", # flake8-comprehensions
82+
"D", # pydocstyle
83+
]
84+
ignore = [
85+
]
5986

87+
[tool.ruff.lint.per-file-ignores]
88+
"tests/*" = [
89+
"D100", # Missing docstring in public module
90+
"D101", # Missing docstring in public class
91+
"D102", # Missing docstring in public method
92+
"D103", # Missing docstring in public function
93+
"D104", # Missing docstring in public package
94+
"D107", # Missing docstring in __init__
95+
]
96+
"src/code_validator/components/__init__.py" = ["D104"]
97+
"src/code_validator/rules_library/__init__.py" = ["D104"]
98+
99+
100+
[tool.ruff.lint.pydocstyle]
101+
convention = "google"
102+
103+
[tool.ruff.lint.isort]
104+
known-first-party = ["code_validator", "tests"]
60105

61106
[tool.ruff.format]
62-
quote-style = "double"
107+
quote-style = "double"
108+
109+
[tool.coverage.run]
110+
omit = [
111+
"src/code_validator/__main__.py",
112+
"src/code_validator/cli.py",
113+
"tests/*",
114+
"*/__init__.py",
115+
]
116+
117+
[tool.coverage.report]
118+
fail_under = 85
119+
show_missing = true

uv.lock

Lines changed: 51 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)