[please]
DownloadLocation = https://preview-get.please.build

[python]
; We use the in-repo please_pex tool to build other pexes within this repo.
; Other projects using Please wouldn't normally need to do anything like this.
pextool = //tools/please_pex
moduledir = third_party.python

[parse]
; Make this generally available
preloadbuilddefs = build_defs/go_bindata.build_defs
builtinpleasings = false

[gc]
keep = //test/...
keep = //docs:all
keep = //package:all

[go]
filtertool = //tools/please_go_filter
testtool = //tools/please_go_test
importpath = github.com/thought-machine/please

[cpp]
defaultoptcppflags = --std=c++11 -O2 -DNDEBUG -Wall -Wextra -Werror -Wno-unused-parameter
defaultdbgcppflags = --std=c++11 -g3 -DDEBUG -Wall -Wextra -Werror -Wno-unused-parameter

[java]
javacworker = //tools/java:javac_worker
junitrunner = //tools/java:junit_runner
jarcattool = @//tools/jarcat

[proto]
protoctool = //third_party/proto:protoc
protocgoplugin = //third_party/go:protoc-gen-go
language = go

[alias "autofix"]
desc = Generates generated code and applies lint fixes
cmd = run //:autofix

[alias "bootstrap"]
desc = Bootstraps Please from scratch
cmd = run //:bootstrap --

[alias "bootonly"]
desc = Bootstraps Please, but does not run any tests.
cmd = run //:bootstrap -- --skip_tests

[alias "install"]
desc = Installs Please into ~/.please
cmd = run //:install --

[alias "plz"]
desc = Builds & runs the version of plz within this repo.
cmd = run //src:please --
subcommand = test
subcommand = build
positionallabels = true

[alias "lint"]
desc = Runs the linters for this repo
cmd = run //tools/misc:lint -p --

[licences]
accept = MIT
accept = MIT License
accept = BSD
accept = BSD License
accept = Simplified BSD
accept = BSD 3-Clause
accept = 3-Clause BSD License
accept = New BSD License
accept = Apache Software License
accept = Apache 2.0
accept = Apache License, Version 2.0
accept = The Apache Software License, Version 2.0
accept = PSF
accept = ASL
accept = MPL-2.0
accept = LGPL
accept = Artistic License
accept = ISC
# Not really a licence, but Bazel projects commonly describe things this way.
accept = notice

[featureflags]
JavaBinaryExecutableByDefault = true
RemovePleasings = true