instance_id
stringlengths
10
65
repo
stringlengths
5
59
pr_number
int64
1
313k
task_type
stringclasses
1 value
base_commit
stringlengths
40
40
review_commit
stringlengths
40
40
title
stringlengths
2
282
body
stringlengths
7
3k
patch
stringlengths
202
204k
n_defects
int64
1
72
n_supported
int64
1
65
n_major
int64
0
32
defects
stringlengths
140
18.8k
certifier_count
int64
ProvableHQ__snarkOS__3820
ProvableHQ/snarkOS
3,820
defect
ebb491e79483ed1b08e1bd06827ae930d2d3c324
bb71592d45404b4e724c3aeb24f16b99cdbf84e9
[Feat] Persistent peer cache for clients
This PR introduces a simple, persistent peer cache, which saves high-quality peers on shutdown, and introduces them to the peer pool as candidate peers on startup. The scoring metrics are basically "free", as we already keep track of them. This was tested locally as follows: 1. 4 `--dev` validators with `--allow-ex...
diff --git a/Cargo.lock b/Cargo.lock index 4b7eee5c21..ac3d3c0ade 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4023,6 +4023,7 @@ dependencies = [ name = "snarkos-node-router" version = "4.1.0" dependencies = [ + "aleo-std", "anyhow", "async-trait", "colored 3.0.0", diff --git a/cli/src/commands/start.rs b/cli/...
4
3
1
[{"id": "G0", "claim": "The retention logic should be more robust: always try to keep MAX_PEERS_TO_SEND peers ordered by their score (failures being the most important) instead of filtering with made-up magic-number averages.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id...
null
ProvableHQ__snarkOS__3887
ProvableHQ/snarkOS
3,887
defect
b7401cef1c720908670474c4c22a6bc437a51dcf
de6456e4d78d30fcd187368d61bcbbd411b0ed19
[Feat] Introduce a persistent validator cache
This PR introduces a persistent validator cache, similarly to https://github.com/ProvableHQ/snarkOS/pull/3820. As a drive-by, there is also a reduction of `Arc`s within the `Gateway`, which will reduce the number of atomic operations on each clone and drop by 7. This also makes it harder to misuse the new `PeerPoolH...
diff --git a/node/bft/src/gateway.rs b/node/bft/src/gateway.rs index 07bb71c084..e107df7d27 100644 --- a/node/bft/src/gateway.rs +++ b/node/bft/src/gateway.rs @@ -24,6 +24,7 @@ use crate::{ helpers::{Cache, PrimarySender, Resolver, Storage, SyncSender, WorkerSender, assign_to_worker}, spawn_blocking, }; +use...
3
3
2
[{"id": "G0", "claim": "Add a warn log in load_cached_peers when reading the cached peers file fails, so failures such as filesystem permission errors are surfaced instead of silently yielding an empty peer list.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "...
null
ProvableHQ__snarkOS__3889
ProvableHQ/snarkOS
3,889
defect
83805f68a59640c0861218be289d2a77012165b9
18b523fd72e2171d6936b778a338b53291f28064
[Fix] Disallow multiple conns per validator
This PR targets https://github.com/ProvableHQ/snarkOS/issues/3888. It appears that we are already guarding the validators against connecting to those with an already-connected `Address` during the handshake (both sides, via `Gateway::verify_challenge_request`), but we're doing a bad job at it, as we're assuming that...
diff --git a/Cargo.lock b/Cargo.lock index 121400b12d..518d01c7db 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4073,6 +4073,7 @@ dependencies = [ "snarkos-node-router", "snarkos-node-router-messages", "snarkos-node-sync", + "snarkos-node-sync-communication-service", "snarkos-node-sync-locators", "snarkos-node...
3
2
1
[{"id": "G0", "claim": "Add a doc-comment to the Resolver noting that the reverse maps live effectively in the peer pool.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The rewritten is_connected_address may not be equivalent to the old logic: a p...
null
ProvableHQ__snarkOS__3942
ProvableHQ/snarkOS
3,942
defect
616daf827929eb3538d41fa24f5a96cafbfd19f5
cc0911ab2b40c4d3fa057ef7a1cec1186ffb2e72
[Feat] Tighten BootstrapClient validator sharing
This PR addresses https://github.com/ProvableHQ/snarkOS/issues/3926, though I'm not 100% sure that's the end of it. First, it verifies whether the connecting validator belongs to the committee at the handshake stage, potentially rejecting both `Router` (if the peer's node type is the validator) and `Gateway` connect...
diff --git a/node/src/bootstrap_client/handshake.rs b/node/src/bootstrap_client/handshake.rs index 71a5360935..288fdd0729 100644 --- a/node/src/bootstrap_client/handshake.rs +++ b/node/src/bootstrap_client/handshake.rs @@ -273,6 +273,20 @@ impl<N: Network> BootstrapClient<N> { send_msg!(msg, framed...
2
2
0
[{"id": "G0", "claim": "The pull request should also implement issue #3945 — allowing a hardcoded committee to be used in dev/test scenarios — to improve testing of the new committee-membership check.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The '...
null
ProvableHQ__snarkOS__4001
ProvableHQ/snarkOS
4,001
defect
7a3f235e382a159f760db83df90f9d06f3414a81
3539ec7e533608b2bb01a27fff1b8c8d7646eb86
Disable peer banning
## Motivation Closes https://github.com/ProvableHQ/snarkOS/issues/3999 A bunch of issues were found: https://github.com/ProvableHQ/snarkOS/issues/4000 - these are not a priority to fix at the moment. ## Test Plan - [x] Succesful prerelease tests pass
diff --git a/node/network/src/peering.rs b/node/network/src/peering.rs index dc4cae4663..cbe2c90c71 100644 --- a/node/network/src/peering.rs +++ b/node/network/src/peering.rs @@ -534,6 +534,11 @@ pub trait PeerPoolHandling<N: Network>: P2P { /// Temporarily IP-ban and disconnect from the peer with the given listen...
1
1
1
[{"id": "G0", "claim": "Commenting out the whole loop also disables removing unresponsive peers from the sync setup, and that removal might still be needed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
ProvableHQ__snarkOS__4018
ProvableHQ/snarkOS
4,018
defect
3f830442e1962f5840746958163c363cd8a8b936
4027d703fc00bf49bd9b7dfec30c97f94601168d
[Feature] Add `UnknownReason` for disconnects
To ensure forward compatibility with new disconnect reasons, such as the ones in #3902, this PR adds an `UnknownReason` that is the default `DisconnectReason` when encountering and unknown value. This is useful, as adding a new disconnect reason should not require a message version bump or a synchronous update. A...
diff --git a/node/bft/events/src/disconnect.rs b/node/bft/events/src/disconnect.rs index 720e394d62..66dd21268d 100644 --- a/node/bft/events/src/disconnect.rs +++ b/node/bft/events/src/disconnect.rs @@ -15,20 +15,34 @@ use super::*; -use std::io; +use tracing::warn; /// The reason behind the node disconnecting ...
5
5
1
[{"id": "G0", "claim": "The PeerRefresh display string should read \"periodic peer refresh\" instead of \"periodical peerrefresh\".", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The TooManyFailures display string should read \"too many failures...
null
Proxmark__proxmark3__209
Proxmark/proxmark3
209
defect
910ad5470d913baeaf9d882a22fc1b853318a5da
f9c1dcd9f6e68a8c07cffed697a9c4c8caed6015
Adds random nonce (r) option to `hf mf sim`.
This makes the PM3 generate pseudo-random nonces rather than sequential nonces, to make it act a bit more like a "real" MFC card. A reader may otherwise be able to detect the PM3 probing based on the predictable nonces and throw different authentication challenges (or refuse to authenticate at all). The code includ...
diff --git a/armsrc/iso14443a.c b/armsrc/iso14443a.c index 70dc54f17..07bbd37d3 100644 --- a/armsrc/iso14443a.c +++ b/armsrc/iso14443a.c @@ -2329,6 +2329,7 @@ typedef struct { * FLAG_7B_UID_IN_DATA - means that there is a 7-byte UID in the data-section, we're expected to use that * FLAG_10B_UID_IN_DATA - use 10-b...
1
1
1
[{"id": "G0", "claim": "Making the simulated nonce random on every authentication would break the standard reader attack, which relies on two ar/nr pairs for the same nt; only the Moebius attack needs a varying nonce.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Proxmark__proxmark3__243
Proxmark/proxmark3
243
defect
bd2797de1538c58232cffd8ec04a23fea23114f9
4cb4b588c276f8d3c3b4a18dc292d3bfd0e497b9
Deduplicate mfkey32 and mfkey64
- rename client/nonce2key.[ch] to mfkey.[ch] - leave only main() wrapper in tools/mfkey - support Moebius attack in mfkey32 - add mfkey32 and mfkey64 to .gitignore
diff --git a/.gitignore b/.gitignore index 4af73fb12..d08c67b86 100644 --- a/.gitignore +++ b/.gitignore @@ -14,14 +14,16 @@ *.dll *.moc.cpp *.z +version.c + *.exe -proxmark proxmark3 flasher -version.c lua luac fpga_compress +mfkey32 +mfkey64 fpga/* !fpga/tests @@ -34,5 +36,3 @@ fpga/* !fpga/xst_hf.scr ...
1
1
0
[{"id": "G0", "claim": "The pull request's rewrite of tools/mfkey/mfkey32.c duplicates the #include <stdio.h> line.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
Proxmark__proxmark3__343
Proxmark/proxmark3
343
defect
82e8eee62d2f3b3ca90ef155ed2c1e90c9093799
1ccba0b91b5c7c3c05127622c945c1c937bf6a3e
LF EM410x bruteforcing function by simulating EM410x tags (1 UID/s)
EM410x bruteforcing function by simulating EM410x tags (1 UID/s) - input text file with UID in HEX format, one per line
diff --git a/client/cmdlfem4x.c b/client/cmdlfem4x.c index e84cccf97..167042d75 100644 --- a/client/cmdlfem4x.c +++ b/client/cmdlfem4x.c @@ -23,6 +23,7 @@ #include "cmdmain.h" #include "lfdemod.h" #include "protocols.h" +#include "util_posix.h" uint64_t g_em410xId=0; @@ -82,12 +83,12 @@ void printEM410x(uint32_...
5
5
2
[{"id": "G0", "claim": "Load the whole UIDs file at once and close it before simulating, because having a file handler open during the whole process is an issue.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "There is no way to stop the execution, which ...
null
Proxmark__proxmark3__417
Proxmark/proxmark3
417
defect
77aecdd2865d4b2dcb7d231c125920820081a7b9
c30f7bf438c0bcbb25b3c0e798d546b72f34837f
proxmark3 refactoring command line parameters
small refactoring + added feature to wait com port on proxmark start
diff --git a/client/proxgui.cpp b/client/proxgui.cpp index e7fdae6c4..e899174c4 100644 --- a/client/proxgui.cpp +++ b/client/proxgui.cpp @@ -15,7 +15,7 @@ static ProxGuiQT *gui = NULL; static WorkerThread *main_loop_thread = NULL; -WorkerThread::WorkerThread(char *script_cmds_file, bool usb_present) : script_cmds_f...
2
2
1
[{"id": "G0", "claim": "Remove the new check that refuses to execute commands or script files in offline mode, because there are commands which can be executed in offline mode.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add a line to CHANGELOG.m...
null
Proxmark__proxmark3__446
Proxmark/proxmark3
446
defect
8dd0118673540f4f0ca39ae2332dcb3f4bc17c27
8abdfb8a72b77ea51951a3e62524e08499c0ed03
small fixes in ReaderIso14443a()
small fixes in ReaderIso14443a() (fixed error UID if the card not present) and added some messages
diff --git a/armsrc/iso14443a.c b/armsrc/iso14443a.c index 026b177a8..853eee808 100644 --- a/armsrc/iso14443a.c +++ b/armsrc/iso14443a.c @@ -1698,18 +1698,20 @@ int iso14443a_select_card(byte_t *uid_ptr, iso14a_card_select_t *p_hi14a_card, u int cascade_level = 0; int len; - // Broadcast for a card, WUPA (0x52) w...
1
1
1
[{"id": "G0", "claim": "In iso14443a_select_card the pull request moved the 'init card struct' block above the WUPA transmit and ATQA receive, so p_hi14a_card->atqa is memcpy'd from resp before resp has been filled by ReaderReceive — resp is not initialized yet at that point.", "category": "correctness", "verdict": "su...
null
Proxmark__proxmark3__465
Proxmark/proxmark3
465
defect
c3511781a16c6f3f24abe2ad9a08c0737b1dc3b0
8d004b5d55b6351f93dd33afffb3eda0dd33b6ad
Emv first part of commands
EMV commands proxmark3> hf emv help This help exec Executes EMV contactless transaction. pse Execute PPSE. It selects 2PAY.SYS.DDF01 or 1PAY.SYS.DDF01 directory. search Try to select all applets from applets list and print installed applets. select Select a...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 10e6b827a3..fabd04b0d4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ This project uses the changelog in accordance with [keepchangelog](http://keepac - Changed proxmark command line parameter `flush` to `-f` or `-flush` (Merlok) - Changed `hf 14a reader`...
12
10
3
[{"id": "G0", "claim": "The project should settle on one unified command-line parameter style instead of the three styles in use today, the new EMV commands adding to the mix with their '-'-prefixed options.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": ...
null
Proxmark__proxmark3__504
Proxmark/proxmark3
504
defect
2db66b01daff84d5a43aadda72fbb37b0b6f240c
f7ec230e985e85f75065e914fe3968b801b18666
EMV3. hf emv exec 2nd part
transactions MSD and M/Chip, qVSDC works the rest: SDA,DDA,CDA will be added in next PR's
diff --git a/client/emv/cmdemv.c b/client/emv/cmdemv.c index b188555e3d..268d9e630d 100644 --- a/client/emv/cmdemv.c +++ b/client/emv/cmdemv.c @@ -283,6 +283,10 @@ int UsageCmdHFEMVExec(void) { PrintAndLog(" -a : show APDU reqests and responses\n"); PrintAndLog(" -t : TLV decode results\n"); PrintAn...
1
1
0
[{"id": "G0", "claim": "The bit comparisons in emv_tag_dump_cid should be written consistently against the exact bits using the named EMVAC/EMVCID defines already used elsewhere in the code, instead of raw hex literals like 0xC0/0x08 and checks like '!= 0x00'.", "category": "maintainability", "verdict": "supported", "p...
null
Proxmark__proxmark3__562
Proxmark/proxmark3
562
defect
acaa71ffe3f2a88c8f523a55f9d1a84d6f728f60
efa7223996fe7e0bc6e52987949d862985665526
`hf mf sniff` nested works
`hf mf sniff` nested works. #557. hardnested not works and i have no idea how to implement it. it takes to much time to check and it needs to check command's CRC after authentication.
diff --git a/armsrc/mifarecmd.h b/armsrc/mifarecmd.h index 145e29898..5cd97d246 100644 --- a/armsrc/mifarecmd.h +++ b/armsrc/mifarecmd.h @@ -16,7 +16,7 @@ #include "proxmark3.h" #include "apps.h" #include "util.h" -#include "string.h" +#include <string.h> #include "iso14443crc.h" #include "iso14443a.h" d...
6
3
2
[{"id": "G0", "claim": "armsrc/mifarecmd.h should include the local \"string.h\" from armsrc/string.c instead of the system <string.h>, since the system libraries are not linked.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The code must not a...
null
Proxmark__proxmark3__704
Proxmark/proxmark3
704
defect
ae3340a0fb04bf8f8b8c874e0859d7d0886e2db1
4f053ca0ef56c56148bd8c528783784bb632ad86
Mfp read plain
`hf mfp` can `rdbl` and `rdsc` in plain mode plus: - aescmac128 - tests for aescmac TODO: - move from **polarssl** to **mbedtls** _I dont know the MAC calc procedure. so i leave `wrbl` command to time when it will be possible._
diff --git a/client/Makefile b/client/Makefile index 72d5080d5..1b211d4f1 100644 --- a/client/Makefile +++ b/client/Makefile @@ -107,6 +107,7 @@ CMDSRCS = $(SRC_SMARTCARD) \ crapto1/crypto1.c\ polarssl/des.c \ polarssl/aes.c\ + polarssl/aes_cmac128.c\ polarssl/bignum.c\ polarssl/rsa.c\ polars...
4
3
2
[{"id": "G0", "claim": "CmdHFMFPRdsc (and the Mifare Plus read/write commands generally) should call DropField() after authenticating and on its error exits, including the authentication-error return the comment anchors to.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {...
null
Proxmark__proxmark3__74
Proxmark/proxmark3
74
defect
7843130a589d29acc2f27a3a96c057e01f881025
df51693f95b76e288002456a0869ac7d7cae4c6d
new and fixed lf sim commands, lf demod refactoring, data gproxIIdemod
This is a lot of fixes/new lf features. the sim functions now work thanks to piwi's fpga fix.
diff --git a/armsrc/appmain.c b/armsrc/appmain.c index 3da34777e4..3e670f0be9 100644 --- a/armsrc/appmain.c +++ b/armsrc/appmain.c @@ -662,6 +662,15 @@ void UsbPacketReceived(uint8_t *packet, int len) case CMD_HID_SIM_TAG: CmdHIDsimTAG(c->arg[0], c->arg[1], 1); break; + case CMD_FSK_SIM_TAG: + CmdFSKsimTA...
7
4
1
[{"id": "G0", "claim": "The fc/8 comment still states the bit pattern is 11000000 although the change now emits extra 1-bits (11110000), so the comment should be updated.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The nested loops in fcAll cou...
null
Proxmark__proxmark3__745
Proxmark/proxmark3
745
defect
0d5545cee00f3caf7245bf8068c8546a693812be
1074497e012c861d6c282db1e4c3163f1e4979dc
PCF7931: improved read code and implemented a simple password bruteforce
I've tried to clean PCF7931 read code to make it easier for others to understand what's going on. I've tried to clean console output too: now there's an indicator showing how many blocks have been read (and ordered) and the blocks with unknown positions will be printed only at the end of the command execution without ...
diff --git a/armsrc/appmain.c b/armsrc/appmain.c index 35c9e5bfc..237d30086 100644 --- a/armsrc/appmain.c +++ b/armsrc/appmain.c @@ -1055,6 +1055,9 @@ void UsbPacketReceived(uint8_t *packet, int len) case CMD_PCF7931_WRITE: WritePCF7931(c->d.asBytes[0],c->d.asBytes[1],c->d.asBytes[2],c->d.asBytes[3],c->d.asBytes...
5
5
0
[{"id": "G0", "claim": "The IsBlock0PCF7931/IsBlock1PCF7931 result type should be `bool`, returning `true`/`false` instead of `1`/`0`, for readability.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new `print_block()` helper should be dropp...
null
Proxmark__proxmark3__796
Proxmark/proxmark3
796
defect
0b6efd01ec437f17bcd94475083108eacde144c7
f59d0f09a62858be4cd645ac7f093f94bafeebe9
chip manufacturer and type identification:
* add more manufacturers * refactor chipID decoding * move to separate file taginfo.[ch]
diff --git a/client/Makefile b/client/Makefile index aafbe3751..5fc1d226c 100644 --- a/client/Makefile +++ b/client/Makefile @@ -218,7 +218,8 @@ CMDSRCS = $(SRC_SMARTCARD) \ cmdscript.c\ pm3_binlib.c\ pm3_bitlib.c\ - protocols.c + protocols.c\ + taginfo.c cpu_arch = $(shell uname -m) ifneq ($(fin...
1
1
0
[{"id": "G0", "claim": "The static variable frameLength added in client/cmdhf14a.c is defined but never used, producing an -Wunused-variable compiler warning.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Proxmark__proxmark3__847
Proxmark/proxmark3
847
defect
817611f5651d4e99e13f091baf098d8385c69cb8
5c79a017e4f6403a73a909f1e43bc12bec5a9d16
Issue #843 - hf mf chk - t Doesnt save to emulator memory
Patched so that a single block key check will write to the emulator if found. Updated the display output for a single block check to use the same format as the full card check. Added a count and display the number of keys found and transferred. Ensured that a write to the dump file wont happen if a single block chec...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 037bab990..a4c9108ec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ This project uses the changelog in accordance with [keepchangelog](http://keepac - AC-Mode decoding for HitagS - Wrong UID at HitagS simulation - `hf 15 sim` now works as expected (piwi)...
4
3
2
[{"id": "G0", "claim": "The blockNo/4 sector mapping is only correct for Mifare Mini, 1k and 2k; Mifare 4k has 16-block sectors starting from block 128, so the SectorsCnt computed at line 1106 and the e_sector[blockNo/4] index at line 1265 are wrong for 4k cards.", "category": "correctness", "verdict": "supported", "pr...
null
Proxmark__proxmark3__900
Proxmark/proxmark3
900
defect
e73c9f1bd4f09495fc4a92607cc59943bcc56497
3772d1651af81dcb1df73417856002177a0dbabc
Nested loop fix
Fix for #899 . Ended up also fixing a string-too-small issue in CmdSriWrite().
diff --git a/armsrc/mifarecmd.c b/armsrc/mifarecmd.c index bed2f0764..af1dff02d 100644 --- a/armsrc/mifarecmd.c +++ b/armsrc/mifarecmd.c @@ -779,6 +779,7 @@ void MifareNested(uint32_t arg0, uint32_t arg1, uint32_t calibrate, uint8_t *dat uint32_t cuid, nt1, nt2, nttmp, nttest, ks1; uint8_t par[1]; uint32_t targ...
3
3
1
[{"id": "G0", "claim": "The keyBlock buffer that this pull request starts allocating with calloc in mfnested is never freed, leaking memory on every nested attack run.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The nested attack should print an ...
null
Psifi-Solutions__csrf-csrf__61
Psifi-Solutions/csrf-csrf
61
defect
5e5ba9bd9b7eafec4a941d63cc298bdcee0e2666
bb9bc423da114029a21f33c2c61d0f874327d7cb
Feat/hmac token signing
The eventual intention before the next major release is to completely revamp the documentation and the testing suite as well, as well as provide more and better detailed examples. For testing, instead of repeating the same suite for all of the different configurations, I'd like to start splitting out the tests and only...
diff --git a/README.md b/README.md index 8919743..ee9e9c6 100644 --- a/README.md +++ b/README.md @@ -188,6 +188,7 @@ When creating your doubleCsrf, you have a few options available for configuratio ```js const doubleCsrfUtilities = doubleCsrf({ getSecret: () => "Secret", // A function that optionally takes the req...
2
1
1
[{"id": "G0", "claim": "Using express session as the default for getSessionIdentifier may not be the best option, since it implicitly couples the stateless double-submit pattern to a stateful session mechanism; making getSessionIdentifier a required option with no default would be better.", "category": "design", "verdi...
null
PsycheFoundation__nousnet__116
PsycheFoundation/nousnet
116
defect
94dd80a546895fb67b9b3c9cc810058f98bb03b4
903116703033cf42c60080744f2c9b57c0fef2e9
fix: epoch rewards now being properly distributed
## Summary The devnet run was not distributing rewards properly to the participating nodes. This PR fixes that and also add a reproduction memnet test. ## Details Turns out the `epoch_state.clients` and `coordinator.client` were not guaranteed to be of the same ordering within the smart contract, so the distr...
diff --git a/architectures/decentralized/solana-coordinator/programs/solana-coordinator/src/instance_state.rs b/architectures/decentralized/solana-coordinator/programs/solana-coordinator/src/instance_state.rs index a69eae4c3..9bdf157fe 100644 --- a/architectures/decentralized/solana-coordinator/programs/solana-coordina...
1
1
0
[{"id": "G0", "claim": "The misspelled function name should be corrected from `process_coordiantor_set_future_epoch_rates` to `process_coordinator_set_future_epoch_rates` here and in its other uses.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
PsycheFoundation__nousnet__122
PsycheFoundation/nousnet
122
defect
cc1661ccc326ea384ac3ca2eca675aa856131745
22681e62f648f88d677f4d54eb4d5c5002fc55ce
Make `WAITING_FOR_MEMBERS_EXTRA_TIME` a config value
Closes #105.
diff --git a/architectures/centralized/testing/src/server.rs b/architectures/centralized/testing/src/server.rs index 2ec206208..c18ce63ec 100644 --- a/architectures/centralized/testing/src/server.rs +++ b/architectures/centralized/testing/src/server.rs @@ -81,6 +81,7 @@ impl CoordinatorServer { verificatio...
1
1
1
[{"id": "G0", "claim": "Adding `waiting_for_members_extra_time` to `CoordinatorConfig` may introduce a breaking change, so the author should check that the new test added by PR #124 still passes.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
PsycheFoundation__nousnet__140
PsycheFoundation/nousnet
140
defect
f06defbdf6880862c0a065cf0e38dbaf45a21e53
efc5c3484f20190f4804d1ccda30feb7896fb9b3
Share peer state for retry and model sharing logic
This PR introduces changes to the P2P model sharing logic by restructuring it around two new actor-style components: `PeerManagerHandle` and `RetriedDownloadsHandle`. Each spawns an internal actor that manages peer state or retried download tracking through dedicated channels. This approach removes any shared locking a...
diff --git a/architectures/decentralized/testing/tests/integration_tests.rs b/architectures/decentralized/testing/tests/integration_tests.rs index bb653f979..05ec5b5ca 100644 --- a/architectures/decentralized/testing/tests/integration_tests.rs +++ b/architectures/decentralized/testing/tests/integration_tests.rs @@ -244...
2
1
1
[{"id": "G0", "claim": "The Arc<Mutex<>> wrapper around the new blob_ticket local looks necessary only so the fn param_request_task can be used, and the reviewer questions whether that wrapping is needed at all.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim"...
null
PsycheFoundation__nousnet__359
PsycheFoundation/nousnet
359
defect
370eda2e2d3c64e067b80440e4f8d8d1dd3e625e
6d3da6f253e674cd6bfe83289e86d1cfa0a3aebf
fix(bug): distro results tagging
With the recent blobs tagging changes in the code, both computed and downloaded Distro results were being tagged with the step of that Distro result, which leaded to overwritting of the same tag, leaving the older blob untagged. In some particular situations, this subtle bug could end up making some client not being a...
diff --git a/architectures/decentralized/testing/tests/integration_tests.rs b/architectures/decentralized/testing/tests/integration_tests.rs index 1cb808910..5a3665878 100644 --- a/architectures/decentralized/testing/tests/integration_tests.rs +++ b/architectures/decentralized/testing/tests/integration_tests.rs @@ -418...
1
1
1
[{"id": "G0", "claim": "The result of store.tags().delete() is discarded with `let _`, so a failed tag deletion goes unnoticed, and the code still increments distro_results_deleted on the line below, which would cause a mismatch later; the reviewer asks to check the return value and at least log an error if the tag cou...
null
PsycheFoundation__nousnet__431
PsycheFoundation/nousnet
431
defect
3673ac8b5ed7871a83d7a4158e9d7a0740c396a7
885533eec4f131eee830dce6c5641f586a3a97fc
Rust Bridge For Psyche Inference Node
## Description This PR adds the following files to continue the Psyche Inference Node implementation: - `python/python/psyche/rust_bridge.py` - a Python bridge wrapper to allow PyO3 to call the UpdatableLLMEngine methods from Rust calls. This file exposes the following methods: - `create_engine` - creates an Upd...
diff --git a/python/extension-impl/Cargo.toml b/python/extension-impl/Cargo.toml index b4efda807..6c463a15f 100644 --- a/python/extension-impl/Cargo.toml +++ b/python/extension-impl/Cargo.toml @@ -18,3 +18,4 @@ tracing.workspace = true [features] parallelism = ["psyche-modeling/parallelism"] +vllm-tests = [] diff -...
16
12
3
[{"id": "G0", "claim": "Nothing explicitly handles the underlying vLLM process dying (bug, OOM, etc.) while the Psyche engine thinks it is running.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Instrumentation should be thought about and baked in f...
null
Ptt-official-app__pttbbs-backend__299
Ptt-official-app/pttbbs-backend
299
defect
96a4d6c9464dd441d758e72e81bf7f09c85fe482
02fbe811dae44946e1d1802620d071c45c9460b0
chore: graceful shutdown in queue
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com> ## 這個 PR 的目的 / Purpose of this PR 1. handle all jobs in the queue before shutdown the service using the library [golang-queue/queue](https://github.com/golang-queue/queue) 2. increase the default size of the queue to `4096` ## 相關的 issue / Related Issues
diff --git a/.golangci.yaml b/.golangci.yaml index 2414ca3c..b4119752 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -23,6 +23,8 @@ linters: - goimports - revive - nolintlint + - unused + - typecheck issues: exclude: # we use underscores only for _postfix diff --git a/docs/config/00-c...
2
2
1
[{"id": "G0", "claim": "queue.UnsetIsTest should call Close() so the queue is shut down and memory is cleaned between tests (otherwise the tests may fail when there are more of them).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "json.Marshal/Unm...
null
Ptt-official-app__pttbbs-backend__304
Ptt-official-app/pttbbs-backend
304
defect
35673583eaa0fdb92a5eb3d9370e6f36ad099f65
e0b6b49283d940c3a9a3d762eaa7dc754ab0c0b6
refactor(queue): add WORKER_NUM and QUEUE_SIZE
## 這個 PR 的目的 / Purpose of this PR 1. Add `WORKER_NUM` and rename `N_COMMENT_QUEUE` to `QUEUE_SIZE` 2. refactor all files. (rename or delete unused functionion) ## 相關的 issue / Related Issues
diff --git a/docs/config/00-config.template.ini b/docs/config/00-config.template.ini index ef8b2676..818dd39c 100644 --- a/docs/config/00-config.template.ini +++ b/docs/config/00-config.template.ini @@ -80,7 +80,8 @@ REDIS_HOST = localhost:6379 REDIS_TIMEOUT_MILLI_TS = 10 [go-openbbsmiddleware:queue] -N_COMMENT_QUE...
2
2
1
[{"id": "G0", "claim": "Restore the original queue/config.go and queue/config_util.go setup (configurable globals initialized via InitConfig, following the types/ package pattern) instead of reading QUEUE_SIZE/WORKER_NUM inline in queue/queue.go.", "category": "design", "verdict": "supported", "priority": "P2", "scope"...
null
Ptt-official-app__pttbbs-backend__311
Ptt-official-app/pttbbs-backend
311
defect
ca426949a4e7b0f96c396af4656e02a8509bad20
4911956782b433c060de5a3d95ed3663fbdf456e
implement record user login
1. create struct LoginLog 2. using defer to print loginlog ## 這個 PR 的目的 / Purpose of this PR #262 ## 相關的 issue / Related Issues none
diff --git a/api/login.go b/api/login.go index 2aea7f03..3bd3c7f1 100644 --- a/api/login.go +++ b/api/login.go @@ -1,12 +1,15 @@ package api import ( + "fmt" + "github.com/Ptt-official-app/go-openbbsmiddleware/schema" "github.com/Ptt-official-app/go-openbbsmiddleware/types" "github.com/Ptt-official-app/go-ope...
1
1
1
[{"id": "G0", "claim": "LoginLog should implement the fmt.Stringer method String() and be logged via logrus.Infof(\"%v\", loginLog) instead of defining a method named Stringer() and calling loginLog.Stringer() explicitly.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Ptt-official-app__pttbbs-backend__333
Ptt-official-app/pttbbs-backend
333
defect
2fbb088e921ccda4d6488f05a03f23f1ae8e1721
1314ddab9bbd942a00c6d429017352a158baecf9
calculate user visit count and save to redis
## 這個 PR 的目的 / Purpose of this PR 1. create collection user_visit 2. save user visit record when api check login 3. add cron job: calculate user visit each 10 mins and set to redis ## 相關的 issue / Related Issues #263 TODO: 1. get user visit count from go-pttbbs 2. provide api return go-pttbbs + go-openbbs...
diff --git a/api/api_login_required_path.go b/api/api_login_required_path.go index 3dfd83dd..1a1af19e 100644 --- a/api/api_login_required_path.go +++ b/api/api_login_required_path.go @@ -3,6 +3,10 @@ package api import ( "strings" + "github.com/Ptt-official-app/go-openbbsmiddleware/types" + + "github.com/Ptt-offic...
2
2
0
[{"id": "G0", "claim": "Move the hard-coded recent-window duration into a named constant `TIME_CALC_ALL_USER_VISIT_COUNTS = -10 * time.Minute` in schema/const.go instead of the inline `-10 * time.Minute` in CalculateAllUserVisitCounts.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": ...
null
Ptt-official-app__pttbbs-backend__334
Ptt-official-app/pttbbs-backend
334
defect
474c2c5c3b5385d52fd910545bc24f0aa153b404
61ed16772559315b3ecdb4758a320a921965cd0a
Issue 263
## 這個 PR 的目的 / Purpose of this PR API: get user visit count ## 相關的 issue / Related Issues #263
diff --git a/api/get_user_visit_count.go b/api/get_user_visit_count.go new file mode 100644 index 00000000..7930ade4 --- /dev/null +++ b/api/get_user_visit_count.go @@ -0,0 +1,33 @@ +package api + +import ( + "github.com/Ptt-official-app/go-openbbsmiddleware/schema" + "github.com/Ptt-official-app/go-openbbsmiddleware/u...
1
1
0
[{"id": "G0", "claim": "GetUserVisitCount should return `&GetUserVisitCountResult{Total: ...}` - a pointer to the result struct built with the named field - rather than a struct value, since a pointer is better for non-primitive types.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduc...
null
PuerkitoBio__goquery__229
PuerkitoBio/goquery
229
defect
bc4e06eb0792d1a14661d19dd7822163c25bb6bd
499bd47957de2a2ecea71e376a0ac5e846a2bd9f
Fixes #226 - Added the AddBack, AddBackFiltered, and AddBackMatcher m…
Fixes #226 - Added the AddBack, AddBackFiltered, and AddBackMatcher methods. Changed AndSelf to simply be an alias for AddBack, and added a deprecation notice to AddBack (as with https://api.jquery.com/andself/)
diff --git a/expand.go b/expand.go index f0c6c86d..2f8c2db2 100644 --- a/expand.go +++ b/expand.go @@ -38,9 +38,33 @@ func (s *Selection) AddNodes(nodes ...*html.Node) *Selection { return pushStack(s, appendWithoutDuplicates(s.Nodes, nodes, nil)) } +// Deprecated: This function has been deprecated and is now an al...
1
1
0
[{"id": "G0", "claim": "Move the 'Deprecated:' deprecation warning line to the end of the AndSelf doc comment.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
PuerkitoBio__goquery__348
PuerkitoBio/goquery
348
defect
c942deb265ea836470983fdf25e1858304bb6896
d89086ead1a84b8176c983497d9add8a97759685
Send context to parseHtml
I stumbled upon the open bug in #178 and the open pull request to fix it in #235. The original pull request seems to have been abandoned by its original creator, however I would like to have the original bug fixed. This pr is a fork of the original one by @davidjwilkins and I have tried to address all the issues fr...
diff --git a/manipulation.go b/manipulation.go index b7f2fe56..407a9635 100644 --- a/manipulation.go +++ b/manipulation.go @@ -39,8 +39,14 @@ func (s *Selection) AfterSelection(sel *Selection) *Selection { // AfterHtml parses the html and inserts it after the set of matched elements. // // This follows the same rule...
4
4
3
[{"id": "G0", "claim": "The new test helper loadString should take t *testing.T as its first argument, for consistency with the other test helpers.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "PrependHtml and ReplaceWithHtml would insert multi...
null
PufferAI__PufferLib__190
PufferAI/PufferLib
190
defect
00d05f7eb1770c11a451391e36761c586a5fe5fb
a58310e7e31074a53e87ad72fc2139b89017a831
incomplete - breakout c bindings
can be merged: fixed dual loading when locally compiled binary is executed (in pong as well) needs testing: breakout is implemented with new bindings but there may be env or logging errors because it does not seem to train demo.py --mode eval displays green background and no sprites; despite this, ./breakout does f...
diff --git a/config/ocean/breakout.ini b/config/ocean/breakout.ini index bde999ee2f..eea2e60182 100644 --- a/config/ocean/breakout.ini +++ b/config/ocean/breakout.ini @@ -3,40 +3,33 @@ package = ocean env_name = puffer_breakout policy_name = Policy rnn_name = Recurrent -vec = multiprocessing +; vec = multiprocessing...
2
2
1
[{"id": "G0", "claim": "The episode log cannot be incremented in place (env->log[LOG_RETURN] += gained_points in destroy_brick) because it can get read halfway through an episode; return/length should instead be set from score/tick at the end of the game.", "category": "correctness", "verdict": "supported", "priority":...
null
PyBites-Open-Source__pybitesbooks__37
PyBites-Open-Source/pybitesbooks
37
defect
716b703a6daaaa497f8df75d5f641d0d442e7625
86d5348fb1cf781267565a106cf1fec052dd7654
Test favorites
- Reapplied new tests on top of latest commit - I've left in the two tests for the Favorites div, we can remove them later if we decide that div is redundant on the user page - New test added for starred books on the user page. @bbelderbos re the **parametrize** for test_user_profile_page_stars - I noticed there a...
diff --git a/tests/conftest.py b/tests/conftest.py index 67d1e7f..6c9a09e 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -61,6 +61,36 @@ def books(django_db_setup, django_db_blocker): return Book.objects.bulk_create(books) +@pytest.fixture(scope="module") +def two_books(django_db_setup, django_d...
2
2
0
[{"id": "G0", "claim": "Remove the favorites div from the user page template (and the corresponding favorites list variable in the view) because it clutters the page and is redundant after the new ordering change.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "...
null
PyCQA__autoflake__150
PyCQA/autoflake
150
defect
0e93b63df981cb331870657be89a5288330f30aa
231d968690c1a0e41c42df1954d6700a11699614
add config-file option
refer to [149](https://github.com/PyCQA/autoflake/issues/149) issue
diff --git a/README.md b/README.md index dd40409..279d7a7 100644 --- a/README.md +++ b/README.md @@ -121,6 +121,8 @@ options: -v, --verbose print more verbose logs (you can repeat `-v` to make it more verbose) --stdin-display-name STDIN_DISPLAY_NAME the name used when processing i...
3
2
0
[{"id": "G0", "claim": "Rename the new flag from --config-file to --config.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Add tests covering the new config-file option.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introdu...
null
PyCQA__autoflake__152
PyCQA/autoflake
152
defect
1b67eb38f7b394c5c224f76048a676046660b530
b997704495c6adcdc2565f39f5b7f4757d6b2edb
Add --check-diff flag which combines check and diff
This change adds a new flag which makes it possible to get the power of --check and its exit codes but also a diff output to stdout. This was requested in an issue and seems like a good addition. Added new keyword to keep backwards compatibility. #110
diff --git a/autoflake.py b/autoflake.py index e7d8478..5824b76 100755 --- a/autoflake.py +++ b/autoflake.py @@ -940,6 +940,14 @@ def _fix_file( f"{filename}: Unused imports/variables detected{os.linesep}", ) return 1 + if args["check_diff"]: + diff = get_dif...
1
1
0
[{"id": "G0", "claim": "The manual check that both --check and --check-diff were passed should be replaced with an argparse mutually exclusive group.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
PyCQA__autoflake__177
PyCQA/autoflake
177
defect
3d9a7ab2b25bb7160130b5a80d81652a34d112e5
23114786025a1273e000af24b3ec72a2acd16b06
fix: Ignore pass multiple lines after docstring with flag
Fixes #176 * Updates `useless_pass_line_numbers` to ignore `pass` after a docstring when `--ignore-pass-after-docstring` is used, even if there are empty lines between the docstring and the pass. Example where pass will be ignored by `--ignore-pass-after-docstring` when it was not previously: ```py class MyE...
diff --git a/autoflake.py b/autoflake.py index 674c1c4..d10dbf8 100755 --- a/autoflake.py +++ b/autoflake.py @@ -753,7 +753,7 @@ def useless_pass_line_numbers( previous_token_type = None last_pass_row = None last_pass_indentation = None - previous_line = "" + previous_lines = collections.deque(("",...
1
1
0
[{"id": "G0", "claim": "The maintainer asks whether the change should support any number of blank lines between the docstring and `pass` instead of just one.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
PyCQA__autoflake__18
PyCQA/autoflake
18
defect
d756487f967180c1ae34d51e8ea41cd53d0dcaa7
9a2ceec5785ada05688ca9f3a688403b5e1f19db
Add option to expand single star import
This patch add new feature to automatically expand a star (wildcard) import to specify all names that used inside the code. A sample code like this ```python from math import * sin(1) cos(0) ``` will be changed into ```python from math import cos, sin sin(1) cos(0) ``` Note that there are stil...
diff --git a/README.rst b/README.rst index 7516bd4..4ecd99a 100644 --- a/README.rst +++ b/README.rst @@ -91,11 +91,11 @@ To remove unused variables, use the ``--remove-unused-variables`` option. Below is the full listing of options:: usage: autoflake [-h] [-i] [-r] [--imports IMPORTS] - [--r...
3
3
0
[{"id": "G0", "claim": "The new option name `--expand-single-star-import` is unclear and should be renamed to better match the other options (suggested: the shorter `--expand-star-import`, the plural `--expand-star-imports`, or `--expand-lone-star-imports`).", "category": "design", "verdict": "supported", "priority": "...
null
PyCQA__autoflake__285
PyCQA/autoflake
285
defect
edc187ed7f7e14433fce87b457e883ba3a98d1e8
786d13b14f500a41981bb2fd74f777357121d97a
Add support for passing the .toml config in the arguments
Closes #283 Add support for passing the .toml config file in the `--config` argument. `autoflake --config=test.toml file.py`
diff --git a/autoflake.py b/autoflake.py index 6bd31e9..b5cc160 100755 --- a/autoflake.py +++ b/autoflake.py @@ -1252,7 +1252,11 @@ def merge_configuration_file( if "config_file" in flag_args: config_file = pathlib.Path(flag_args["config_file"]).resolve() - config = process_config_file(str(config...
1
1
0
[{"id": "G0", "claim": "Detect the TOML config file with `config_file.suffix == '.toml'` instead of `str(config_file).endswith('.toml')`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
PyCQA__autoflake__291
PyCQA/autoflake
291
defect
23cfe6fb386a3ac3c092262df09b20c388228123
3f2ec1123a2e3e5ec870b03cd85f5304234f292a
Add support of ignore comment on the top of the file
Autoflake can now ignore files with the `# autoflake: ignore` comment on top. Closes #97
diff --git a/README.md b/README.md index c3fc86b..a0969aa 100644 --- a/README.md +++ b/README.md @@ -127,6 +127,11 @@ options: -s, --stdout print changed text to stdout. defaults to true when formatting stdin, or to false otherwise ``` +To ignore the file, you can also add a comment to the top of the fil...
2
2
2
[{"id": "G0", "claim": "Use `skip_file` instead of `ignore` for the magic comment, because `ignore` is vague about whether it ignores the next line or the whole file.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Make sure the skip-file detection also w...
null
PyCQA__autoflake__42
PyCQA/autoflake
42
defect
83258a0b9005a6c70465562deb53d2ea34c4f242
9cd64e7ee9c37a4e4309dba1f11f2e7055fd387b
autoflake.py: Add --ignore-init-module-imports
When used, this new CLI argument will cause autoflake to ignore unused imports when checking any `__init__.py` files. New tests have also been added to accompany this new feature. Closes https://github.com/myint/autoflake/issues/35
diff --git a/autoflake.py b/autoflake.py index 77a5916..1a28bbb 100755 --- a/autoflake.py +++ b/autoflake.py @@ -331,7 +331,8 @@ def filter_code(source, additional_imports=None, expand_star_imports=False, remove_all_unused_imports=False, remove_duplicate_keys=False, - ...
9
9
1
[{"id": "G0", "claim": "In the fix_code call in autoflake.py, move the trailing `))))` to the next line and add a trailing comma on the last argument line, so each future argument addition changes one line instead of two.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"},...
null
PyCQA__autoflake__79
PyCQA/autoflake
79
defect
d43d8a770c0f9ef2f68b368670ab882f6ca6ea03
52b7aa881967358dc14229af7c5ba5b142455441
load config from pyproject.toml or setup.cfg
Simple implementation for the currently missing functionality to load configuration from certain files: - [x] pyproject.toml - [x] setup.cfg (closes #68) to do: - [x] pytests
diff --git a/README.rst b/README.rst index 3bf2eb9..19696fb 100644 --- a/README.rst +++ b/README.rst @@ -128,6 +128,22 @@ Below is the full listing of options:: --version show program's version number and exit +Configururation +=============== +Configure default arguments using a ``pyproject.toml...
3
3
1
[{"id": "G0", "claim": "In process_setup_cfg, the membership test on reader.sections() should be replaced with the idiomatic reader.has_section(\"autoflake\").", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Supporting only snake_case keys in the...
null
PyCQA__autoflake__92
PyCQA/autoflake
92
defect
01769b06713e1e895890501f3ed40a55029e392c
b754f6b6882e89af67d484ba19352c943a997fee
added option to remove RHS also when removing unused variables
close #91
diff --git a/AUTHORS.rst b/AUTHORS.rst index 051aa61..73e5153 100644 --- a/AUTHORS.rst +++ b/AUTHORS.rst @@ -14,3 +14,4 @@ Contributors - James Curtin (https://github.com/jamescurtin) - Sargun Dhillon (https://github.com/sargun) - Anton Ogorodnikov (https://github.com/arxell) +- das-intensity (https://github.com/das...
1
1
1
[{"id": "G0", "claim": "Add `remove-rhs-for-unused-variables` to the set of validated boolean keys in `merge_configuration_file` so the new option is also accepted from config files.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
PyCQA__flake8__1312
PyCQA/flake8
1,312
defect
9815f49cc48dec39977ca4954beb833ba489f969
b3fb6b73eaf39ec7ef8712733dd81cfdfe19444d
Add --extend-select command line argument
Implement `--extend-select` command line argument following what was done for `--extend-ignore` in !233 (see placeholder issue #1274). This option can be used to selectively add individual codes without overriding the default list entirely. Addresses the remaining item of issue #1061.
diff --git a/docs/source/user/invocation.rst b/docs/source/user/invocation.rst index cddfab48d..170a62aec 100644 --- a/docs/source/user/invocation.rst +++ b/docs/source/user/invocation.rst @@ -115,6 +115,10 @@ And you should see something like: run. (Default: 79) --select=errors ...
2
2
1
[{"id": "G0", "claim": "The docs advertise --extend-select with `.. versionadded:: 3.9.0`, but the next flake8 version will be 4.0.0, so the documented version is wrong.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The --extend-select help strin...
null
PyCQA__flake8__1329
PyCQA/flake8
1,329
defect
28aa67314e2c451002d6362c54aed6e08f4f9f19
5af9ed4e948ecd056aa34af266695bc23759483a
Automatically create output directories
If the output file is on a non-existing path, we should create the missing components, just like is done in the handling of `--junit-xml=` in `pytest`.
diff --git a/src/flake8/formatting/base.py b/src/flake8/formatting/base.py index e362e6502..286a54da3 100644 --- a/src/flake8/formatting/base.py +++ b/src/flake8/formatting/base.py @@ -1,5 +1,6 @@ """The base class and interface for all formatting plugins.""" import argparse +import os from typing import IO from ty...
2
2
2
[{"id": "G0", "claim": "The check-then-create pattern (isdir test followed by os.makedirs) is a TOCTOU race; the if statement should be dropped and os.makedirs(..., exist_ok=True) used unconditionally instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "c...
null
PyCQA__flake8__1382
PyCQA/flake8
1,382
defect
62cf28bf091826008796105f93231438af93a534
7a353d2e23ed336cea41a05a03732a35e45801c2
write directly to sys.stdout.buffer to avoid windows io encoding
resolves #1381
diff --git a/src/flake8/formatting/base.py b/src/flake8/formatting/base.py index 806d9b85..7919f92e 100644 --- a/src/flake8/formatting/base.py +++ b/src/flake8/formatting/base.py @@ -1,6 +1,7 @@ """The base class and interface for all formatting plugins.""" import argparse import os +import sys from typing import I...
2
1
0
[{"id": "G0", "claim": "This test should be renamed too (its name no longer matches what it now does).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Flake8 throws AttributeError on the sys.stdout.buffer access this pull request added to base.py...
null
PyCQA__flake8__1426
PyCQA/flake8
1,426
defect
ecee230c6f1e11444f2738ced522526c3112738c
cb47ef8ffc0115d7aceb70c0086a46f77047c051
Remove usage of self.manager.map() in load_plugins()
~Changes the inner function `load_plugin()` to return `plugin`, otherwise the outer `load_plugins()` returns a list of `None`s, which (I'm guessing) is not the intention~ Changes the implementation of `load_plugins()` to not use `self.manager.map` because we were constructing a list of `None`s
diff --git a/src/flake8/plugins/manager.py b/src/flake8/plugins/manager.py index 6f32e1f11..946115ac9 100644 --- a/src/flake8/plugins/manager.py +++ b/src/flake8/plugins/manager.py @@ -417,7 +417,8 @@ def load_plugins(self): def load_plugin(plugin): """Call each plugin's load_plugin method.""" -...
1
1
0
[{"id": "G0", "claim": "It would be better to unwind the .map function on the plugin manager and discard the load_plugin return values instead of forwarding them along, since .map is tricky to type and nothing uses the returned plugins list.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pr...
null
PyCQA__flake8__1498
PyCQA/flake8
1,498
defect
f7a86ca04b57b8a3bb71549d41ffc560ad5ce482
c980a3a1df51119b4c5fce4da3565c0b2fd1f6d5
return an error if the explicitly specified config is missing
fixes #1497
diff --git a/src/flake8/main/application.py b/src/flake8/main/application.py index bf43826e2..ee46f6ac3 100644 --- a/src/flake8/main/application.py +++ b/src/flake8/main/application.py @@ -115,8 +115,7 @@ def parse_preliminary_options( def exit_code(self) -> int: """Return the program exit code.""" - ...
5
3
1
[{"id": "G0", "claim": "The changes to exit_code and run in application.py — replacing the assertions that options is not None with truthiness checks — are unrelated to the config-file feature, so please revert them.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id...
null
PyCQA__flake8__1624
PyCQA/flake8
1,624
defect
e406f30e234d788f49d09ef2d683c915a6905044
140854367dcb8bf1b8bb38694653cc7f8be98354
Display list of available formatters with help for `--format`
Resolves #223.
diff --git a/src/flake8/formatting/default.py b/src/flake8/formatting/default.py index f43dc4260..95b17c6be 100644 --- a/src/flake8/formatting/default.py +++ b/src/flake8/formatting/default.py @@ -19,6 +19,15 @@ } COLORS_OFF = {k: "" for k in COLORS} +# Mapping key => Violation error attr +MAPPING_KEYS = { + "co...
5
4
1
[{"id": "G0", "claim": "The dict-comprehension over MAPPING_KEYS in SimpleFormatter.format is over-DRY for little benefit and turns off the type checker for these keys.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The DEFAULT_REPORTER constant in repor...
null
PyCQA__flake8__1713
PyCQA/flake8
1,713
defect
fbb33430e6e0b326744e2e703db77c4773de93de
445bad26d9ec7563e8951c9af9a5bbc01c47162d
Adds error when incorrect error codes are parsed from config file
This PR resolves #1689 by raising a warning when parsing a configuration file results in values for the --ignore or --extend-ignore options that cannot be valid error codes, i.e. they are not in a 'A123' format.
diff --git a/src/flake8/options/aggregator.py b/src/flake8/options/aggregator.py index af8e7449..dbf00ecc 100644 --- a/src/flake8/options/aggregator.py +++ b/src/flake8/options/aggregator.py @@ -8,9 +8,11 @@ import argparse import configparser import logging +import re from typing import Sequence from flake8.opt...
6
6
4
[{"id": "G0", "claim": "The new warning should not show the config filename (the values may come from plugins rather than those files) and therefore should not import the private _find_config_file.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ignor...
null
PyCQA__flake8__1732
PyCQA/flake8
1,732
defect
ff8988bd586a4af192390e4316772333f34ba1e5
badc5ba04ca040e1f7b10510066b0ccef3a46eb2
Raise a exception if append-config files does not exist
This PR resolves https://github.com/PyCQA/flake8/issues/1729 by raising a exception if append-config files does not exist
diff --git a/src/flake8/options/config.py b/src/flake8/options/config.py index e1587378..5dab6b14 100644 --- a/src/flake8/options/config.py +++ b/src/flake8/options/config.py @@ -86,7 +86,10 @@ def load_config( # TODO: remove this and replace it with configuration modifying plugins # read the additional confi...
1
1
0
[{"id": "G0", "claim": "The new test for a missing append config should be placed next to the other test which checks the same thing.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
PyCQA__flake8__1949
PyCQA/flake8
1,949
defect
2a811cc4d2aaed3e8eb5a9f04f08ccc8af7c0791
d19241bbb390bd7d8bcc2c696445855f8a279b68
Handle escaped braces in f-strings
To use a curly brace in an f-string, you must escape it. For example: ```python >>> k = 1 >>> f'{{{k}' '{1' ``` Saving this as a script and running the 'tokenize' module highlights something odd around the counting of tokens: ```console $ python -m tokenize test.py 0,0-0,0: ENCODING 'utf...
diff --git a/src/flake8/processor.py b/src/flake8/processor.py index 21a25e0f..29c5929c 100644 --- a/src/flake8/processor.py +++ b/src/flake8/processor.py @@ -203,9 +203,17 @@ def build_logical_line_tokens(self) -> _Logical: # noqa: C901 if token_type == tokenize.STRING: text = mutate_str...
2
2
0
[{"id": "G0", "claim": "The brace-offset handling could be simpler: compute brace_offset = text.count('{') + text.count('}') unconditionally instead of guarding and initialising fstring_offset to 0.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ...
null
PyCQA__flake8__36
PyCQA/flake8
36
defect
88caf5ac484f5c09aedc02167c59c66ff0af0068
16ca17388ab4a8136617390329328e1a13219f84
Fixes handling of empty lists by Application
`Application.parse_preliminary_options_and_args` was previously, against expectations, treating empty lists passed as the `argv` argument the same way it treated `None`s. This has been addressed and the correct behavior tested for in a unit test of the `Application` class. See issue #518 for details.
diff --git a/src/flake8/main/application.py b/src/flake8/main/application.py index 6e8ddaff..c7859b9a 100644 --- a/src/flake8/main/application.py +++ b/src/flake8/main/application.py @@ -122,7 +122,7 @@ def parse_preliminary_options_and_args(self, argv=None): # do not need to worry and we can continue. If it i...
3
1
0
[{"id": "G0", "claim": "The empty-argv test should assert that prelim_args equals [] rather than only that it differs from irrelevant_args, so the exact values are checked.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A positive test should be added t...
null
PyCQA__isort__1626
PyCQA/isort
1,626
defect
6e5414cb72ee822d351968626bb9a37e10425857
07768d11bbd21ed7760622a7f4644ed0488efa79
Make force_sort_within_sections respect case
force_sort_within_sections only looked at the order_by_type option to determine how to order imports with different case in a section. Whether you order import names by type or not also affected the order of the modules. When force_sort_within_sections is used: * ignore case on the module name if case_sensitive ...
diff --git a/isort/output.py b/isort/output.py index e0855de67..2e6e6c1eb 100644 --- a/isort/output.py +++ b/isort/output.py @@ -96,6 +96,7 @@ def sorted_imports( new_section_output, key=partial( sorting.section_key, + case_sensitive=config.case_...
2
2
1
[{"id": "G0", "claim": "Changing the default styling with only a single option set would break isort's formatting guarantee, so the change should be restructured to not affect the existing test cases, possibly behind its own flag, with a revisit in isort 6.0.0.", "category": "design", "verdict": "supported", "priority"...
null
PyCQA__isort__1662
PyCQA/isort
1,662
defect
aa51349a19f50752a631fe8d4daafec891a31432
146dfe6e9468a784c1177ae7fdce3235c8805d4f
Issue #1661: Add wemake profile
cc @sobolevn An initial proposal for a wemake isort profile. Closes #1661
diff --git a/CHANGELOG.md b/CHANGELOG.md index 483a13928..710eccb1f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ Find out more about isort's release policy [here](https://pycqa.github.io/isort/ - Fixed #1631: as import comments can in some cases be duplicated. - Implemented #1648: Export MyPY type...
1
1
0
[{"id": "G0", "claim": "The third test's embedded snippet should end with `class _ClassVisitor(ast.NodeVisitor): ...` instead of a bare class statement, so the snippet is valid code.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
PyCQA__isort__1965
PyCQA/isort
1,965
defect
cc04d6adca6c3ff8dee022bcf696f5307287b2c1
7d96e601e9124a18b57df266f46d1ad049e6a533
Fix #1964: `lines_before_import` sometimes ignored
The config option `lines_before_import` was ignored if the file only contained imports + optionally a leading comment. Fixes #1964
diff --git a/isort/core.py b/isort/core.py index bff28458e..708a1c010 100644 --- a/isort/core.py +++ b/isort/core.py @@ -363,7 +363,7 @@ def process( if not_imports: if not was_in_quote and config.lines_before_imports > -1: - if line.strip() == "": + if line.strip()...
1
1
0
[{"id": "G0", "claim": "The `has_body` parameter of the new parametrized test `test_custom_lines_before_import_section` should carry a `bool` type annotation (a typing nit in the tests to fix before merge).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
PyCQA__isort__2191
PyCQA/isort
2,191
defect
14d0b366bc4a77cb33af6aaac7ad9874aebacfa2
9b15245e2e320b61d55659d54c0bf386cdb05b65
Added a fix for normalizing imports from more than one level of parent modules (issue/2152)
Closes #2152
diff --git a/isort/identify.py b/isort/identify.py index e45fcb391..8af859f52 100644 --- a/isort/identify.py +++ b/isort/identify.py @@ -5,7 +5,7 @@ from pathlib import Path from typing import Iterator, NamedTuple, Optional, TextIO, Tuple -from isort.parse import _normalize_line, _strip_syntax, skip_line +from isor...
1
1
0
[{"id": "G0", "claim": "The private helper `_strip_syntax` should be renamed to `strip_syntax` for consistency with the normalization the pull request already made, as suggested in the review.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
PyCQA__isort__2334
PyCQA/isort
2,334
defect
26cf27dcef72b2e2a99569b95462bd58bf1b7880
677d3683f086555fd7055d4d092d5143fc3c0996
Updates round 3
Final round of updates from my fork. After this I think all dependencies should be close to their latest release, in my fork I added `dependabot` after these changes to keep things up to date. Context, other PRs were from 26cf27dcef72b2e2a99569b95462bd58bf1b7880, 78c30dc4ffee4c59fc8563ca1eab52624f57de60 and comme...
diff --git a/isort/api.py b/isort/api.py index 61c9b5e5a..b7e0fe64a 100644 --- a/isort/api.py +++ b/isort/api.py @@ -193,7 +193,7 @@ def sort_stream( if config.atomic: try: file_content = input_stream.read() - compile(file_content, content_source, "exec", 0, 1) + compile...
4
3
0
[{"id": "G0", "claim": "The new `# type: ignore[assignment]` on `parse_requirements = None` could instead be avoided by annotating the initialisation of `parse_requirements` on the earlier import line.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The upp...
null
PyCQA__isort__2340
PyCQA/isort
2,340
defect
1c8d963c54a6ed75d5f29e16835dcfba06bd12d3
fa2abe9c53fc472df6a85b7270fd3ebcdd11ad78
Ensure that split_on_trailing_comma works with `as` imports
Closes https://github.com/PyCQA/isort/issues/2338 Took the tests as recommended in https://github.com/PyCQA/isort/pull/2339 I don't think we should fix the tests by disabling the new profile flag, that would mean that our tests work but anybody using the profile would still get broken imports. Instead, let's try...
diff --git a/isort/output.py b/isort/output.py index 3cb3c08b0..ade4ad293 100644 --- a/isort/output.py +++ b/isort/output.py @@ -240,6 +240,9 @@ def sorted_imports( return _output_as_string(formatted_output, parsed.line_separator) +# Ignore DeepSource cyclomatic complexity check for this function. It was +# al...
3
1
0
[{"id": "G0", "claim": "The new test does not say what is expected for multiple `as` imports with a trailing comma, e.g. `from lib import (a as b, c as d,)`.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Django integration test keeps failing after ...
null
PyCQA__isort__2405
PyCQA/isort
2,405
defect
dab66cef0c916652b5b1117653359310b1c93fec
fe1d117014e45ef914fb52a98a5f915082bba577
Drop use of non-standard pkg_resources API
Use the canonical `importlib.metadata.entry_points` instead. Fix #2404
diff --git a/isort/settings.py b/isort/settings.py index 1ce832299..8c323f044 100644 --- a/isort/settings.py +++ b/isort/settings.py @@ -45,6 +45,11 @@ from .wrap_modes import WrapModes from .wrap_modes import from_string as wrap_mode_from_string +if sys.version_info < (3, 10): + from importlib_metadata import e...
4
3
1
[{"id": "G0", "claim": "A lower bound should be added on the importlib_metadata backport version, since older backport releases may lack the entry_points functionality the pull request relies on.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The en...
null
PyCQA__isort__2436
PyCQA/isort
2,436
defect
17746ba023894406abb3284a8ff3278147421901
323bc05692137ad240553d09fec087efd8624619
Fix line separator detection not considering form feed as white space
While working on https://github.com/PyCQA/isort/pull/1966, I this bit of code that didn't seem quite right given that Python considers ` `, `\t`, and `\f` all as white space (see https://docs.python.org/3/reference/lexical_analysis.html). Finding an example for a failing test took me a fair bit of time as the auto-d...
diff --git a/isort/core.py b/isort/core.py index a07914afb..ff8a5c9a5 100644 --- a/isort/core.py +++ b/isort/core.py @@ -159,7 +159,9 @@ def process( else: stripped_line = line.strip() if stripped_line and not line_separator: - line_separator = line[len(line.rstrip()) :...
1
1
0
[{"id": "G0", "claim": "Add a type annotation to the `ws` parameter of the new test `test_line_endings_are_detected_ignoring_whitespace`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
PyCQA__isort__2446
PyCQA/isort
2,446
defect
95f39d768ccfc59a9b21128849d97c8d4e3d90a5
dab52a5a27b16182f764d4d34e9471abc10a49c9
feat!: remove old finders flag and legacy finder logic
## Description Hey everyone, removing `--old-finders` and, i believe, all related stuff! It's a breaking change, but i believe i covered pretty much everything. Please let me know if i forgot anything :) ## Related issue Closes #2445
diff --git a/CHANGELOG.md b/CHANGELOG.md index 025d94c1a..1179212d1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ Changelog NOTE: isort follows the [semver](https://semver.org/) versioning standard. Find out more about isort's release policy [here](https://pycqa.github.io/isort/docs/major_releases/rel...
1
1
1
[{"id": "G0", "claim": "The new Unreleased CHANGELOG entry, which documents the removal of the old finders, should also mention the `--magic-placement` flag alongside `--old-finders`.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
PyCQA__isort__810
PyCQA/isort
810
defect
27515dbf9ba2137bd62f766d930273232338d953
c385eef6afca852017913d4b91955dbc5130cb5a
Refuse to work in system/.tox/venv/... directories by default
This PR makes sure isort won't wander into directories where it shouldn't. By @jdufresne's suggestion, this list is based on that of [Black's](https://github.com/ambv/black/blob/024c9cab55da7bd3236fd88759c9735d6149b464/black.py#L53-L55), with my addition of "lib/pythonX.X", which appears within venvs/site-packages/etc....
diff --git a/isort/main.py b/isort/main.py index 9356c6a36..8cba7b404 100644 --- a/isort/main.py +++ b/isort/main.py @@ -285,11 +285,16 @@ def create_parser(): help='Tells isort to ignore whitespace differences when --check-only is being used.') parser.add_argument('-y', '--apply', dest='a...
3
2
1
[{"id": "G0", "claim": "The test should import `isort.settings` and `isort.main` at the top level of test_isort.py instead of importing them inside test_safety_excludes.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Rather than adding a new `--...
null
PyGithub__PyGithub__2090
PyGithub/PyGithub
2,090
defect
6452ddfeb4d2dfd31a998f8a2e573295818d7c51
8b638c5b491b17e974d6e4428d00a2451fdd9c9b
Create repo from template
Based on the comments made in this review https://github.com/PyGithub/PyGithub/pull/2088#pullrequestreview-787467842 i made extra effort to redo the PR so that all the lint related changes are reverted. This is to solve #1395 and #1974 With the last commit being https://github.com/PyGithub/PyGithub/pull/2090/c...
diff --git a/github/AuthenticatedUser.py b/github/AuthenticatedUser.py index 79d02cdf2c..0655834e08 100644 --- a/github/AuthenticatedUser.py +++ b/github/AuthenticatedUser.py @@ -509,6 +509,43 @@ def create_fork(self, repo): self._requester, headers, data, completed=True ) + def create_repo_f...
3
2
1
[{"id": "G0", "claim": "The repository URL passed to the generate request should be built with an f-string instead of string concatenation.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "It is unclear whether the API always populates is_template...
null
PyGithub__PyGithub__2439
PyGithub/PyGithub
2,439
defect
e414c3227bb15819b443b4474f1aded433011bda
1172288e016cbb4da365e4ebd62a302a5d15d34e
Add expiration argument back to GithubIntegration.create_jwt
Fixes #2432.
diff --git a/github/GithubIntegration.py b/github/GithubIntegration.py index ecc136c6cb..82c85bc9c2 100644 --- a/github/GithubIntegration.py +++ b/github/GithubIntegration.py @@ -90,17 +90,23 @@ def _get_installed_app(self, url): completed=True, ) - def create_jwt(self): + def create_jwt(s...
1
1
0
[{"id": "G0", "claim": "The new test (and the existing testCreateJWT it was copied from) patches sys.modules[\"time\"].time by hand, and a mock should be used instead — fixing one shared place rather than both copies.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
PyGithub__PyGithub__2623
PyGithub/PyGithub
2,623
defect
13e178a3abcdc1acfb3dd63aecc2f5e22b7772ae
8da051b8d32023300a4bae713fddf2b2835d5eae
Add Secret and Variable classes
Hi! this PR is for adding the Secret and Variable classes. Before I added the variable methods to Organization and Repository but I think is better handling this way. Let me know feedback if this is good so I can start adding test cases. Ty!
diff --git a/github/Organization.py b/github/Organization.py index a50b2cc5c9..2ab0a6a185 100644 --- a/github/Organization.py +++ b/github/Organization.py @@ -51,7 +51,9 @@ import github.Plan import github.Project import github.Repository +import github.Secret import github.Team +import github.Variable from . im...
7
7
2
[{"id": "G0", "claim": "Do not add .pyi stub files for the new classes; use inline types in the .py files instead, which also enables mypy on the new files.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "There should also be an edit method in th...
null
PyGithub__PyGithub__2630
PyGithub/PyGithub
2,630
defect
de80ff4b914b9ffd47347d60b14cbf270e07f346
569ae9687ee835a249c8ec51e11376c46c7891fe
Add `is_alphanumeric` attribute to Autolink and `Repository.create_autolink`
Added _is_alphanumeric_ to Autolink to be able to choose between alphanumeric (default) and numeric
diff --git a/github/Autolink.py b/github/Autolink.py index 8f0f5d376c..63837555a1 100644 --- a/github/Autolink.py +++ b/github/Autolink.py @@ -28,6 +28,7 @@ def _initAttributes(self) -> None: self._id: Attribute[int] = NotSet self._key_prefix: Attribute[str] = NotSet self._url_template: Attri...
1
1
1
[{"id": "G0", "claim": "The `is_alphanumeric` parameter of `Repository.create_autolink` should use `NotSet` as its default value instead of `True`.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
PyGithub__PyGithub__2711
PyGithub/PyGithub
2,711
defect
7cfa476187a6e08090a1d83b7ffeee9599c7e1d4
2e0bdb198f68d55aa7e429bf45ed7a90f118d07d
Search Workflows by Name
The existing `get_workflow()` method only works with the input of a workflow ID or workflow filename. This pull request (PR) serves to elevate the method's functionality by enabling the utilization of workflow names as an alternative approach to identifying the relevant workflow. ``` >>> repo.get_workflow(2008038) ...
diff --git a/github/Repository.py b/github/Repository.py index 6220e0f42d..ba403321cd 100644 --- a/github/Repository.py +++ b/github/Repository.py @@ -105,6 +105,7 @@ # Copyright 2023 Sol Redfern <59831933+Tsuesun@users.noreply.github.com> # # Copyright 2023 Mikhail f. Shiryaev <mr.felixoid@gmail.com> ...
4
4
1
[{"id": "G0", "claim": "The new type check should use isinstance(id_or_name, str) instead of type(id_or_name).__name__ == \"str\".", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Finding a workflow by name inside get_workflow should not be done: ...
null
PyGithub__PyGithub__2884
PyGithub/PyGithub
2,884
defect
e47c153bad20306add8585d36b89e71610ce01df
cce1d1de9795a07e2134ae1e780d6b922bd59d96
Add branch protection support for `required_status_checks.checks` object
as outlined in https://github.com/PyGithub/PyGithub/pull/2873#issuecomment-1906795864: > Looking at the [docs](https://docs.github.com/en/rest/branches/branch-protection?apiVersion=2022-11-28#update-branch-protection) I found that argument `required_status_checks.contexts` is deprecated in the API and replaced by `req...
diff --git a/github/Branch.py b/github/Branch.py index 7a4f2079c8..82d1478ea9 100644 --- a/github/Branch.py +++ b/github/Branch.py @@ -47,7 +47,7 @@ from __future__ import annotations -from typing import TYPE_CHECKING, Any +from typing import TYPE_CHECKING, Any, List, Union, Tuple import github.BranchProtection...
5
5
4
[{"id": "G0", "claim": "The new `checks` parameter of `edit_required_status_checks` should be validated (an active `assert is_optional_list(checks, (str, tuple))` plus a per-element tuple type check) instead of the commented-out assert.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "in...
null
PyGithub__PyGithub__3028
PyGithub/PyGithub
3,028
defect
c44ec523b1830c2d747fcf417b478562854664e8
1039187203b48131fbb82f452587677bcf021a1f
Add `GitCommitVerification` class
Turns the return value of `GitCommit.verification` from `dict` into a proper class. https://docs.github.com/en/rest/commits/commits
diff --git a/github/Commit.py b/github/Commit.py index 3998102bc7..3e8057adb8 100644 --- a/github/Commit.py +++ b/github/Commit.py @@ -24,6 +24,7 @@ # Copyright 2024 Enrico Minack <github@enrico.minack.dev> # # Copyright 2024 Jirka Borovec <6035284+Borda@users.noreply.github.com> # # Copy...
1
1
1
[{"id": "G0", "claim": "Add a test asserting `commit.verification` for a commit that has `CommitVerification` attributes set, since the newly added verification property and class ship with no tests.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
PyGithub__PyGithub__3060
PyGithub/PyGithub
3,060
defect
c44ec523b1830c2d747fcf417b478562854664e8
b09851dbbdaf7fb46fb1c5c3a6360871af007aa2
Support downloading a Release Asset
Provide support for downloading release assets. Fixes #1541 Fixes #2445 Fixes #2918
diff --git a/github/GitReleaseAsset.py b/github/GitReleaseAsset.py index 505eef7910..06af9c197c 100644 --- a/github/GitReleaseAsset.py +++ b/github/GitReleaseAsset.py @@ -141,6 +141,14 @@ def delete_asset(self) -> bool: headers, data = self._requester.requestJsonAndCheck("DELETE", self.url) return Tru...
7
6
1
[{"id": "G0", "claim": "The new requestFile bypasses the existing request infrastructure with its error-code handling, rate-limit response headers and retry logic; it should be based on __requestEncode instead.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim...
null
PyGithub__PyGithub__3086
PyGithub/PyGithub
3,086
defect
f23da453917a36c8bd48ab8d99e5fa7221884342
b0a2aeeda2d309e235267e9eae0021087ce31ddd
Fix typos
Found via `codespell -S *.txt -L acces` and `typos --hidden --format brief`
diff --git a/github/OrganizationCustomProperty.py b/github/OrganizationCustomProperty.py index aaca11a67b..8388fd8457 100644 --- a/github/OrganizationCustomProperty.py +++ b/github/OrganizationCustomProperty.py @@ -140,7 +140,7 @@ class RepositoryCustomPropertyValues(NonCompletableGithubObject): """ @proper...
2
2
2
[{"id": "G0", "claim": "Renaming the typo in the description passed to create_status in tests/Commit.py requires updating tests/ReplayData/Commit.testCreateStatusWithAllParameters.txt as well.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Renaming ...
null
PyGithub__PyGithub__3087
PyGithub/PyGithub
3,087
defect
3d84a47a88f6757514cb3ee91b829f53ba09e7e0
5bfa52560bf092c1192e911404befa4100b5dc9d
Use `responses` instead of `httpretty` in tests
I have created this PR since [httpretty](https://github.com/gabrielfalcao/HTTPretty/issues) seems to be no longer maintained. Fedora is maintaining httpretty because it is needed in PyGithub. I think it could be beneficial both for Fedora and PyGithub to move away from httpretty. [responses project](https://github...
diff --git a/requirements/test.txt b/requirements/test.txt index de60e12948..58f8542035 100644 --- a/requirements/test.txt +++ b/requirements/test.txt @@ -1,5 +1,5 @@ -httpretty >=1.0.3 pytest >=5.3 pytest-cov >=2.8 pytest-github-actions-annotate-failures <1.0.0 pytest-subtests >=0.11.0 +responses diff --git a/test...
7
7
1
[{"id": "G0", "claim": "EnricoMi asks why the response-header copying/filtering block in Framework.__request_callback was removed, reporting that the migration appears to cause a UTF-8 encoding issue in the tests.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1"...
null
PyGithub__PyGithub__3190
PyGithub/PyGithub
3,190
defect
1ac8da700e4282cb2a3fd22cbd22861558e12f26
db8a80f3f789dda97874aceb5d367079c01c814b
Add getting list of self-hosted runners of organization
This PR addresses https://github.com/PyGithub/PyGithub/discussions/3189. It is not a complete PR, one may want to add more runner-related interfaces, but this is what I need. Happy to modify or extend as recommended.
diff --git a/github/Organization.py b/github/Organization.py index 7a0d5414fe..22daebb6f0 100644 --- a/github/Organization.py +++ b/github/Organization.py @@ -1601,6 +1601,19 @@ def create_custom_property_values( } self._requester.requestJsonAndCheck("PATCH", f"{self.url}/properties/values", input=pat...
8
7
1
[{"id": "G0", "claim": "The pull request must include tests for get_self_hosted_runners with recorded API responses, which Felixoid first asked to be added and then, after a merge accidentally reverted them and overwrote the setUp step, asked to have restored.", "category": "testing", "verdict": "supported", "priority"...
null
PyGithub__PyGithub__3258
PyGithub/PyGithub
3,258
defect
1ac8da700e4282cb2a3fd22cbd22861558e12f26
555734af81a7fd14d1a5a03adde4c715a989c0bd
Add support for Sub-Issues
I have added features to manage sub-issues. These features are developed by referring to the GitHub API documentation, while making sure to follow the original code style and direction. The changes included in this PR are as follows: **1. Sub-issue management features** - Get sub-issues of an issue ![image](...
diff --git a/github/Consts.py b/github/Consts.py index 197944c2d7..800457784c 100644 --- a/github/Consts.py +++ b/github/Consts.py @@ -179,3 +179,13 @@ # https://docs.github.com/en/rest/guides/best-practices-for-integrators?apiVersion=2022-11-28#dealing-with-secondary-rate-limits DEFAULT_SECONDS_BETWEEN_REQUESTS = 0....
14
13
3
[{"id": "G0", "claim": "The pull request should not change the typing of the unrelated create_reaction method.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The get_parent_issue method should not fall back to the parent_issue property - calling...
null
PyGithub__PyGithub__3260
PyGithub/PyGithub
3,260
defect
1ac8da700e4282cb2a3fd22cbd22861558e12f26
3b30d6e26ceac34d9445e774a3f6db8c1f09328c
Support built-in `reversed()` on `PaginatedList`
Since `PaginatedList` can already be used as in iterator and there is an interface defined for reversing the list, it makes sense to also implement the `__reversed__` “dunder” method that is utilized by `reversed()` built-in function for reversing iterators.
diff --git a/github/PaginatedList.py b/github/PaginatedList.py index 2c918fee43..e9f9a0c9f7 100644 --- a/github/PaginatedList.py +++ b/github/PaginatedList.py @@ -302,6 +302,10 @@ def __reverse(self) -> None: if k not in Requester.get_parameters_of_url(self.__nextUrl).keys() ...
1
1
1
[{"id": "G0", "claim": "Unit tests must be added to tests/PaginatedList.py for the newly supported built-in reversed() on PaginatedList before the PR can be merged.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
PyGithub__PyGithub__3303
PyGithub/PyGithub
3,303
defect
b4092b5d5255610fa998f66c720ab5700fddabeb
dbbc5d65a1886f879a912981ccb6348d27ff09c2
Add `Repository.get_automated_security_fixes` method
Commit adds `Repository.get_automated_security_fixes` method which can be used to determine whether Dependabot security updates are enabled, disabled or paused for a repository. Fixes #3042
diff --git a/github/Repository.py b/github/Repository.py index 0737b54418..eac4c2a1f5 100644 --- a/github/Repository.py +++ b/github/Repository.py @@ -139,6 +139,7 @@ # Copyright 2025 Enrico Minack <github@enrico.minack.dev> # # Copyright 2025 Mikhail f. Shiryaev <mr.felixoid@gmail.com> ...
1
1
0
[{"id": "G0", "claim": "The `:calls:` docstring link for the new GET automated-security-fixes endpoint should point at the specific GitHub REST docs anchor instead of the general reference page.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
PyGithub__PyGithub__3306
PyGithub/PyGithub
3,306
defect
b4092b5d5255610fa998f66c720ab5700fddabeb
011d03d9c8b57460e6da9fa4580ea08d0728472f
Add `delete_self_hosted_runner` to `Organization`
PR related to #3189 This PR introduces a new function `delete_self_hosted_runner` to handle the deletion of self-hosted runners at the organization level. Additionally, it includes a documentation update to correct the description of the `get_self_hosted_runners` function. For guidance on tests, I referred to PR...
diff --git a/github/Organization.py b/github/Organization.py index 6a5867da7f..172cdc7f15 100644 --- a/github/Organization.py +++ b/github/Organization.py @@ -1605,7 +1605,7 @@ def create_custom_property_values( def get_self_hosted_runners(self) -> PaginatedList[SelfHostedActionsRunner]: """ - :c...
2
2
1
[{"id": "G0", "claim": "delete_self_hosted_runner should be declared to return None rather than PaginatedList[SelfHostedActionsRunner], since the DELETE endpoint returns no data.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "In testDeleteSelfHosted...
null
PyGithub__PyGithub__3381
PyGithub/PyGithub
3,381
defect
4a353f7300fe5fea0cce2a50190249c3f332e53d
7485d82bc8d8149f257b39bf98cd398715b58d54
Add support for `type` parameter to get_issues
## 1. Describe the problem the Pull Request attempts to solve This pull request adds support for the [`type` query parameter](https://docs.github.com/en/rest/issues/issues?apiVersion=2022-11-28#list-repository-issues). a feature recently added to the GitHub Issues. Currenty PyGithub's `get_issues` method does not ha...
diff --git a/github/Repository.py b/github/Repository.py index 3f98c4944b..81d32d224c 100644 --- a/github/Repository.py +++ b/github/Repository.py @@ -3166,6 +3166,7 @@ def get_issues( milestone: Milestone | Opt[str] = NotSet, state: Opt[str] = NotSet, assignee: NamedUser | Opt[str] = NotSet,...
1
1
1
[{"id": "G0", "claim": "The new positional `type` parameter was inserted in the middle of get_issues' argument list, which shifts the meaning of positional arguments and breaks existing callers; it must be added at the end of the argument list.", "category": "design", "verdict": "supported", "priority": "P1", "scope": ...
null
PyGithub__PyGithub__3396
PyGithub/PyGithub
3,396
defect
9e1c2bfe545a53beae4b79fcbc52a212b71c17d2
bdcbc2e72387ff0fe8a86756355047e740ada952
Add `incomplete_results` property to PaginatedList
The patch to fix #2166, fix #2253, and fix #2812 According to https://docs.github.com/en/rest/search/search?apiVersion=2022-11-28#timeouts-and-incomplete-results, the incomplete results are expected and should be identified by the `incomplete_results` flag. This patch adds the flag and tests for it.
diff --git a/github/PaginatedList.py b/github/PaginatedList.py index 334984d099..ad67919e95 100644 --- a/github/PaginatedList.py +++ b/github/PaginatedList.py @@ -203,6 +203,7 @@ def __init__( if self.__requester.per_page != 30: self.__nextParams["per_page"] = self.__requester.per_page se...
2
2
2
[{"id": "G0", "claim": "incomplete_results is only captured when a page is fetched and not at the other places PaginatedList makes requests — notably the first request made for totalCount — so it should either be set everywhere or via a helper method.", "category": "correctness", "verdict": "supported", "priority": "P1...
null
PyMySQL__PyMySQL__1225
PyMySQL/PyMySQL
1,225
defect
d7bb777e503d82bf2496113f07dd4ab249615efc
dcd9780353ff3e38213724dcae99aec16af31e60
callproc: escape procname
fix #1206
diff --git a/pymysql/cursors.py b/pymysql/cursors.py index 8be05ca2..4d202373 100644 --- a/pymysql/cursors.py +++ b/pymysql/cursors.py @@ -14,6 +14,10 @@ ) +def _backquote_escape(s): + return s.replace("`", "``") + + class Cursor: """ This is the object used to interact with the database. @@ -251,9 +...
4
1
1
[{"id": "G0", "claim": "Backtick-wrapping procname in callproc() changes behavior for callers passing schema-qualified names like db.proc, so consider quoting each identifier part separately or documenting/handling qualified names to avoid a breaking change.", "category": "design", "verdict": "uncertain", "priority": "...
null
PyMySQL__PyMySQL__1234
PyMySQL/PyMySQL
1,234
defect
97ddfaad08a19a2699da87460c61ca835a909138
5fa053d11b7231e788f5eab0b4e8a29b25f38ee8
Reorganize TLS options: implement PREFERRED/REQUIRED SSL mode behavior
PyMySQL had no way to emulate MySQL's `ssl_mode=REQUIRED`, and `ssl_disabled` was effectively a no-op. This reorganizes TLS behavior around a clear priority order without adding new options. ## Behavior Evaluated in order: 1. `ssl_disabled=True` → prohibit SSL 2. Any explicit SSL option set (`ssl`, `ssl_ca`, `ssl_ce...
diff --git a/CHANGELOG.md b/CHANGELOG.md index eefd7fad..f98a92e3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,18 @@ Release date: 2026-05-01 NOTICE: This change may cause backward compatibility issues. If you specified a procedure name like `"dbname.funcname"`, the previous version called `CALL dbnam...
3
2
0
[{"id": "G0", "claim": "CodeQL reports that the call to ssl.create_default_context in the pull request's new SSL connection path allows insecure TLS protocol versions (TLSv1 and TLSv1_1).", "category": "security", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add a note to the...
null
PyMySQL__PyMySQL__292
PyMySQL/PyMySQL
292
defect
6b40bea4d8472244917e0317857c0b47a5168d43
21b80482cb05d3a3f31ca808d4c9ca3fed602b6d
Remove __del__ from Cursor; warn on unconsumed SSCursor results
This PR adds tests to confirm that things are cleaned up if a Cursor or SSCursor is discarded in the middle of results. The cleanup routine of MySQLResult handles this already. A warning is added to Connection if an unbuffered result was left open, and a subsequent execute call is made. With this patch, the issue ...
diff --git a/CHANGELOG b/CHANGELOG index 2f2e95fb..d2386de1 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -4,6 +4,10 @@ Changes 0.6.4 -Support "LOAD LOCAL INFILE". Thanks @wraziens -Show MySQL warnings after execute query. -Fix MySQLError may be wrapped with OperationalError while connectiong. (#274) + ...
3
1
0
[{"id": "G0", "claim": "The empty line the pull request adds at the end of the fetchall docstring (and likewise in fetchmany) should be removed, since the recommendation permitting an empty line at the end of a docstring was removed from the style guide.", "category": "documentation", "verdict": "uncertain", "priority"...
null
PyMySQL__PyMySQL__300
PyMySQL/PyMySQL
300
defect
618f84437c62cbea0687b179997e94fbd1cf8f5e
1274e592ec180a0b8a6578715669c7882884447f
fix issue 288: executemany now works with "insert ... on duplicate update"
Instead of falling back to executing each statement separately when "on duplicate update" is there, it builds a batch call.
diff --git a/pymysql/cursors.py b/pymysql/cursors.py index 35e3b75c..0e290c68 100644 --- a/pymysql/cursors.py +++ b/pymysql/cursors.py @@ -11,7 +11,7 @@ #: Regular expression for :meth:`Cursor.executemany`. #: executemany only suports simple bulk insert. #: You can use it to load large dataset. -RE_INSERT_VALUES = r...
1
1
1
[{"id": "G0", "claim": "The query postfix (the 'on duplicate key update ...' clause captured as a str) should be encoded in the same way as the prefix in _do_execute_many(), instead of being wrapped in bytearray() without an encoding.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "intr...
null
PyMySQL__PyMySQL__306
PyMySQL/PyMySQL
306
defect
f225c13c828cd1d532fa8aabc89c839f5bb47463
a7eb91710a11afcad0469252057a67277ca2a1dd
Multi-statement init_command causes subsequent query to fail
Given that the CLIENT.MULTI_STATEMENTS flag is set, it is valid for the init_command supplied by the connection contain multiple statements. Since on one ok_packet is read this causes subsequent queries to return unexpected results since client/server are out of sync. Demonstrated by: ``` def test_init_command(s...
diff --git a/pymysql/connections.py b/pymysql/connections.py index e91bba88..d8332983 100644 --- a/pymysql/connections.py +++ b/pymysql/connections.py @@ -844,6 +844,9 @@ def _connect(self): if self.init_command is not None: c = self.cursor() c.execute(self.init_command) +...
1
1
0
[{"id": "G0", "claim": "Closing the cursor with c.close() would drain the extra results from a multi-statement init_command and would be clearer than the while-loop that winds through them.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
PyMySQL__PyMySQL__353
PyMySQL/PyMySQL
353
defect
cfcd5b5340fa864cbf2098118a14d0693aaa52a7
c46538b1235d3b6c5cfa0050094c7601da0d31fa
Add authentication plugin support
This extracts a plugin name from the server and exposes this as connection.get_plugin_name(). The client side here adds capabilities PLUGIN_AUTH and PLUGIN_AUTH_LENENC_CLIENT_DATA. Because of this the HandshakeResponse response has been altered to use the server_capabilities a bit more strictly. The immediate upshot...
diff --git a/pymysql/connections.py b/pymysql/connections.py index 4f66681a..785a7b36 100644 --- a/pymysql/connections.py +++ b/pymysql/connections.py @@ -22,7 +22,7 @@ escape_item, encoders, decoders, escape_string, through) from .cursors import Cursor from .optionfile import Parser -from .util import byte2int,...
6
6
3
[{"id": "G0", "claim": "The lenenc_int function (and its protocol link) should not live in the util module; it should be moved to the connections module, where all MySQL-protocol code lives.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The tes...
null
PyMySQL__PyMySQL__365
PyMySQL/PyMySQL
365
defect
cfcd5b5340fa864cbf2098118a14d0693aaa52a7
8ba83623986b2d9f043836f8d9f2ca77b7b8a6b3
Address encoding issues with mixed str/bytes in executemany and with iterables.
This should fix both #321 and #364. I've incorporated the changes from #364 and hopefully addressed the review feedback. Since both of these issues touched the same code paths, one of them would have to be rebased on top of the other one. Basically this pulls out the special PY2 handling out of the execute/mogrify fu...
diff --git a/pymysql/cursors.py b/pymysql/cursors.py index 8d10f00e..6b0cad7b 100644 --- a/pymysql/cursors.py +++ b/pymysql/cursors.py @@ -1,5 +1,6 @@ # -*- coding: utf-8 -*- from __future__ import print_function, absolute_import +from functools import partial import re import warnings @@ -93,14 +94,32 @@ def _ne...
2
2
0
[{"id": "G0", "claim": "The `if not PY2` guard in `_ensure_bytes` is required but its behavior is not predictable from the method name, so it should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "`unicode` should be replaced with `te...
null
PyMySQL__PyMySQL__995
PyMySQL/PyMySQL
995
defect
f0091e09889a3db2400f821bee6a411fa1822a44
db640e4d599e69baea2818695880c216c0e57c09
Make Cursor an iterator
Please check https://github.com/PyMySQL/PyMySQL/issues/992
diff --git a/pymysql/cursors.py b/pymysql/cursors.py index 2b5ccca9..6afba497 100644 --- a/pymysql/cursors.py +++ b/pymysql/cursors.py @@ -346,7 +346,10 @@ def _do_get_result(self): self._rows = result.rows def __iter__(self): - return iter(self.fetchone, None) + return self + + def __n...
2
2
1
[{"id": "G0", "claim": "Implement Cursor.__next__ by calling self.fetchone() and raising StopIteration when it returns None, instead of next(iter(self.fetchone, None)), per methane's suggestion block.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim"...
null
PyO3__maturin__1334
PyO3/maturin
1,334
defect
8da105a93acc91b2e8303a55158de85f889d0c2c
c45e1db03acf38a338bd01536659dd160ba6c766
Support SOURCE_DATE_EPOCH environment variable in wheel building
This adds support for the `SOURCE_DATE_EPOCH` environment variable like wheel does when building wheels. If this environment variable is set, the `mtime` of the files in the wheel are set to this value to ensure reproducible output. Fixes #1320
diff --git a/Cargo.lock b/Cargo.lock index 539cc9e79..190a7328c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1510,6 +1510,7 @@ dependencies = [ "tempfile", "textwrap", "thiserror", + "time", "toml_edit", "tracing", "tracing-subscriber", diff --git a/Cargo.toml b/Cargo.toml index 44564f7d2..a199c2fad 100644 ...
4
2
0
[{"id": "G0", "claim": "The error handling in mtime() can be simplified to `let dt = DateTime::from_time(dt).context(\"Failed to build zip DateTime\")?; Ok(dt)` instead of the manual match with anyhow!.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim"...
null
PyO3__maturin__2015
PyO3/maturin
2,015
defect
c2fd2261f7228d6740ecae930be564966207ec0e
0c2c00719ab0361d475d11bdde07db6bb0735efc
Add uv as develop backend command
Hi, This should close #1959. However, I would like some feedback/help before I imagine this is ready to merge. I plan on adding more tests to see that it works accross crates etc, but got into a weird test error loop, that I hope someone can help me here. Basically about making the `develop_hello_world_uv` test p...
diff --git a/src/develop.rs b/src/develop.rs index dfd71d20e..8a1a98082 100644 --- a/src/develop.rs +++ b/src/develop.rs @@ -16,6 +16,10 @@ use std::process::Command; use tempfile::TempDir; use url::Url; +enum Backend { + Pip, + Uv, +} /// Install the crate as module in the current virtualenv #[derive(Debug...
9
6
0
[{"id": "G0", "claim": "The `Backend` enum should have a more specific name, like `InstallBackend`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The doc comment on the `--uv` flag should read 'Use `uv` to install packages instead of `pip`' ins...
null
PyO3__maturin__2625
PyO3/maturin
2,625
defect
529c8404afc3ed543f28efd9860ba6c4e1120781
c4bfdfd19225b21c6f4c2671471e33b1a79bd7dc
Allow specifying compression method and level, in both `build` and `develop` modes.
This is a follow-up to https://github.com/PyO3/maturin/issues/2566 that adds the ability to - Specify other compression methods - Control compression in the `develop` mode, not only `build`. Solves #2622 ``` --compression-method <COMPRESSION_METHOD> Zip compresson method. Only Stored and Deflated are current...
diff --git a/Cargo.lock b/Cargo.lock index 7d525dbea..28e7701ca 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -352,6 +352,8 @@ version = "1.2.16" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "be714c154be609ec7f5dad223a33bf1482fff90472de28f7362806e6d4832b8c" dependencies = [ + "jobserver"...
1
1
1
[{"id": "G0", "claim": "The valid compression-level range varies among compression methods, so a single fixed level (default 6 for all) may be invalid for the chosen method and fail when calling `zip`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
PyO3__maturin__2694
PyO3/maturin
2,694
defect
f6d6a692f9507e0fe1db457bee315328e44a5640
5430680e706511531c115c792a7450e018644886
Add support for RISC-V architecture in manylinux and update compatibi…
Recently, pypi has just provided support for riscv wheel uploads. For details, please see https://github.com/pypi/warehouse/pull/18390 Here you can see that test.pypi.org has deployed support, https://github.com/pypi/warehouse/deployments/test.pypi.org I think maturin-action can also provide support for this, mai...
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 939a9b1b1..180742f46 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -168,6 +168,9 @@ jobs: - target: "loongarch64-unknown-linux-gnu" image: "manylinux_2_36-cross:loongarch64" ...
3
3
2
[{"id": "G0", "claim": "The Manylinux minor for Riscv64 should stay 31 — the added `minor: 39` and its comment claiming 2_39 is the minimum version supported on PyPI are unjustified, since PyPI does not really care about the actual glibc version in the tag and maturin only needs a defined manylinux policy for that glib...
null
PyO3__maturin__2821
PyO3/maturin
2,821
defect
608963e067b905940658b5cb06d7fc04595a0536
8e3e46300ef22948c12849535ca883a310fa275b
PyO3: do not add `extension-module` feature in template and tutorial
Similar change as https://github.com/PyO3/pyo3/pull/5588
diff --git a/guide/src/distribution.md b/guide/src/distribution.md index 64a358c9d..66e533594 100644 --- a/guide/src/distribution.md +++ b/guide/src/distribution.md @@ -230,7 +230,7 @@ or providing any Windows Python library files. ```toml [dependencies] -pyo3 = { version = "0.27.0", features = ["extension-module",...
1
1
0
[{"id": "G0", "claim": "The distribution guide should still point out that the `extension-module` feature is required for pyo3 < 0.27.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
PyO3__maturin__2842
PyO3/maturin
2,842
defect
a41bc8654c7753106a50c52fbea6c51f63e18adb
4daa0cc423ac2884ec32934ccca004d3b1b3731a
Split out convenience methods from ModuleWriter trait
I was thinking that the convenience methods with default implementations available on `ModuleWriter` shouldn't really be overridden and that implementers of `ModuleWriter` should only focus on the one primary method. In order to enforce that separation, this PR moves all the convenience methods into a `ModuleWriterExt`...
diff --git a/Changelog.md b/Changelog.md index 75b220409..37a7ffbad 100644 --- a/Changelog.md +++ b/Changelog.md @@ -9,6 +9,7 @@ * Remove `add_directory()` from ModuleWriter and make it an implementation detail for the specific impl * Ensure that sdist builds are reproducible * Always use "library" mode to build uni...
8
5
1
[{"id": "G0", "claim": "The symlink branch of add_data now passes the symlink's own path as the source where the old code passed the link target's parent directory, and it is unclear why, so the behavior change may be unintended.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, ...
null
PyO3__maturin__2905
PyO3/maturin
2,905
defect
35279cddc6d34f872f6632bad1ab16f5e2436595
50e9615f951e93f4f75130d1688229df682182c1
Stop hardcode platform tag when using zig
Try to fix https://github.com/PyO3/maturin/pull/2901#issuecomment-3695107807
diff --git a/src/build_options.rs b/src/build_options.rs index 0e5e87c53..62e1105fc 100644 --- a/src/build_options.rs +++ b/src/build_options.rs @@ -749,9 +749,10 @@ impl BuildContextBuilder { // Zig bundles musl 1.2 Some(PlatformTag::Musllinux { major: 1, minor: 2 }) ...
1
1
0
[{"id": "G0", "claim": "The comment added for the zig+glibc branch has inconsistent punctuation (a comma run-on with 'thus we') and should be reworded into complete sentences with proper punctuation.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
PyO3__maturin__2938
PyO3/maturin
2,938
defect
8704213f2551b3717c192d8616536ab67fd38f21
ddc3c1f1bdc5fd14b860ef2e34a8ad6c081a8d64
Fix editable install for binary projects with Python modules
Fixes #2933. Previously, editable installs incorrectly tried to copy binaries to the Python source directory (base_path + data/scripts/...), resulting in broken installations where the binary couldn't be found. This introduces an ArtifactTarget enum to distinguish between Binary and ExtensionModule artifacts. In edi...
diff --git a/src/binding_generator/bin_binding.rs b/src/binding_generator/bin_binding.rs index c898160b6..25c11f06c 100644 --- a/src/binding_generator/bin_binding.rs +++ b/src/binding_generator/bin_binding.rs @@ -11,6 +11,7 @@ use crate::BuildContext; use crate::Metadata24; use crate::archive_source::ArchiveSource; ...
1
1
1
[{"id": "G0", "claim": "The pull request should add a test case covering binary plus Python module projects, since existing tests do not cover that combination.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
PyO3__maturin__2950
PyO3/maturin
2,950
defect
e7922abab54a412cf7c527c41cbcfb170dafc940
4baac4bde2982edd27a959c7ab714eb5852d029d
Use mmap for faster warn_missing_py_init
One of my colleagues noticed that `warn_missing_py_init` is quite slow, reading the full file into memory (for context: the Polars debug .so is ~4GB). I think it's quite likely that `goblin` only needs to parse a portion of the file, so I think using `mmap` here makes sense.
diff --git a/Cargo.lock b/Cargo.lock index edcb17003..bed4a5d63 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1449,6 +1449,7 @@ dependencies = [ "itertools 0.14.0", "keyring", "lddtree", + "memmap2", "minijinja", "multipart", "native-tls", diff --git a/Cargo.toml b/Cargo.toml index 23d565fc5..8f74631df 10064...
8
6
6
[{"id": "G0", "claim": "The new unsafe memmap2::Mmap::map call carries no safety comment, and the reviewer asks whether it is sound and requests a comment documenting why it does not violate Rust's invariants.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "c...
null
PyO3__maturin__2973
PyO3/maturin
2,973
defect
151b5faea88684456d4c22644426c081103ea949
d4bc2dc4c335ecbe56576897a9836e07dfc94359
fix: resolve wheel include patterns relative to project root
Include patterns in `[tool.maturin]` were resolved relative to `python_dir` instead of the project root (pyproject.toml directory). This caused include patterns to silently match nothing when `python-source` was set (src-layout), since paths like `target/release/binary` would incorrectly resolve to `python/target/relea...
diff --git a/src/module_writer/mod.rs b/src/module_writer/mod.rs index b5b495bb3..5e775e5c4 100644 --- a/src/module_writer/mod.rs +++ b/src/module_writer/mod.rs @@ -188,19 +188,18 @@ pub fn write_python_part( // Include additional files if let Some(pyproject) = pyproject_toml { - // FIXME: in src-lay...
1
1
1
[{"id": "G0", "claim": "The wheel include glob pattern is constructed with `project_root` inserted unescaped, so if the project path contains glob metacharacters (e.g. `[` or `]`), `glob::glob` may treat them as pattern syntax and fail to match; apply `glob::Pattern::escape` to `project_root` before joining with the pa...
null
PyO3__maturin__2980
PyO3/maturin
2,980
defect
7a32b1aa766cc75dca76eec79a31d2501afe9281
7d38566405580446092b5f067ab1924cafa7273d
feat: Add PEP 770 SBOM support
Implements Software Bill of Materials (SBOM) generation according to PEP 770. Changes: - Add optional on-by-default 'sbom' feature with cargo-cyclonedx integration - Add `SbomConfig` to pyproject.toml parsing - Create sbom module for SBOM generation using cargo-cyclonedx library - Update wheel writers to include...
diff --git a/Cargo.lock b/Cargo.lock index bc29b6f40..34dabd9e0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -114,6 +114,12 @@ dependencies = [ "syn", ] +[[package]] +name = "base64" +version = "0.21.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d297deb1925b89f2ccc13d7635fa0714f...
12
7
4
[{"id": "G0", "claim": "Adding `sbom` to the `full` feature, which `default` enables, makes SBOM effectively default-on and pulls in `cargo-cyclonedx` in default builds, contradicting the PR's optional-feature framing; consider removing `sbom` from `full` (or `default`) so it stays opt-in.", "category": "design", "verd...
null