-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* support pyproject.toml * consolidate configuration files * ran black * update pipeline
- Loading branch information
Showing
10 changed files
with
82 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,28 @@ | ||
.docker-plugin: &docker-plugin | ||
plugins: | ||
- docker#v3.5.0: | ||
image: "python:3.8" | ||
image: 'python:3.8' | ||
|
||
steps: | ||
.python-setup: &python-setup |- | ||
python3 -m venv venv | ||
source venv/bin/activate | ||
pip install .[dev] | ||
|
||
- label: ":python-black: Lint Black" | ||
commands: | ||
- pip install -r requirements.txt | ||
- black --check . | ||
steps: | ||
- label: ':python-black: Lint Black' | ||
commands: | ||
- *python-setup | ||
- python3 -m black --check . | ||
<<: *docker-plugin | ||
|
||
- label: ":mypy: Mypy" | ||
commands: | ||
- pip install -r requirements.txt | ||
- mypy . | ||
- label: ':mypy: Mypy' | ||
commands: | ||
- *python-setup | ||
- python3 -m mypy . | ||
<<: *docker-plugin | ||
|
||
- label: ":pytest: Unit Tests" | ||
commands: | ||
- pip install -r requirements.txt | ||
- pytest | ||
<<: *docker-plugin | ||
- label: ':pytest: Unit Tests' | ||
commands: | ||
- *python-setup | ||
- python3 -m pytest | ||
<<: *docker-plugin |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
[project] | ||
name = "pybuildkite" | ||
version = "1.2.3" | ||
description = "Python wrapper for the Buildkite API" | ||
readme = "README.md" | ||
license = { file = "LICENSE" } | ||
authors = [ | ||
{ name = "Peter Yasi" }, | ||
] | ||
keywords = [ | ||
"Buildkite", | ||
"Continuous Integration", | ||
"API", | ||
"CI", | ||
"wrapper", | ||
"python", | ||
] | ||
|
||
dependencies = ["requests==2.31.0"] | ||
|
||
[project.optional-dependencies] | ||
dev = [ | ||
"black==22.6.0", | ||
"coveralls==3.3.1", | ||
"mypy==1.3.0", | ||
"pytest==7.3.2", | ||
"pytest-cov", | ||
] | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/pyasi/pybuildkite" | ||
Repository = "https://github.com/pyasi/pybuildkite.git" | ||
Download = "https://github.com/pyasi/pybuildkite/archive/master.zip" | ||
|
||
[tool.mypy] | ||
ignore_missing_imports = true | ||
disallow_any_unimported = true | ||
check_untyped_defs = true | ||
warn_redundant_casts = true | ||
warn_return_any = true | ||
warn_unused_ignores = true | ||
warn_unused_configs = true | ||
show_error_codes = true | ||
pretty = true | ||
|
||
[tool.pytest.ini_options] | ||
addopts = """ | ||
--verbose \ | ||
--cov=pybuildkite \ | ||
--cov-report=xml""" | ||
python_files = ["tests/*.py"] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters