Skip to content

Commit

Permalink
Misc maintenance (#96)
Browse files Browse the repository at this point in the history
* ci: setup github dependabot

* add codecov and github release config

* lint: clean-up header includes
  • Loading branch information
benbovy authored Feb 4, 2025
1 parent 18eb795 commit ab7032e
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 16 deletions.
12 changes: 12 additions & 0 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
codecov:
notify:
after_n_builds: 3
coverage:
status:
project:
default:
target: auto
threshold: 5%
patch:
default:
informational: true
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
groups:
dependencies:
patterns:
- "*"
5 changes: 5 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
changelog:
exclude:
authors:
- dependabot
- pre-commit-ci
3 changes: 0 additions & 3 deletions src/creation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,9 @@
#include <s2geography.h>
#include <s2geography/geography.h>

#include <array>
#include <functional>
#include <memory>
#include <sstream>
#include <stdexcept>
#include <type_traits>
#include <utility>
#include <vector>

Expand Down
5 changes: 0 additions & 5 deletions src/geography.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,10 @@
#include <s2geography/predicates.h>
#include <s2geography/wkt-writer.h>

#include <cstddef>
#include <memory>
#include <optional>
#include <sstream>
#include <stdexcept>
#include <string>
#include <type_traits>
#include <utility>
#include <variant>
#include <vector>

#include "pybind11.hpp"
Expand Down
1 change: 0 additions & 1 deletion src/geography.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include <exception>
#include <memory>
#include <string>
#include <type_traits>

namespace py = pybind11;
namespace s2geog = s2geography;
Expand Down
5 changes: 1 addition & 4 deletions src/projections.cpp
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
#include "projections.hpp"

#include <pybind11/pybind11.h>
#include <s2/s2projections.h>
#include <s2geography.h>

#include "geography.hpp"
#include "pybind11.hpp"

namespace py = pybind11;
using namespace spherely;

void init_projections(py::module& m) {
py::class_<Projection> projection(m, "Projection", R"pbdoc(
Expand Down
3 changes: 0 additions & 3 deletions src/projections.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@
#include <s2/s2projections.h>
#include <s2geography.h>

#include "pybind11.hpp"

namespace s2geog = s2geography;
using namespace spherely;

class Projection {
public:
Expand Down

0 comments on commit ab7032e

Please sign in to comment.