315 Commits

Author SHA1 Message Date
Samuël WEBER
6ee6fc8b88 docs: rename bennylope -> pydiscourse in readme 2025-02-25 11:33:51 -05:00
Samuël WEBER
7d05b1c42c docs: add pypi badge in readme 2025-02-25 11:33:51 -05:00
Samuël WEBER
b03c9738f1 docs: readme code highlighted 2025-02-25 11:33:29 -05:00
Ben Lopatin
36f8f1e737
Merge pull request #93 from pydiscourse/v1.7
Bump version
v1.7.0
2024-04-16 16:34:57 -04:00
Ben Lopatin
2d27cc2a3c Update History 2024-04-16 16:32:22 -04:00
Ben Lopatin
f81c1b775a Add support for Python 3.12 2024-04-16 16:31:58 -04:00
Ben Lopatin
270f4bbbdb Bump version 2024-04-16 16:31:17 -04:00
Samuël WEBER
7d981684aa add anonymize endpoint 2024-02-24 13:26:43 -05:00
Samuël WEBER
53be265b23 fix: search term moved to q 2023-09-27 11:17:01 -04:00
Samuël WEBER
a07b122c39 add about endpoint for site statistics 2023-09-07 10:57:28 -04:00
Ben Lopatin
6d54153a24
Merge pull request #90 from pydiscourse/new-version
Update version for release
v1.6.1
2023-09-01 10:37:25 -04:00
Ben Lopatin
c30a453a6b Bump version 2023-09-01 10:35:28 -04:00
Ben Lopatin
3e87ef3849
Merge pull request #89 from pydiscourse/use-discourse-request
Replace mocks and increase coverage requirement
2023-09-01 10:23:50 -04:00
Ben Lopatin
0f1cc41967 Bump up coverage requirement 2023-09-01 10:21:48 -04:00
Ben Lopatin
7ca7f47e94 Replace requests_mock with discourse_request
Requires just slightly less upfront configuration in each test.
2023-09-01 10:21:11 -04:00
Ben Lopatin
d8ec2f61aa
Merge pull request #88 from Dettorer/add-endpoint-post-by-number
Add a wrapper for the /posts/by_number endpoint
2023-09-01 10:08:46 -04:00
Paul Dettorer Hervot
f94d861c64 Add a wrapper for the /posts/by_number endpoint 2023-09-01 11:57:11 +02:00
Ben Lopatin
565b714d81
Merge pull request #87 from pydiscourse/bennylope-patch-1
Delete .coveragerc
2023-08-31 21:10:41 -04:00
Ben Lopatin
e1a9038789
Delete .coveragerc
Inapplicable now
2023-08-31 21:08:30 -04:00
Ben Lopatin
b38f99bffe
Merge pull request #86 from pydiscourse/add-ruff
Add ruff and cleanup code
v1.6.0
2023-08-31 18:10:24 -04:00
Ben Lopatin
4d20bfd79c Update history and version 2023-08-31 18:09:02 -04:00
Ben Lopatin
99359aa518 Ignore formatting and simple rule-based changes 2023-08-31 18:03:15 -04:00
Ben Lopatin
ea7d47c5da Add 'bad' update to test actions 2023-08-31 17:59:38 -04:00
Ben Lopatin
fcdd6ab8dd Add linting rule 2023-08-31 17:56:09 -04:00
Ben Lopatin
c850e34112 Add ruff for general use 2023-08-31 17:53:51 -04:00
Ben Lopatin
ee21957027 Add ruff and black pre-commit 2023-08-31 17:47:11 -04:00
Ben Lopatin
acb0af24d1 Handle commented code 2023-08-31 17:46:35 -04:00
Ben Lopatin
31db8017bc Remove unnecessary dict 2023-08-31 17:46:18 -04:00
Ben Lopatin
5d28665fbb Raise exception from original ValueError 2023-08-31 17:45:53 -04:00
Ben Lopatin
51771057f5 Make arguments keyword only
Applies where boolean defaults are included
2023-08-31 17:40:49 -04:00
Ben Lopatin
d7e249847a Replace shadowed builtin names 2023-08-31 17:37:51 -04:00
Ben Lopatin
b348fe13f3 Use stderr instead of print 2023-08-31 17:32:57 -04:00
Ben Lopatin
30f9b9b338 Inject fixture 2023-08-31 17:30:10 -04:00
Ben Lopatin
815bfd8af6 Remove encoding 2023-08-31 17:27:28 -04:00
Ben Lopatin
2be1a46c1d Format code 2023-08-31 17:24:12 -04:00
Ben Lopatin
2aac9a20be Use f-strings 2023-08-31 17:23:54 -04:00
Ben Lopatin
fe4f67c041 Use relative values 2023-08-31 17:22:02 -04:00
Ben Lopatin
6c1d9a9e1d Use data from fixture
Makes it explicit that this data is used here, plus makes the line
shorter.
2023-08-31 17:21:05 -04:00
Ben Lopatin
7ab58533b7 Remove unnecessary parens 2023-08-31 17:18:22 -04:00
Ben Lopatin
dc498679cc Remove explict object inheritance 2023-08-31 17:17:34 -04:00
Ben Lopatin
c49d29620d Remove unicode literal 2023-08-31 17:17:04 -04:00
Ben Lopatin
2a3036f039 Add trailing commas 2023-08-31 17:15:40 -04:00
Ben Lopatin
14b2f7a08d
Merge pull request #85 from pydiscourse/cleanup
Clean up tests, Python support
2023-08-31 16:17:55 -04:00
Ben Lopatin
5c4d0b3aed Update contributing about tests 2023-08-31 16:14:12 -04:00
Ben Lopatin
f20fc33349 Simplify mocking with default values mocker 2023-08-31 15:56:50 -04:00
Ben Lopatin
3d2a8def57 Convert remaining tests to pytest 2023-08-31 15:29:23 -04:00
Ben Lopatin
80c1a17e4b Convert topics test to pytest 2023-08-31 15:14:46 -04:00
Ben Lopatin
b5eda64a05 Convert additional tests to pytest 2023-08-31 15:06:02 -04:00
Ben Lopatin
87cf273cd6 Add coverage requirement for sso module 2023-08-31 13:58:03 -04:00
Ben Lopatin
c5466fd182 Rename fixtures 2023-08-31 13:53:34 -04:00