Additional python lints and checks.
Project description
Pants is an Apache2 licensed build tool written in Python.
The latest documentation can be found at pantsbuild.
1.26.x Stable Releases
This document describes releases leading up to the 1.26.x stable series.
The 1.26.x series adds support for TOML config files, e.g. pants.toml. INI config files will still be supported for some time, but INI is now legacy. Please see https://groups.google.com/forum/#!topic/pants-devel/N1H03oJONco for more information.
1.26.0rc0 (03/04/2020)
API Changes
New Features
Bugfixes
Refactoring, Improvements, and Tooling
Improve cmd-line help output. (#9199) PR #9199
Optimization on synthetic targets with export-dep-as-jar (#9186) PR #9186
Break test runner pex into tool and requirements. (#9208) PR #9208
Replace Twitter Common’s maybe_list() with pants.util.collections.ensure_list() (#9231) PR #9231
Use FrozenOrderedSet with PexRequirements and PexInterpreterConstraints (#9229) PR #9229
Fix flaky options_bootstrapper_test.py (#9220) PR #9220
Rename GlobalOptionsRegistrar to Global Options. (#9224) PR #9224
Get rid of the GlobalOptions wrapper class. (#9221) PR #9221
Make GlobalOptions rule provide full options. (#9215) PR #9215
Make BuildConfiguration a dataclass (#9192) PR #9192
Make _tasks a local variable on Scheduler constructor (#9223) PR #9223
Don’t use ProjectTree in Scheduler (#9202) PR #9202
Turn on the v2 UI in the ./v2 script. (#9217) PR #9217
Simplify fmt2 grouping of formatters per language (#9211) PR #9211
Simplify lint2 to stop grouping by languages (#9207) PR #9207
Refactor V2 linters to allow batching multiple targets (#9185) PR #9185
Add TargetAdaptor.has_sources() (#9204) PR #9204
Tweak TargetAdaptor.dependencies to be a tuple rather than a list (#9184) PR #9184
Deduplicate HydratedTarget and TargetAdaptor (#9219) PR #9219
Testing
Allow mocking unions in testutil.engine.util.run_rule() (#9203) PR #9203
1.26.0.dev2 (02/27/2020)
API Changes
New Features
Bugfixes
Refactoring, Improvements, and Tooling
Generify rules to determine the source files for multiple targets (#9172) PR #9172
Refactor strip_source_roots to use TargetAdaptor rather than HydratedTarget (#9178) PR #9178
Add back inject_init rule (#9174) PR #9174
Fix help printing for v2 goals (#9158) PR #9158
Use our OrderedSet and FrozenOrderedSet instead of Twitter Commons (#9181) PR #9181
Set up infrastructure for generating coverage reports in V2 ./pants test (#9170) PR #9170
Don’t require V2 test implementations to implement coverage (#9173) PR #9173
Remove ProjectTreeFactory (#9189) PR #9189
Testing
Fix file_option not working with V2 tests (#9190) PR #9190
Documentation
Update docs to use pants.toml (#9165) PR #9165
1.26.0.dev1 (02/24/2020)
API Changes
Upgrade to Pex 2.1.4 (#8881) PR #8881
Register goal2 as goal if in v2-exclusive mode. (#9164) PR #9164
Turn on –v2 by default now that the V2 backends are not loaded by default (#9007) PR #9007
Reapply “Switch to dot idea project type” PR (#9105) PR #9105
[export-dep-as-jar] Include transitive target dependencies in export-dep-as-jar (#9146) PR #9146
Remove deprecated passthrough args for login, lint.mypy, and fmt.isort (#9134) PR #9134
Remove pytest passthrough args deprecation. (#9126) PR #9126
Remove deprecated –requirements options in favor of –version and –extra-requirements (#9118) PR #9118
Remove deprecated pantsbuild.pants.testinfra wheel (#9117) PR #9117
New Features
Respect precise file arguments with V2 ./pants test (#9120) PR #9120
Add support for precise file arguments to fmt2 and lint2 (#9133) PR #9133
v2 repl goal for python (#9077) PR #9077
Add Python docformatter auto-formatter (#9139) PR #9139
Add Pylint as a V2 linter (#8979) PR #8979
Allow disabling V1 isort by deregistering pants.backend.python.lint.isort (#9140) PR #9140
[jvm] Introduce runtime_platform; bump export version to 1.1 (#9003) PR #9003
Fetch sources and javadoc jars for 3rd party deps when exporting with ‘export-dep-as-jar’ (#9168) PR #9168
Bugfixes
Fix –skip option for V2 formatters when multiple formatters enabled (#9159) PR #9159
Fix setuptools’s Python 2 deprecation warning with Python linters (#9131) PR #9131
Fix TOML config files interpolating options from the same section (#9114) PR #9114
Fix warnings filtering under pantsd. (#9121) PR #9121
No-op when V2 goals have no implementation (#9142) PR #9142
[export-dep-as-jar] Make library ordering deterministic (#9144) PR #9144
[export-dep-as-jar] Respect strict_deps in libraries field (#9145) PR #9145
Add non-jvm targets with classpath elements to exported modules as libraries. (#9084) PR #9084
Refactoring, Improvements, and Tooling
Use Black internally for auto-formatting (#9157) PR #9157
Use docformatter autoformatter internally (#9137) PR #9137
Ignore Black and docformatter changes with git blame (#9160) PR #9160
Use remote execution with the lint CI shard (#9156) PR #9156
Add OrderedSet and FrozenOrderedSet (#9166) PR #9166
Update compatible rust dependencies (#9122) PR #9122
Dirty the dependents of uncacheable nodes (#9015) PR #9015
Improve the error message when no rules are installed that return a type (#9136) PR #9136
Minor code cleanup involving some uses of Platform (#9152) PR #9152
Simplify calculating runtime lib path env var (#9111) PR #9111
Rename Platform -> PlatformConstraint (#9154) PR #9154
Add a rule to strip source roots from a Snapshot (#9112) PR #9112
Add find_target_source_files rule to generalize precise file arguments (#9127) PR #9127
Inline inject_init.py into prepare_chrooted_python_sources.py (#9115) PR #9115
Tweak strip_source_roots to allow multiple source roots in a snapshot (#9147) PR #9147
Stabilize CI lint shard timing out (#9155) PR #9155
Don’t use FileContent in options parsing. (#9162) PR #9162
Remove AddressOriginMap (#9123) PR #9123
Cleanup tests handling of download_pex_bin.py (#9143) PR #9143
Add ./v2 script for Pants developers to more easily use V2 (#9125) PR #9125
Add ipdb for internal Pants tests (#9124) PR #9124
Testing
add assertDoesNotRaise contextmanager (#9113) PR #9113
Documentation
Fix options reference page on pantsbuild.org. (#9138) PR #9138
1.26.0.dev0 (02/11/2020)
New Features
Bugfixes
Re-pin pytest, and add a pin for zipp. (#9095) PR #9095
remove hardcoded toolchain variant and fix fingerprinting (#9085) PR #9085
Allow test specs to be used with –no-fast for junit (#9093) PR #9093
Revert “Switch to dot idea project type (#8745)” (#9096) PR #9096
Fix deprecation warning for –transitive for goals that ignore the option (#9076) PR #9076
Refactoring, Improvements, and Tooling
Nicer rule graph viz (#7024) PR #7024
Handle Ctrl-C in the V2 UI (#9043) PR #9043
expose a v2 ruleset for BinaryToolBase (#8859) PR #8859
Move more python utils to core (#9082) PR #9082
Use Addresses instead of BuildFileAddresses in most rules (#9083) PR #9083
Allow going from Addresses -> Address (#9097) PR #9097
Replace BuildFileAddress with Address for HydratedTarget and TargetAdaptor (#9100) PR #9100
Rename ProvenancedBuildFileAddress to AddressWithOrigin (#9078) PR #9078
Add FilesystemResolvedGlobSpec to preserve which specific files to operate on (#9081) PR #9081
Fix file args working with globs (#9098) PR #9098
Use pants.toml internally (#9090) PR #9090
Warn when fix_deprecated_globs_usage.py encounters variables (#9080) PR #9080
Trigger warning/error for deprecated Target method overrides. (#9073) PR #9073
Add type hints to build_graph (#9099) PR #9099
Documentation
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for pantsbuild.pants.contrib.python.checks-1.26.0rc0-py36.py37-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98a5fdbdcb1f057e74e856096eefde734b07a4c11495b71ebabfd368f1bbf5c8 |
|
MD5 | 710c3d947fbadea3bf5a77adcb55af76 |
|
BLAKE2b-256 | df999f58c045a54b99062c015b40166604a8fb6f0905ffa7516beeffbe61117b |