summaryrefslogtreecommitdiff
path: root/setup.cfg
Commit message (Collapse)AuthorAgeFilesLines
* Don't ignore missing importsTimothy Crosley2019-10-241-1/+0
|
* Switch to Python3.6+ onlyTimothy Crosley2019-10-241-1/+1
|
* Update setup.cfg to ensure it doesn't repeat options set in scripts, points ↵Timothy Crosley2019-10-131-15/+1
| | | | to correct test directory
* Introduce Black to automate code formattingJon Dufresne2019-08-151-8/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | Use Black, the uncompromising Python code formatter, to format the project and simplify contributions. Contributors no longer need to think or care about the project's preferred style, just let the tools handle it instead. Black is becoming more and more popular across Python projects and has recently became a project under the Python Software Foundation. This is especially important with the adoption of mypy as type annotations create another obstacle or consideration in code formatting, but Black handles this just fine. Many projects use both Black and isort. Using Black internally also helps ensure continued compatibility between the two popular projects. For more details on Black, see: https://github.com/psf/black > Black is the uncompromising Python code formatter. By using it, you > agree to cede control over minutiae of hand-formatting. In return, > Black gives you speed, determinism, and freedom from pycodestyle > nagging about formatting. You will save time and mental energy for > more important matters.
* Enable mypy option disallow_any_generics for stricter type checkingJon Dufresne2019-08-151-0/+1
|
* Enable mypy warn_no_return in mypy for stricter type checkingJon Dufresne2019-08-141-1/+0
| | | | | Warns when a function that normally returns a value doesn't. Fixed all cases discovered by the tool.
* Remove deprecated license_file from setup.cfgJon Dufresne2019-08-141-3/+0
| | | | | | | | | | | | Starting with wheel 0.32.0 (2018-09-29), the "license_file" option is deprecated. https://wheel.readthedocs.io/en/stable/news.html The wheel will continue to include LICENSE, it is now included automatically: https://wheel.readthedocs.io/en/stable/user_guide.html#including-license-files-in-the-generated-wheel-file
* Specify targeted Python version to mypyJon Dufresne2019-08-141-0/+1
| | | | | | | | | Discovered a typing bug where a Path object was passed to os.path.relpath(), but Path support was not added until Python 3.6. https://docs.python.org/3/library/os.path.html#os.path.relpath > Changed in version 3.6: Accepts a path-like object.
* move to pathlibMaxim Kurnikov2019-04-281-0/+1
|
* add strict_optional = True for some filesMaxim Kurnikov2019-04-261-1/+7
|
* enable tests typecheckingMaxim Kurnikov2019-04-251-0/+1
|
* Report coverageDaniel Hahler2019-03-011-0/+3
| | | | | | | - add coverage factor to tox - report coverage to codecov.io - configure testpaths for pytest, instead of passing it through tox command
* disable warn_no_return for mypyMaxim Kurnikov2019-02-251-1/+2
|
* Merge branch 'update-flake8-to-3.7.6' into add-type-annotationsMaxim Kurnikov2019-02-251-1/+3
|\
| * update flake8 to 3.7.6Maxim Kurnikov2019-02-251-1/+3
| |
* | add mypy to CIMaxim Kurnikov2019-02-251-0/+5
|/
* Make isort run with Python 3 onlyJon Dufresne2019-02-161-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | As isort is primarily used as a command-line tool, it is in a good position to move to Python 3 only. Other command-line-only tools have begun moving to Python 3. For example: black, mypy, pylint, and Sphinx. It will continue to support formatting Python 2 code, so users can still format their Python 2 projects. Allows for many code cleanups. By removing these workarounds, the project will be easier to maintain and reduce testing resources. Python 2 is scheduled to be EOL on January 1, 2020. The Python community is moving on. https://www.python.org/dev/peps/pep-0373/ For reasons to drop Python 2 support, see: https://python3statement.org/ For an overview of projects that have dropped Python 2 support entirely, see: https://hugovk.github.io/drop-python/2.7/ Fixes #808
* Use environment markers to define Python2 specific dependenciesJon Dufresne2018-03-031-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The "futures" package need only be installed on Python 2. To specify a conditional dependency, setuptools, pip, and wheel support "environment markers". Use this mechanism instead of adding install time logic to the setup.py file. Allows restoring universal wheel support, allowing a single wheel for all version of Python. For additional details on wheel support for environment markers, see the documentation at: https://wheel.readthedocs.io/en/stable/index.html#defining-conditional-dependencies > Defining conditional dependencies > > In wheel, the only way to have conditional dependencies (that might > only be needed on certain platforms) is to use environment markers as > defined by PEP 426. > > ... > > As of setuptools 36.2.1, you can pass extras as part of > install_requires. The above requirements could thus be written like > this: > > install_requires=[ > 'argparse; python_version=="2.6"', > 'keyring; extra=="signatures"', > 'pyxdg; extra=="signatures" and sys_platform!="win32"', > 'ed25519ll; extra=="faster-signatures"' > ]
* Conditonal dependency for futuresTimothy Crosley2018-02-011-3/+0
|
* Include license file in the generated wheel packageJon Dufresne2017-10-151-0/+3
| | | | | | | | The wheel package format supports including the license file. This is done using the [metadata] section in the setup.cfg file. For additional information on this feature, see: https://wheel.readthedocs.io/en/stable/index.html#including-the-license-in-the-generated-wheel-file
* Increase flake8 coverageEd Morley2017-06-021-1/+7
| | | | | | | | | Enables more of flake8's default rules and makes CI check all files, not just a subset. Also pins the version of flake8 to avoid CI non-determinism when newer versions add/adjust the default rules. The `# noqa: F401` entries in `pie_slice.py` are required due to: https://github.com/PyCQA/pyflakes/issues/276
* setup.cfg - fix [wheel] -> [bdist_wheel]Adam Chainz2016-04-151-1/+1
| | | | [wheel] is legacy, [bdist_wheel] is the future. See https://bitbucket.org/pypa/wheel/src/4da780b849affbff98a0defb21ad1f30a94d6f57/wheel/bdist_wheel.py?at=default&fileviewer=file-view-default#bdist_wheel.py-119
* Added flake8 configuration.Derrick Petzold2015-05-301-0/+4
|
* Add wheel supportTimothy Crosley2013-11-141-0/+2