[#7] pre-commit: Add initial configuration
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
45358d4551
commit
b69b61399e
4 changed files with 38 additions and 19 deletions
|
@ -11,7 +11,7 @@ run:
|
||||||
|
|
||||||
skip-files:
|
skip-files:
|
||||||
- (^|.*/)grpc/(.*)
|
- (^|.*/)grpc/(.*)
|
||||||
|
|
||||||
# output configuration options
|
# output configuration options
|
||||||
output:
|
output:
|
||||||
# colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number"
|
# colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number"
|
||||||
|
@ -64,4 +64,4 @@ issues:
|
||||||
|
|
||||||
- linters: # ignore SA6002 since we use pool of []byte, however we can switch to *bytes.Buffer
|
- linters: # ignore SA6002 since we use pool of []byte, however we can switch to *bytes.Buffer
|
||||||
- staticcheck
|
- staticcheck
|
||||||
text: "SA6002:"
|
text: "SA6002:"
|
||||||
|
|
19
.pre-commit-config.yaml
Normal file
19
.pre-commit-config.yaml
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
ci:
|
||||||
|
autofix_prs: false
|
||||||
|
|
||||||
|
repos:
|
||||||
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
|
rev: v4.4.0
|
||||||
|
hooks:
|
||||||
|
- id: check-added-large-files
|
||||||
|
- id: check-case-conflict
|
||||||
|
- id: check-executables-have-shebangs
|
||||||
|
- id: check-shebang-scripts-are-executable
|
||||||
|
- id: check-merge-conflict
|
||||||
|
- id: check-json
|
||||||
|
- id: check-xml
|
||||||
|
- id: check-yaml
|
||||||
|
- id: trailing-whitespace
|
||||||
|
args: [--markdown-linebreak-ext=md]
|
||||||
|
- id: end-of-file-fixer
|
||||||
|
exclude: ".key$"
|
34
CHANGELOG.md
34
CHANGELOG.md
|
@ -22,7 +22,7 @@
|
||||||
- Mark all expiration methods as deprecated (#417)
|
- Mark all expiration methods as deprecated (#417)
|
||||||
|
|
||||||
### Updated
|
### Updated
|
||||||
- Minimal go version to 1.17 (#412)
|
- Minimal go version to 1.17 (#412)
|
||||||
- `neofs-crypto` to `v0.4.0` (#412)
|
- `neofs-crypto` to `v0.4.0` (#412)
|
||||||
- `google.golang.org/grpc` to `v1.48.0` (#415)
|
- `google.golang.org/grpc` to `v1.48.0` (#415)
|
||||||
- `google.golang.org/protobuf` to `v1.28.0` (#415)
|
- `google.golang.org/protobuf` to `v1.28.0` (#415)
|
||||||
|
@ -60,7 +60,7 @@ NeoFS API v2.13 support
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
- Incompatible changes in signature scheme (#380)
|
- Incompatible changes in signature scheme (#380)
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
- Public URI-parsing function `client.ParseURI()` (#383)
|
- Public URI-parsing function `client.ParseURI()` (#383)
|
||||||
|
|
||||||
|
@ -92,9 +92,9 @@ NeoFS API v2.12 support
|
||||||
|
|
||||||
## [2.11.0] - 2021-12-02 - Sinjido (신지도, 薪智島)
|
## [2.11.0] - 2021-12-02 - Sinjido (신지도, 薪智島)
|
||||||
|
|
||||||
NeoFS API v2.11 support. High level packages are moved to
|
NeoFS API v2.11 support. High level packages are moved to
|
||||||
[neofs-sdk-go](https://github.com/nspcc-dev/neofs-sdk-go) repository.
|
[neofs-sdk-go](https://github.com/nspcc-dev/neofs-sdk-go) repository.
|
||||||
Repository restructured as Go module version 2 and synced with
|
Repository restructured as Go module version 2 and synced with
|
||||||
[neofs-api](https://github.com/nspcc-dev/neofs-api) release version.
|
[neofs-api](https://github.com/nspcc-dev/neofs-api) release version.
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
@ -109,7 +109,7 @@ Repository restructured as Go module version 2 and synced with
|
||||||
- neofs-api-go is now Go module version 2 (#201)
|
- neofs-api-go is now Go module version 2 (#201)
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
- All packages from `pkg` moved to
|
- All packages from `pkg` moved to
|
||||||
[neofs-sdk-go](https://github.com/nspcc-dev/neofs-sdk-go) (#201)
|
[neofs-sdk-go](https://github.com/nspcc-dev/neofs-sdk-go) (#201)
|
||||||
|
|
||||||
## [1.30.0] - 2021-10-19 - Udo (우도, 牛島)
|
## [1.30.0] - 2021-10-19 - Udo (우도, 牛島)
|
||||||
|
@ -126,7 +126,7 @@ NeoFS API v2.10 support.
|
||||||
- pkg/client callback to parse internal response information (#337)
|
- pkg/client callback to parse internal response information (#337)
|
||||||
- Service filter type in extended ACL from API v2.10 (#338)
|
- Service filter type in extended ACL from API v2.10 (#338)
|
||||||
- Enhanced network info structures from API v2.10 (#339)
|
- Enhanced network info structures from API v2.10 (#339)
|
||||||
- Well-known public-append basic ACL constant (#341)
|
- Well-known public-append basic ACL constant (#341)
|
||||||
- Native contract names support (#351)
|
- Native contract names support (#351)
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
@ -258,7 +258,7 @@ Raw client and support of NeoFS API v2.5.0 "Jebudo" release.
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
- Raw client for peer to peer communication.
|
- Raw client for peer to peer communication.
|
||||||
- `client.WithKey` option to sign messages with different keys within single
|
- `client.WithKey` option to sign messages with different keys within single
|
||||||
client.
|
client.
|
||||||
- `Content-Type` well-known object attribute constant.
|
- `Content-Type` well-known object attribute constant.
|
||||||
|
|
||||||
|
@ -271,7 +271,7 @@ Raw client and support of NeoFS API v2.5.0 "Jebudo" release.
|
||||||
|
|
||||||
Support changes from NeoFS API v2.4.0 "Ganghwado" release.
|
Support changes from NeoFS API v2.4.0 "Ganghwado" release.
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
- `netmap.NetworkInfo` definitions in `v2` and `pkg/netmap`.
|
- `netmap.NetworkInfo` definitions in `v2` and `pkg/netmap`.
|
||||||
- `netmap.NetworkInfo` RPC support in `pkg/client`.
|
- `netmap.NetworkInfo` RPC support in `pkg/client`.
|
||||||
|
@ -322,7 +322,7 @@ Support changes from NeoFS API v2.2.1 release.
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
- Remarks of the updated linter.
|
- Remarks of the updated linter.
|
||||||
|
|
||||||
## [1.22.0] - 2020-12-30 - Yeouido (여의도, 汝矣島)
|
## [1.22.0] - 2020-12-30 - Yeouido (여의도, 汝矣島)
|
||||||
|
|
||||||
|
@ -335,7 +335,7 @@ Support changes from NeoFS API v2.2.0 "Yeouido" release.
|
||||||
- Support of `StorageGroup` message.
|
- Support of `StorageGroup` message.
|
||||||
- Support of `DataAuditResult` message.
|
- Support of `DataAuditResult` message.
|
||||||
- Stringer and string parser for `Checksum` type of client library.
|
- Stringer and string parser for `Checksum` type of client library.
|
||||||
- Stringer and string parser for `Type` message.
|
- Stringer and string parser for `Type` message.
|
||||||
- Stringer and string parser for `Type` type of client library.
|
- Stringer and string parser for `Type` type of client library.
|
||||||
- `AddTypeFilter` method on `SearchFilters` type of client library
|
- `AddTypeFilter` method on `SearchFilters` type of client library
|
||||||
that adds filter by object type.
|
that adds filter by object type.
|
||||||
|
@ -350,7 +350,7 @@ Support changes from NeoFS API v2.2.0 "Yeouido" release.
|
||||||
- `Container.SetNonceUUID` setter of container nonce in UUID format.
|
- `Container.SetNonceUUID` setter of container nonce in UUID format.
|
||||||
- `NewVerifiedContainerFromV2` container constructor that preliminary
|
- `NewVerifiedContainerFromV2` container constructor that preliminary
|
||||||
checks if container message argument meets NeoFS API V2 specification.
|
checks if container message argument meets NeoFS API V2 specification.
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
- `Container.Nonce`/`Container.SetNonce` marked as deprecated.
|
- `Container.Nonce`/`Container.SetNonce` marked as deprecated.
|
||||||
|
@ -368,7 +368,7 @@ Support neofs-api v2.1.1.
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
- `client.GetVerifiedContainerStructure` function to check
|
- `client.GetVerifiedContainerStructure` function to check
|
||||||
that the container structure matches the requested identifier.
|
that the container structure matches the requested identifier.
|
||||||
|
|
||||||
## [1.21.0] - 2020-12-11 - Modo (모도, 茅島)
|
## [1.21.0] - 2020-12-11 - Modo (모도, 茅島)
|
||||||
|
@ -391,7 +391,7 @@ Support neofs-api v2.1.1.
|
||||||
|
|
||||||
### Renamed
|
### Renamed
|
||||||
|
|
||||||
- `AddLeafFilter` to `AddPhyFilter`
|
- `AddLeafFilter` to `AddPhyFilter`
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
|
@ -425,9 +425,9 @@ Support neofs-api v2.1.1.
|
||||||
|
|
||||||
## [1.20.0] - 2020-11-16 - Jindo (진도, 珍島)
|
## [1.20.0] - 2020-11-16 - Jindo (진도, 珍島)
|
||||||
|
|
||||||
Major API refactoring and simplification. From now on this library will have
|
Major API refactoring and simplification. From now on this library will have
|
||||||
backward compatibility and support of major versions of NeoFS-API by having
|
backward compatibility and support of major versions of NeoFS-API by having
|
||||||
**version specific** files in `vN` dirs and **version independent** SDK
|
**version specific** files in `vN` dirs and **version independent** SDK
|
||||||
structures and client in `pkg`. This version supports NeoFS-API v2.0.X
|
structures and client in `pkg`. This version supports NeoFS-API v2.0.X
|
||||||
|
|
||||||
|
|
||||||
|
|
0
Makefile
Normal file → Executable file
0
Makefile
Normal file → Executable file
Loading…
Reference in a new issue