This project has been archived by its maintainers, and is no longer receiving any updates.
flake8-carrot
A plugin for Flake8; Ensuring that your Python code adheres to CarrotManMatt's opinionated style guide
⚠️ PROJECT STATUS ⚠️
This project is now archived and deprecated. Use https://github.com/CarrotManMatt/fixit-carrot instead.
Rules
CAR101-missing-all-export
Every module should have an__all__export at the topCAR102-multiple-all-exports
Each module should have only a single__all__exportCAR103-incorrect-all-export-annotation
An__all__export should be annotated asSequence[str]CAR104-incorrect-all-export-type
A simple__all__export should be of typetuple, notlistCAR105-invalid-line-above-all-export
Only import statements and the module’s docstring are allowed above an__all__exportCAR110-incorrect-newlines-after-all-export
A double newline is required after an__all__exportCAR111-incorrect-newlines-separating-preamble
Preamble lines should be separated by a single newlineCAR120-incorrect-whitespace-in-ignore-comment
Whitespace intype: ignore&pass:[noqa: ]comments should follow the standard formatting conventionsCAR121-trailing-commas-after-ignore-comment
type: ignorecomments should have no trailing commasCAR122-trailing-commas-after-ignore-comment
Apass:[noqa: ]comment should be placed after atype: ignorecomment on the same lineCAR123-trailing-commas-after-ignore-comment
Line comments should be placed before atype: ignoreorpass:[noqa: ]commentCAR124-found-noinspection-comment
IDE specific ignore comments (E.g.# noinspection ...) should be removedCAR130- ...
Reserved for lint rules related to literal string flags (r,f,b,u&t).CAR140-unnecessary-str-strip
Unnecessary uses of thestr.strip()function should be removedCAR141-str-function-output-not-stored
The result from calling astrfunction should always be stored in a variableCAR150-args-or-kwargs-in-function-definition
Do not use**argsor***kwargsin function definitions (where possible)CAR151-args-or-kwargs-passed-to-super
Do not pass**argsor***kwargstosuper()methodsCAR160-class-defined-inside-function
Classes should only be defined at the module top-level or inside another class, (not inside a function)CAR161-content-in-abstract-method
The body of abstract methods should only contain a docstring (orpassif the function is an overload or is private and has no docstring)CAR162-classproperty-not-all-caps
Class-property names should be in all capsCAR162-init-not-marked-with-override
__init__()methods should always be marked with@overrideCAR170-union-in-isinstance-or-issubclass
Use tuples of types in calls toisinstance()orissubclassrather than type unionsCAR180-repeated-bool-op
Useany()rather than repeated... or ...clauses andall()rather than repeated... and ..clausesCAR201-incorrect-logger-assignment-annotation
Assignment of alogging.Loggerobject to a variable should be annotated asFinal[Logger]CAR202-logger-variable-name-missing-logger
Alogging.Loggervariable’s name should contain the word 'logger'CAR301-invalid-characters-in-pycord-slash-command-or-option-name
Pycord slash-command/option names should only contain valid charactersCAR302-invalid-pycord-cog-subclass-name
Pycord cog subclass' should have a name that ends withCommandCogorCommandsCog(depending upon the number of commands in the cog)CAR303-incorrectly-formatted-pycord-slash-command-or-option-name
Pycord slash-command/option names should be lowercase and have words separated by hyphensCAR304-missing-full-stop-in-pycord-slash-command-or-option-description
Pycord slash-command/option descriptions should end with a full stopCAR305-pycord-context-command-name-uncapitalised
Pycord user/message context command names should be capitalisedCAR401-found-astpretty-pprint
Debugging calls toastpretty.pprint()should be removedCAR501-used-dataclass
Classes should have their attributes declared manually withoutdataclass"magic"CAR601-used-re-match
re.fullmatch()should be used instead ofre.match()CAR602-used-re-search-with-line-anchors
re.fullmatch()should be used instead ofre.search()when using beginning and ending line anchorsCAR610-non-raw-string-for-regex-pattern
Regex pattern string literals should be written with raw (rstrings)
Metadata
Release files for flake8-carrot 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| flake8_carrot-0.2.0.tar.gz | 31.1 kB | Without provenance | Details for flake8_carrot-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| flake8_carrot-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for flake8_carrot-0.2.0-py3-none-any.whl |
Total release size: 83.6 kB
Release files / flake8_carrot-0.2.0.tar.gz
| Download URL | flake8_carrot-0.2.0.tar.gz |
|---|---|
| Size | 31.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2c31aada18d1d6df5af7714ecb12eada3aad18b69489bb27c20fcff8300c7e63
|
|
BLAKE2b-256 checksum How to use checksums |
6da8ff70c62458847817021adfcb81c984e2dc6e888e6f786f21cb841dc75e4c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.27 {"installer":{"name":"uv","version":"0.11.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / flake8_carrot-0.2.0-py3-none-any.whl
| Download URL | flake8_carrot-0.2.0-py3-none-any.whl |
|---|---|
| Size | 52.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eff73c4df574077197a684edc37cfe0d0bf9f77518445cd3558c59b757455962
|
|
BLAKE2b-256 checksum How to use checksums |
357708cba076b8e04ac29057160533d077e293772932054f5dbc910737fc331b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.27 {"installer":{"name":"uv","version":"0.11.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for flake8-carrot 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.