Skip to content

Commit b434b34

Browse files
committed
Release 0.20.1
1 parent e0d9619 commit b434b34

File tree

3 files changed

+42
-63
lines changed

3 files changed

+42
-63
lines changed

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/)
55
and this project adheres to [Semantic Versioning](http://semver.org/).
66

7+
## [0.20.1] - 2025-04-29
8+
9+
### Changed
10+
11+
- Dependency on `firebird-base` changed to "~=1.8"
12+
- Updated `hatch` configuration
13+
714
## [0.20.0] - 2024-05-09
815

916
### Added

docs/changelog.txt

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ Changelog
44

55
.. currentmodule:: firebird.qa.plugin
66

7+
Version 0.20.1
8+
==============
9+
10+
* Dependency on `firebird-base` changed to "~=1.8"
11+
* Updated `hatch` configuration
12+
713
Version 0.20.0
814
==============
915

pyproject.toml

+29-63
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ classifiers = [
3232
"Framework :: Pytest",
3333
]
3434
dependencies = [
35-
"firebird-base>=1.8.0",
35+
"firebird-base~=1.8",
3636
"firebird-driver~=1.10",
3737
"pytest>=7.4",
3838
"psutil~=5.9",
@@ -64,6 +64,11 @@ packages = ["src/firebird"]
6464
dependencies = [
6565
]
6666

67+
[tool.hatch.envs.hatch-test]
68+
extra-args = ["-vv", "--server", "local"]
69+
dependencies = [
70+
]
71+
6772
[tool.hatch.envs.test]
6873
dependencies = [
6974
"coverage[toml]>=6.5",
@@ -101,63 +106,13 @@ docset = [
101106
"cd docs; VERSION=`hatch version` ; tar --exclude='.DS_Store' -cvzf ../dist/firebird-qa-$VERSION-docset.tgz firebird-qa.docset",
102107
]
103108

104-
[tool.hatch.envs.lint]
105-
detached = true
106-
dependencies = [
107-
"black>=23.1.0",
108-
"mypy>=1.0.0",
109-
"ruff>=0.0.243",
110-
]
111-
[tool.hatch.envs.lint.scripts]
112-
typing = "mypy --install-types --non-interactive {args:src/firebird/qa tests}"
113-
style = [
114-
"ruff {args:.}",
115-
"black --check --diff {args:.}",
116-
]
117-
fmt = [
118-
"black {args:.}",
119-
"ruff --fix {args:.}",
120-
"style",
121-
]
122-
all = [
123-
"style",
124-
"typing",
125-
]
126-
127-
[tool.black]
128-
target-version = ["py38"]
129-
line-length = 120
130-
skip-string-normalization = true
131-
132109
[tool.ruff]
133-
target-version = "py38"
110+
target-version = "py311"
134111
line-length = 120
135-
select = [
136-
"A",
137-
"ARG",
138-
"B",
139-
"C",
140-
"DTZ",
141-
"E",
142-
"EM",
143-
"F",
144-
"FBT",
145-
"I",
146-
"ICN",
147-
"ISC",
148-
"N",
149-
"PLC",
150-
"PLE",
151-
"PLR",
152-
"PLW",
153-
"Q",
154-
"RUF",
155-
"S",
156-
"T",
157-
"TID",
158-
"UP",
159-
"W",
160-
"YTT",
112+
113+
[tool.ruff.lint]
114+
select = ["A", "ARG", "B", "C", "DTZ", "E", "EM", "F", "FBT", "I", "ICN", "ISC", "N",
115+
"PLC", "PLE", "PLR", "PLW", "Q", "RUF", "S", "T", "TID", "UP", "W", "YTT",
161116
]
162117
ignore = [
163118
# Allow non-abstract empty methods in abstract base classes
@@ -168,33 +123,44 @@ ignore = [
168123
"S105", "S106", "S107",
169124
# Ignore complexity
170125
"C901", "PLR0911", "PLR0912", "PLR0913", "PLR0915",
126+
#
127+
"E741",
128+
# Allow relative imports
129+
"TID252",
130+
# Allow literals in exceptions
131+
"EM101", "EM102",
132+
# Single quotes instead double
133+
"Q000"
171134
]
172135
unfixable = [
173136
# Don't touch unused imports
174137
"F401",
138+
# Don't change single quotes to double
139+
"Q000"
175140
]
141+
exclude = ["*_pb2.py", "*.pyi", "tests/*", "docs/*", "personal/*"]
176142

177-
[tool.ruff.isort]
178-
known-first-party = ["firebird.qa"]
143+
[tool.ruff.lint.isort]
144+
known-first-party = ["firebird.base"]
179145

180-
[tool.ruff.flake8-tidy-imports]
146+
[tool.ruff.lint.flake8-tidy-imports]
181147
ban-relative-imports = "all"
182148

183-
[tool.ruff.per-file-ignores]
149+
[tool.ruff.lint.extend-per-file-ignores]
184150
# Tests can use magic values, assertions, and relative imports
185151
"tests/**/*" = ["PLR2004", "S101", "TID252"]
186152

187153
[tool.coverage.run]
188-
source_pkgs = ["firebird.qa", "tests"]
154+
source_pkgs = ["firebird.qa"]
189155
branch = true
190156
parallel = true
191157
omit = [
192158
"src/firebird/qa/__about__.py",
193159
]
194160

195161
[tool.coverage.paths]
196-
firebird_qa = ["src/python", "*/python/src/firebird/qa"]
197-
tests = ["tests", "*/python/tests"]
162+
firebird_qa = ["*/src/firebird/qa"]
163+
tests = ["tests"]
198164

199165
[tool.coverage.report]
200166
exclude_lines = [

0 commit comments

Comments
 (0)