Daniël van Noord
01676aea60
Remove use of deprecated methods in `_ArgumentsProvider
and
_config_initialization
`
2022-04-13 23:10:34 +02:00
Daniël van Noord
03cfbf3df1
Use `namespace
in
PyLinter
` and the functional config tests ( #6271 )
...
* Use callback actions in ``PyLinter``
* Turn off ``optparse`` command line parsing
* No longer emit ``bad-configuration-section``
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
2022-04-12 12:56:42 +02:00
Daniël van Noord
53deea2753
Number of small refactors in `argparse
` code ( #6266 )
2022-04-11 21:37:51 +02:00
Daniël van Noord
9fe6b475df
Deprecate `load_command_line_configuration
`
2022-04-11 12:25:08 +02:00
Daniël van Noord
22068805fa
Refactor `ArgumentsManager.help
`
2022-04-11 12:25:08 +02:00
Daniël van Noord
09fa03ce55
Deprecate `load_config_file
,
load_configuration
and
load_configuration_from_config
` ( #6227 )
2022-04-07 23:43:46 +02:00
Daniël van Noord
a3f5c47822
Deprecate `load_provider_defaults
and
read_config_file
` ( #6224 )
2022-04-07 21:38:28 +02:00
Daniël van Noord
1d063336e3
Improve performance of config file reader
2022-04-06 20:54:38 +02:00
Daniël van Noord
0ea91bd208
Refactor `_config_initialization
`
2022-04-05 20:41:28 +02:00
Daniël van Noord
6574d715c2
Do `init-hook
and
load-plugins
from
argparse
`
2022-04-05 20:41:28 +02:00
Daniël van Noord
ff64888cc0
Remove `_parse_plugin_configuration
`
2022-04-05 20:41:28 +02:00
Daniël van Noord
c4e9afe0e6
Finalize `_parse_command_line_configuration
` ( #6189 )
2022-04-05 12:00:25 +02:00
Daniël van Noord
2732e0ccce
Change how `errors-mode
` is parsed
2022-04-05 08:36:41 +02:00
Daniël van Noord
843dbf0e54
Refactor the help message
2022-04-04 11:38:58 +02:00
Daniël van Noord
aaeeb339be
Only exit after `argparse
` parsing is done
2022-04-02 17:34:05 +02:00
Daniël van Noord
3418e22270
Do `argparse
` parsing of config file first ( #6119 )
2022-04-02 10:44:23 +02:00
Daniël van Noord
b799cedfe3
Create `_ConfigurationFileParser
` class ( #6055 )
...
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
2022-04-01 23:40:43 +02:00
Daniël van Noord
b9b81bec7b
Some refactors of configuration file discovery ( #6052 )
...
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
2022-04-01 19:53:24 +02:00
Daniël van Noord
52819cd81e
Move setting of the current module to a better place in config init ( #6046 )
2022-03-29 23:06:02 +02:00
Daniël van Noord
0bc45e9037
Create an Argument
class and allow convertion of optdict into them ( #5584 )
...
* Use config initialization of ``_ArgumentsManager``
* Allow ``BaseChecker`` to register on a ``_ArgumentsManager``
* Use the ``argparse`` config handler in ``logging.py`` and add tests
2022-03-29 14:44:27 +02:00
Pierre Sassoulas
ec4a3f7f1e
Add a pre-commit hook to check the copyright notice
...
Fix the existing file so they have a notice.
No header for setup.py or examples or doc
2022-03-24 13:06:15 +01:00
Pierre Sassoulas
9e0baf370a
Simplify hard to maintain copyright notice
...
git is the source of truth for the copyright, copyrite (the tool)
was taking exponentially longer with each release, and it's
polluting the code with sometime as much as 50 lines of names.
2022-03-24 13:06:15 +01:00
Daniël van Noord
efe59ca44b
Make functional tests always go through config initialization ( #5594 )
...
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
2021-12-28 16:28:54 +01:00
Daniël van Noord
b4bf516862
Create `_config_initialization
` util and use in functional tests ( #5591 )
2021-12-23 23:02:34 +01:00