Commit Graph

51 Commits

Author SHA1 Message Date
Matus Valo
3509e57e90 DeprecatedMixin: Fix typos and order of base classes in test 2021-02-21 14:30:26 +01:00
Matus Valo
34cce21d29 Move message definition to the DeprecatedMixin class 2021-02-21 11:41:20 +01:00
Matus Valo
30af955a74 Added example of deprecation checker 2021-02-21 11:41:20 +01:00
Thomas Grainger
346bdcf702
remove invalid fstr setting (#3682) 2020-06-16 08:43:37 +02:00
Pierre Sassoulas
3fffdf03d5 Fix trailing whitespaces and trailing newlines 2020-05-03 18:24:25 +02:00
Claudiu Popa
bd85d3b70d Refresh the docs a bit in preparation for the release 2020-03-13 12:20:02 +01:00
Benny
8956979db8
Add notes-rgx option for fixme checker (#3394)
This commit adds a new `notes-rgx` which is used by the "fixme" check for more
granular control over the what fixme messages to emit.

Co-authored-by: Claudiu Popa <pcmanticore@gmail.com>
2020-02-13 09:30:43 +01:00
John Belmonte
aca6d53ab8 update examples/pylintrc with new logging-format-style help (#3360)
follow-up to #3095
2020-01-26 09:13:11 +01:00
Wes Turner
06d5287318 Adds a new check 'inconsistent-quotes'.
Quoting PEP-8:

In Python, single-quoted strings and double-quoted strings are the same. This PEP does not make a recommendation for this. Pick a rule and stick to it. When a string contains single or double quote characters, however, use the other one to avoid backslashes in the string. It improves readability.

For triple-quoted strings, always use double quote characters to be consistent with the docstring convention in PEP 257.

Features:

Accounts for strings where the delimiter is swapped so an internal quote doesn't need to be escaped
Only errors on those lines that represent the module's minority delimiter.
Ignores longstrings (they could be docstrings, and checking those delimiters is someone else's responsibility)
2020-01-05 12:27:09 +01:00
Peter Kolbus
af45f55d86 Improve help for options (#2986) 2019-07-09 09:48:06 +03:00
Andrzej Klajnert
0eeb67749b Fix - add __post_init__ into defining-attr-methods to avoid attribute-defined-outside-init in dataclasses. 2019-07-05 17:21:08 +03:00
Pierre Sassoulas
2d525d6824 Style - Re-Apply black following the isort cleanup
Change with isort triggered change with black.
2019-03-20 09:07:35 +01:00
Pierre Sassoulas
5ab140ac3b Style - Apply isort on all apllicable files 2019-03-20 09:07:35 +01:00
Michael Scott Cuthbert
383c2a9dd4 Add reference to R0916 to max-bool-expr 2019-03-19 10:31:27 +01:00
Drew
926db51e55 Grammar fixes to docs (#2492)
Fix grammar error in pylintrc files and CONTRIBUTORS.txt.
2018-09-15 09:57:18 +02:00
Claudiu Popa
a284b6bedf The `locally-enabled` check is gone.
Close #2442
2018-08-24 09:43:08 +02:00
Marcus Näslund
adc4d0ce66 Removed double space from pylintrc example 2018-08-08 00:44:34 -06:00
Ville Skyttä
6e2c366ff8 Regenerate example pylintrc and man page 2018-06-13 09:12:41 +02:00
Ashley Whetter
9f7797ae15 Expanded documentation for new contributors (#1569) 2017-07-12 05:45:16 +01:00
Łukasz Rogalski
b95d334aff Remove mentions of deprecated astroid node names (#1485) 2017-05-22 14:43:35 +02:00
sdet_liang
601b10abfa Fix err "global name 'module' is not defined" (#1146)
Fix following error when using this plugin
```
with module.stream() as stream:
NameError: global name 'module' is not defined
```
2016-10-25 05:15:13 -05:00
Claudiu Popa
e830dc2df2 Add a message in the example checker, since the message is needed. 2016-08-14 15:47:18 +03:00
Jürgen Hermann
1fa9a57361 Added threading.local to ignored classes default list (#946)
Added threading.local to ignored classes default list

Note that the implementation names for Python 2/3 are used (threading.local is an alias).
Also changed related places for consistency.
2016-06-24 14:11:53 +01:00
Anentropic
5b9a8c2018 error E0201 is obsolete - now E1101
--HG--
branch : remove-E0201-references
2015-11-18 12:07:22 +00:00
Michal Nowikowski
c0d3f6964a Various changes related to docs
- added Changelog to docs
- added list of contributors to docs
- updated CONTRIBUTORS info
- slight formating changes in Changelog
- updated auto-generated man page and example pylintrc

--HG--
branch : docs-improvements2
2015-02-27 06:48:24 +01:00
Michal Nowikowski
59bf1e35e1 Backed out changeset 406c23c24795 2015-02-28 06:17:17 +01:00
Michal Nowikowski
fe9dbd9f35 Various changes related to docs
- added Changelog to docs
- added list of contributors to docs
- updated CONTRIBUTORS info
- slight formating changes in Changelog
- updated auto-generated man page and example pylintrc
2015-02-27 06:48:24 +01:00
Claudiu Popa
56dd0f3b9b Update the examples to the new message format. 2015-01-03 10:04:58 +02:00
Claudiu Popa
f47058b355 Use the new Module.stream, since Module.file_stream is deprecated. 2015-01-03 10:00:00 +02:00
Michal Nowikowski
5f5fd075db Documentation improvements
- added intros to features page,
- fixed PyLint to Pylint in text,
- improved ide-integration doc page,
- updated pylintrc in examples and
- regenerated pylint manual

--HG--
branch : docs-improvements-2
2014-11-04 08:08:19 +01:00
Sylvain Thénault
f73e3ee238 regenerated example pylintrc and man page (though they should be removed from the repo at some point) 2014-07-25 17:27:29 +02:00
Sylvain Thénault
97a1d428cb regenerate doc/example/man 2014-04-18 15:30:12 +02:00
Torsten Marek
b5f41f97aa Extend the line length check. 2013-06-17 19:57:05 +02:00
David Douard
f1786ae74b astng has been renamed astroid 2013-06-17 15:06:48 +02:00
Sylvain Thénault
cbae7f3f2d regenerate generated documentation 2013-04-16 12:11:35 +02:00
Sylvain Thénault
d3f545682f add note about soon useless stream.seek() 2011-10-26 09:35:41 +02:00
Alain Leufroy
bc66f92a85 add regular expression support for generated-members (closes #69738)
proposed: by Bruno Clermont
2011-07-08 15:52:04 +02:00
Emile Anclin
4192e79a83 py3k: need to handle guess_encoding in astng
Astng will try to find the right encoding and provide the right "stream"
interface for the Pylint checkers.
Reading a stream with the wrong encoding in py3k will generate a UnicodeError.

The introduced a 'F0010' failure should maybe be replaced by E0501, E0502 and
F0002? However, can we call 'unexpected errors' the ASTNGBuildingExceptions
that we raise in logilab.astng.builder?
2010-11-22 15:36:44 +01:00
Emile Anclin
2554a84f49 doc : more update on options 2010-10-25 16:15:36 +02:00
Emile Anclin
110fe0299b example: updated examples/pylintrc by using --generate-rcfile 2010-10-25 14:56:05 +02:00
Sylvain Thénault
c13d5b5502 proper update of report identifiers to avoid collision with message in the Refactoring category 2010-05-25 10:04:37 +02:00
Emile Anclin
c50f000425 update custom checker in example/custom.py
We don't use compiler.ast nodes, but astng nodes.
2010-03-22 10:33:23 +01:00
Emile Anclin
be5996b93d remove cache_size option: it was desactivated anyway 2010-03-22 09:34:40 +01:00
Sylvain Thénault
8746b95b65 include Dotan Barak spell fixes patch 2009-11-23 15:15:26 +01:00
Emile Anclin
d5339ac741 several documentation changes 2008-09-15 14:20:03 +02:00
Sylvain Thénault
a8d9a5b71c makefile fix 2008-02-07 09:56:27 +01:00
Sylvain Thénault
eae036d87a regenerated documentation 2008-02-07 09:26:40 +01:00
Sylvain Thénault
6431713667 regenerate doc 2007-03-07 10:15:39 +01:00
Sylvain Thénault
6a8bb3f344 doc update 2006-12-27 10:55:51 +01:00
Adrien Di Mascio
99a0a91c91 prepared new version 2006-08-10 15:49:01 +02:00